joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov dword [0x416148], edi
mov dword [0x41614c], ebx
mov dword [0x416144], esi
call fcn.00402d60
pop ebp
jmp 0x403897
push 0xf0
push 0x4121c8
call fcn.00406458
push dword [0x4150c0]
call fcn.0040641d
pop ecx
mov dword [0x4150c0], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40388c
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x403733
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x41616c], edi
mov dword [0x416174], eax
mov dword [0x416178], edx
mov dword [0x41617c], esi
mov dword [0x416170], ecx
call fcn.0040367e
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0040635f
pop ecx
test eax, eax
jne 0x403784
push 0x1c
call fcn.00403655
pop ecx
call fcn.00406183
test eax, eax
jne 0x403795
push 0x10
call fcn.00403655
pop ecx
mov dword [ebp - 4], ebx
call fcn.00405b6f
test eax, eax
jge 0x4037a9
push 0x1b
call fcn.00404faf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417d40], eax
call fcn.00405a38
mov dword [0x416158], eax
call fcn.0040594f
test eax, eax
jge 0x4037cf
push 8
call fcn.00404faf
pop ecx
call fcn.00405615
test eax, eax
jge 0x4037e0
push 9
call fcn.00404faf
pop ecx
push ebx
call fcn.004050b5
pop ecx
test eax, eax
je 0x4037f2
push eax
call fcn.00404faf
pop ecx
call fcn.004055b6
test byte [ebp - 0xd4], bl
je 0x403808
movzx ecx, word [ebp - 0xd0]
jmp 0x40380b
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00402de0
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x40382e
push eax
call fcn.0040520b
call fcn.00405237
jmp 0x40386f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x403891
mov eax, 0xff
call fcn.004064a0
ret
call fcn.0040663c
jmp 0x4036bf
Function at 0x402de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [esp + 0x87], 1
mov dword [esp + 0x7c], 0x4b5d
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], eax
mov bl, byte [esp + 0x83]
mov byte [esp + 0x83], 0x7b
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], esi
mov bh, bl
add bh, bh
mov byte [esp + 0x83], bh
mov byte [esp + 0x34], bl
call fcn.00402dd0
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov edi, edx
add edi, 0x62f6
mov ebx, esi
adc ebx, 0
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
add ecx, 0xffffb4a3
cmp eax, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
je 0x402eae
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [esp + 0x28], eax
call entry0
lea eax, [0x401231]
mov ecx, dword [esp + 0x7c]
xor ecx, 0x4b5d
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.004038a1
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
call ecx
lea ecx, [0x40123c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
lea ecx, [esp + 0x3c]
call fcn.00402fd0
sub esp, 8
mov bl, byte [esp + 0x87]
neg bl
mov ecx, dword [esp + 0x30]
add ecx, ecx
mov edx, dword [esp + 0x2c]
adc edx, edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ecx
cmp eax, 0
setne bh
xor bh, bl
test bh, 1
jne 0x402f45
jmp 0x402f9c
mov eax, 0x1d1fd
mov ecx, dword [esp + 0x7c]
xor ecx, 0x4b5c
add ecx, dword [esp + 0x50]
mov dword [esp + 0x50], ecx
sub eax, dword [esp + 0x7c]
cmp dword [esp + 0x50], eax
jle 0x402f75
mov al, byte [esp + 0x34]
or al, 0x7e
mov byte [esp + 0x83], al
jmp 0x402f9c
lea eax, [0x401244]
lea ecx, [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00403932
mov dword [esp + 0x14], eax
jmp 0x402ef8
mov eax, dword [esp + 0x7c]
xor eax, 0x4b5d
mov ecx, esp
mov dword [ecx], 0xbc54fdf4
mov dword [esp + 0x10], eax
call fcn.00411cb0
mov eax, dword [esp + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x405297
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x4150d8]
je 0x4052bd
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x4052ab
cmp esi, 0x17
jae 0x405417
push 3
call fcn.0040a997
cmp eax, 1
pop ecx
je 0x4053e1
push 3
call fcn.0040a997
test eax, eax
pop ecx
jne 0x4052f0
cmp dword [0x4150c0], 1
je 0x4053e1
cmp edi, 0xfc
je 0x405417
push 0x40192c
mov edi, 0x314
push edi
mov esi, 0x4161b0
push esi
call fcn.0040952a
add esp, 0xc
test eax, eax
je 0x405326
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
mov byte [0x4162cd], bl
push 0x104
mov ebx, 0x4161c9
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405369
push 0x401914
push 0x2fb
push ebx
call fcn.0040952a
add esp, 0xc
test eax, eax
je 0x405369
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407681
add esp, 0x14
push ebx
push edi
push esi
call fcn.00409339
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x405387
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
push 0x401910
push edi
push esi
call fcn.00409339
add esp, 0xc
test eax, eax
je 0x4053a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x4150dc]
push edi
push esi
call fcn.00409339
add esp, 0xc
test eax, eax
je 0x4053cc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
push 0x12010
push 0x4018e8
push esi
call fcn.0040a7f7
add esp, 0xc
jmp 0x405417
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x405417
cmp edi, 0xffffffff
je 0x405417
mov edx, dword [esi*8 + 0x4150dc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405400
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c8d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040601e
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x409cb5
or dword [esi + 8], 0x104
jmp 0x409d79
lea eax, [ebx + 0x40]
test eax, eax
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
je 0x409cd8
cmp byte [eax], 0
je 0x409cd8
push edi
push 0x16
push 0x402b00
call fcn.004096ab
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x409d35
cmp byte [eax], 0
je 0x409d35
mov eax, dword [edi]
test eax, eax
je 0x409cf9
cmp byte [eax], 0
je 0x409cf9
call fcn.00409bd2
jmp 0x409cfe
call fcn.00409c45
cmp dword [esi + 8], 0
jne 0x409d8f
push esi
push 0x41
push 0x4028f0
call fcn.004096ab
add esp, 0xc
test eax, eax
je 0x409d85
mov edi, dword [edi]
test edi, edi
je 0x409d2e
cmp byte [edi], 0
je 0x409d2e
call fcn.00409bd2
jmp 0x409d85
call fcn.00409c45
jmp 0x409d85
mov edi, dword [edi]
test edi, edi
je 0x409d72
cmp byte [edi], 0
je 0x409d72
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d45
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x4097fc
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x409d85
and dword [esi + 8], 0
jmp 0x409d85
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x409e83
mov eax, ebx
add ebx, 0x80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.0040970d
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x409e83
cmp edi, 0xfde8
je 0x409e83
cmp edi, 0xfde9
je 0x409e83
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x409e83
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x409e83
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409e0a
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x409e7e
cmp word [eax], 0x814
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x409e43
push 0x402bd4
push 0x40
push ebx
call fcn.0040952a
add esp, 0xc
test eax, eax
je 0x409e54
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407681
add esp, 0x14
jmp 0x409e54
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x409e83
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x409e83
push 0xa
push 0x10
add ebx, 0x80
push ebx
push dword [ebp + 8]
call fcn.0040d092
add esp, 0x10
xor eax, eax
inc eax
jmp 0x409e85
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a3c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40a3d3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a3cf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x40a3f0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40a42f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40a425
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40a431
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a415
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a7f7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405e0f
xor ebx, ebx
cmp dword [0x4167ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40a8ce
push 0x402c94
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40a839
xor eax, eax
jmp 0x40a992
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c88
push edi
call esi
cmp eax, ebx
je 0x40a832
push eax
call fcn.00405da9
mov dword [esp], 0x402c78
push edi
mov dword [0x4167ac], eax
call esi
push eax
call fcn.00405da9
mov dword [esp], 0x402c64
push edi
mov dword [0x4167b0], eax
call esi
push eax
call fcn.00405da9
mov dword [0x4167b4], eax
lea eax, [ebp - 8]
push eax
call fcn.00405038
test eax, eax
pop ecx
pop ecx
je 0x40a89c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40a8ce
push 0x402c48
push edi
call esi
push eax
call fcn.00405da9
cmp eax, ebx
pop ecx
mov dword [0x4167bc], eax
je 0x40a8ce
push 0x402c30
push edi
call esi
push eax
call fcn.00405da9
pop ecx
mov dword [0x4167b8], eax
mov eax, dword [0x4167b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40a947
cmp dword [0x4167bc], esi
je 0x40a947
push eax
call fcn.00405e18
pop ecx
call eax
cmp eax, ebx
je 0x40a914
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4167bc]
call fcn.00405e18
pop ecx
call eax
test eax, eax
je 0x40a914
test byte [ebp - 0x18], 1
jne 0x40a947
lea eax, [ebp - 0xc]
push eax
call fcn.00405074
test eax, eax
pop ecx
je 0x40a92f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407681
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40a93e
or dword [ebp + 0x10], 0x200000
jmp 0x40a978
or dword [ebp + 0x10], 0x40000
jmp 0x40a978
mov eax, dword [0x4167b0]
cmp eax, esi
je 0x40a978
push eax
call fcn.00405e18
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a978
mov eax, dword [0x4167b4]
cmp eax, esi
je 0x40a978
push dword [ebp - 4]
push eax
call fcn.00405e18
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4167ac]
call fcn.00405e18
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40afe5
Capabilities:
Write file on windows

Disassembly:
jmp 0x40c0b2
mov ecx, dword [ebp - 0x568]
xor esi, esi
sub ecx, dword [ebp - 0x574]
lea eax, [ebp - 0x160]
cmp ecx, dword [ebp + 0x10]
jae 0x40c04a
mov edx, dword [ebp - 0x568]
movzx edx, word [edx]
add dword [ebp - 0x568], 2
push 2
pop edi
add ecx, edi
cmp dx, 0xa
jne 0x40c033
cmp esi, 0x150
ja 0x40c044
mov word [eax], 0xd
add eax, edi
add esi, edi
mov word [eax], dx
add esi, edi
add eax, edi
cmp esi, 0x152
jb 0x40c002
jmp 0x40c04a
sub dword [ebp - 0x568], edi
xor esi, esi
push esi
push esi
push 0x2ab
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x160]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, esi
je 0x40c118
push 0
lea eax, [ebp - 0x57c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x410]
push eax
mov eax, dword [ebp - 0x580]
mov eax, dword [eax]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c0b8
add esi, dword [ebp - 0x57c]
cmp edi, esi
jg 0x40c081
jmp 0x40c0c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x56c], eax
cmp edi, esi
jg 0x40c124
mov eax, dword [ebp - 0x568]
sub eax, dword [ebp - 0x574]
cmp eax, dword [ebp + 0x10]
mov dword [ebp - 0x570], eax
jb 0x40bfee
jmp 0x40c124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x570]
test eax, eax
jne 0x40c19a
cmp dword [ebp - 0x56c], 0
je 0x40c164
push 5
pop esi
cmp dword [ebp - 0x56c], esi
jne 0x40c156
call fcn.00407774
mov dword [eax], 9
call fcn.00407787
mov dword [eax], esi
jmp 0x40c195
push dword [ebp - 0x56c]
call fcn.0040779a
pop ecx
jmp 0x40c195
mov eax, dword [ebp - 0x580]
mov eax, dword [eax]
test byte [ebx + eax + 4], 0x40
je 0x40c182
mov eax, dword [ebp - 0x574]
cmp byte [eax], 0x1a
jne 0x40c182
xor eax, eax
jmp 0x40c1a0
call fcn.00407774
mov dword [eax], 0x1c
call fcn.00407787
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40c1a0
sub eax, dword [ebp - 0x578]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409e8a
leave
ret
Function at 0x40e447
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x415e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x416bb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
xor edi, edi
cmp eax, edi
jne 0x40e49b
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
call esi
test eax, eax
je 0x40e481
mov dword [0x416bb4], ebx
jmp 0x40e4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40e496
push 2
pop eax
mov dword [0x416bb4], eax
jmp 0x40e49b
mov eax, dword [0x416bb4]
cmp eax, 1
jne 0x40e4b3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
jmp 0x40e572
cmp eax, 2
je 0x40e4bc
cmp eax, edi
jne 0x40e4e5
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 8], edi
jne 0x40e4cf
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 0xc]
call edi
mov ebx, eax
test ebx, ebx
jne 0x40e4ec
xor eax, eax
jmp 0x40e572
jle 0x40e532
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 1
jb 0x40e532
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x40e51a
call fcn.0040cc10
mov esi, esp
test esi, esi
je 0x40e4e5
mov dword [esi], 0xcccc
add esi, 8
jmp 0x40e534
push eax
call fcn.004095e1
test eax, eax
pop ecx
je 0x40e52e
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
jmp 0x40e534
xor esi, esi
test esi, esi
je 0x40e4e5
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x40e568
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x40e551
push eax
push eax
jmp 0x40e557
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
push esi
call fcn.004088d6
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e8a
leave
ret
Function at 0x40e73d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x415e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.00405038
test eax, eax
pop ecx
je 0x40e772
push edi
push edi
push edi
push edi
push edi
call fcn.00407681
add esp, 0x14
push 4
pop eax
call fcn.0040e8a0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e880
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x40e7f9
push 0x402c14
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x40e7f9
push 0x402ce8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40e7f9
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x40e7f9
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x40e7f9
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.00405746
add esp, 0xc
test eax, eax
jl 0x40e880
not edi
and dword [ebp - 8], edi
je 0x40e82b
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00405746
add esp, 0xc
test eax, eax
jl 0x40e880
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x40e836
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x40e84a
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x40e880
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40e880
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e880
xor eax, eax
inc eax
jmp 0x40e882
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e8a
leave
ret
Function at 0x410280
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x57], 0xde
mov dl, byte [esp + 0x57]
mov dh, dl
sub dh, 0xfa
mov byte [esp + 0x4f], dh
mov si, word [esp + 0x54]
add dl, 0xb3
mov byte [esp + 0x42], dl
mov edi, dword [esp + 0x50]
mov byte [esp + 0x43], 0xde
cmp byte [esp + 0x42], 0xe0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x1e], si
mov dword [esp + 0x18], edi
jae 0x4103b1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], edx
mov si, word [esp + 0x1e]
or si, si
mov edx, dword [esp + 0x2c]
mov word [esp + 0x54], si
cmp edx, 0
jne 0x410307
jmp 0x4103d4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00411c00
xor ecx, ecx
add ecx, 0x18
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x28]
movzx ecx, word [ecx + 0x14]
add eax, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x4103b1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
add eax, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
add edx, 0x59d8
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
add esi, ecx
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call fcn.00410120
mov dword [esp + 0x14], eax
mov al, 0x9f
cmp al, byte [esp + 0x43]
jae 0x4103d4
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
add eax, 0x28
mov dword [esp + 0x48], eax
jmp 0x410338
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0x54]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00410120
mov dword [esp + 0x10], eax
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x411aa0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 8]
mov word [esp + 0x32], 0x6b9c
mov ecx, dword [esp + 0x20]
mov edx, ecx
and edx, 0x5aa9
mov dword [esp + 0x20], edx
mov byte [esp + 0x1f], 0x17
mov bl, byte [esp + 0x1f]
add bl, 0x92
mov edx, ecx
xor edx, 0x9d3
mov dword [esp + 0x20], edx
mov byte [esp + 0xf], bl
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
mov dword [esp], ecx
jne 0x411afb
mov dword [esp + 0x10], 0
jmp 0x411bf4
jmp 0x411afd
mov al, byte [esp + 0x1f]
xor al, 0x8d
cmp byte [esp + 0xf], al
je 0x411afd
mov eax, dword [esp + 4]
mov cx, word [eax]
mov eax, dword [esp]
add eax, 0x55fb
movzx edx, cx
mov dword [esp + 0x20], eax
cmp edx, 0x5a4d
jne 0x411b90
mov eax, 0x7936
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], 0x56b
cmp eax, dword [esp + 8]
jbe 0x411b90
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x3f6a
mov ecx, dword [esp + 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [ecx + eax]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0xffffc095
mov ecx, dword [esp]
or ecx, 0x2f71
mov dword [esp + 0x20], ecx
cmp eax, 0x4550
jne 0x411b8e
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
jmp 0x411bf4
jmp 0x411b90
mov eax, dword [esp + 4]
mov word [esp + 0x1c], 0x5a52
mov cx, word [esp + 0x32]
xor cx, 0x36ae
mov byte [esp + 0x27], 0xd1
mov dx, word [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp cx, dx
jb 0x411bca
mov eax, dword [esp + 0x14]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [esp + 4], eax
mov al, 1
test al, 1
jne 0x411afd
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, 0x2c34
adc ecx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret