joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1948e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1948e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1948e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1948e06a
add dl, dl
jne 0x1948e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1948e0dc
xor eax, eax
add dl, dl
jne 0x1948e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1948e17d
add dl, dl
jne 0x1948e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1948e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1948e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1948e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1948e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1948e075
mov eax, 1
add dl, dl
jne 0x1948e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1948e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1948e0e1
sub eax, ebx
mov ebx, 1
jne 0x1948e128
mov ecx, 1
add dl, dl
jne 0x1948e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1948e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1948e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1948e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1948e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1948e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1948e136
cmp eax, 0x7d00
jae 0x1948e16d
cmp eax, 0x500
jb 0x1948e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1948e075
cmp eax, 0x7f
ja 0x1948e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1948e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1948e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1948e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402a7f
pop dword [ebp - 0x40]
mov eax, 0x402a7f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe84abb01
add dword [ebp - 0x50], 0x66078a4a
mov dword [ebp - 0x4c], 0x751ea47c
sub dword [ebp - 0x4c], 0x42eb5837
mov dword [ebp - 0x48], 0x4ccab1ee
add dword [ebp - 0x48], 0xff819240
mov dword [ebp - 0x44], 0x105c4a59
sub dword [ebp - 0x44], 0x105c4a59
lea eax, [ebp - 0x50]
push eax
mov eax, 0xc805297a
sub eax, 0xc7c3e8ea
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x4328bbbf
add dword [ebp - 0x50], 0x3149ad97
mov dword [ebp - 0x4c], 0xfd565153
add dword [ebp - 0x4c], 0x44161022
mov dword [ebp - 0x48], 0x61a76c40
sub dword [ebp - 0x48], 0xfe37ffd4
mov dword [ebp - 0x44], 0xe627123d
sub dword [ebp - 0x44], 0xe627123d
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36406
push 0
call eax
mov ecx, 0x360c
xor edi, edi
add edi, eax
mov esi, 0x41c000
add esi, dword [ebp - 0x40]
mov ebx, 0x31fdd996
sub ebx, 0xc67e1774
add dword [ebp - 0x14], edx
mov edx, dword [esi]
mov dword [ebp - 0x20], 0x8bf0102a
sub edx, ebx
mov dword [ebp - 0x34], 0xa8fafbe8
mov dword [edi], edx
xor dword [ebp - 0x34], edi
add edi, 4
add esi, 0xdfb0318b
sub esi, 0xdfb03187
loop 0x402b8d
add eax, 0xcb03
xor ebx, ebx
add ebx, eax
add eax, 0xcdca2448
add eax, 0x3235dbbd
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret

Function at 0x40dfc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40dfd8
pop dword [ebp - 0x2c]
mov eax, 0x3ef58ce
sub eax, 0x3ae78f6
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x55055
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x7fdc7e1b
add ecx, 0x8023dbb7
xor esi, esi
add esi, eax
mov edx, 0x475e00
add edx, dword [ebp - 0x2c]
mov edi, 0xa0eb9352
mov ebx, dword [edx]
sub dword [ebp - 0x24], 0x77514b79
add ebx, edi
add dword [ebp - 4], 0x760df012
mov dword [esi], ebx
xor dword [ebp - 4], 0x22a8cfe4
add esi, 4
add edx, 4
loop 0x40e028
add eax, 0x58ae636d
add eax, 0xa752f6ae
mov ebx, eax
add eax, 0xfcae0da3
sub eax, 0xfcae0d9e
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x50d000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x96000]
push edi
or ebp, 0xffffffff
jmp 0x50d022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50d029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50d018
mov eax, 1
add ebx, ebx
jne 0x50d03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50d04c
jne 0x50d06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50d06b
dec eax
add ebx, ebx
jne 0x50d058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50d030
add ebx, ebx
jne 0x50d067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50d0bd
xor ecx, ecx
sub eax, 3
jb 0x50d083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50d0f2
sar eax, 1
mov ebp, eax
jmp 0x50d08e
add ebx, ebx
jne 0x50d08e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50d05c
inc ecx
add ebx, ebx
jne 0x50d09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50d05c
add ebx, ebx
jne 0x50d0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50d09e
jne 0x50d0ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50d09e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50d0dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50d0ce
jmp 0x50d01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50d0dc
add edi, ecx
jmp 0x50d01e
pop esi
mov edi, esi
mov ecx, 0x5a6b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50d0fa
cmp byte [edi], 0x1b
jne 0x50d0fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50d0ff
lea edi, [esi + 0x10a000]
mov eax, dword [edi]
or eax, eax
je 0x50d177
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11af90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11b0a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50d12c
mov ecx, edi
jns 0x50d15b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11b0ac]
or eax, eax
je 0x50d171
mov dword [ebx], eax
add ebx, 4
jmp 0x50d149
call dword [esi + 0x11b0bc]
mov ebp, dword [esi + 0x11b0b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50d1ab
sub esp, 0xffffff80
jmp 0x4900e2
Function at 0x401b38
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401b52
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401b7b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401b86
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4024f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00401b03
cmp eax, esi
jne 0x402568
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402531
lea eax, [ebp - 0x110]
push eax
call fcn.004024f0
cmp eax, esi
jne 0x402567
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402521
call fcn.00401a9e
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00401a9e
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x402727
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x402743
xor al, al
jmp 0x40275d
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x402719
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x404484
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov esi, ecx
call dword [0x40e040]
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x410], ebx
je 0x4044f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x4044e1
push esi
call fcn.004018dd
test al, al
pop ecx
je 0x4044e1
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00406360
mov eax, esp
jmp 0x4044ea
push esi
lea ecx, [ebp - 4]
call fcn.00402792
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.0040196d
cmp eax, ebx
jne 0x40451c
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x404512
lea ecx, [ebp - 0x410]
call fcn.004022ac
mov esi, 0x8007000e
jmp 0x4045d7
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x404538
call fcn.004019e2
mov esi, eax
jmp 0x4045be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40455a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x404561
call fcn.004019e2
jmp 0x4045b5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x410]
call fcn.00402800
cmp dword [ebp - 0x410], ebx
jne 0x404589
mov esi, 0x8007000e
jmp 0x4045b7
push esi
push dword [ebp + 8]
push dword [ebp - 0x410]
call fcn.00405af0
mov eax, dword [ebp - 0x410]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x410]
lea ecx, [ebp - 0xc]
call fcn.00403ed7
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x4045d7
lea ecx, [ebp - 0x410]
call fcn.004022ac
lea ecx, [ebp - 4]
call fcn.004021e3
mov eax, esi
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x404f59
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 8], ebx
call fcn.00402136
test al, al
je 0x404f88
call fcn.004058a4
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push 3
push 1
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp dword [ebp - 8], ebx
je 0x404fab
lea eax, [ebp - 8]
push eax
call fcn.0040573a
pop ecx
push 0x40b40c
push dword [ebp + 8]
mov ecx, 0x40f3c8
push 0x40e078
call fcn.00401f74
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x40f3f8], eax
mov esi, 0x40b860
lea edi, [ebp - 4]
lea eax, [ebp - 4]
movsw word es:[edi], word [esi]
push eax
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xc], ebx
call fcn.004020f5
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40506c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, str.shutdown
push str.unregserver
call esi
push eax
push str.unregserver
push edi
call fcn.004065a0
add esp, 0xc
test eax, eax
je 0x40508b
push str.regserver
call esi
push eax
push str.regserver
push edi
call fcn.004065a0
add esp, 0xc
test eax, eax
je 0x405096
push str.startup
call esi
push eax
push str.startup
push edi
call fcn.004065a0
add esp, 0xc
test eax, eax
je 0x405071
push ebx
call esi
push eax
push ebx
push edi
call fcn.004065a0
add esp, 0xc
test eax, eax
je 0x405071
lea eax, [ebp - 4]
push eax
push edi
call fcn.004020f5
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x404ffa
call fcn.00402761
mov ecx, 0x40f3c8
call fcn.004025c6
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
push dword [ebp + 8]
call fcn.00404f27
jmp 0x40509f
push edi
push dword [ebp + 8]
call fcn.00404ef5
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x405071

Function at 0x4050a6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x405128
push ebx
push esi
call fcn.0040659b
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x405127
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405120
push 0x12
pop ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov esi, str.StringFileInfo040904b0ProductName
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
movsw word es:[edi], word [esi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405120
cmp dword [ebp - 4], 0
je 0x405120
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00406649
pop ecx
pop ecx
push ebx
call fcn.00405ffa
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406271
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406360
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40630c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40f5dc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40630c
cmp eax, 1
je 0x40632d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40630c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4062d9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406308
xor eax, eax
inc eax
jmp 0x40634c
cmp edi, eax
jae 0x406310
xor eax, eax
jmp 0x40634c
cmp eax, esi
jae 0x406317
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40f5dc]
jmp 0x406330
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4066f6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40ba40
call fcn.00405e34
mov edi, 0x94
mov eax, edi
call fcn.00406360
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40f5dc], ecx
mov eax, dword [esi + 4]
mov dword [0x40f5e8], eax
mov edx, dword [esi + 8]
mov dword [0x40f5ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40f5e0], esi
cmp ecx, 2
je 0x406756
or esi, 0x8000
mov dword [0x40f5e0], esi
shl eax, 8
add eax, edx
mov dword [0x40f5e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406791
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406791
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4067a9
cmp eax, 0x20b
je 0x406796
mov dword [ebp - 0x1c], esi
jmp 0x4067bd
cmp dword [ecx + 0x84], 0xe
jbe 0x406791
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4067b7
cmp dword [ecx + 0x74], 0xe
jbe 0x406791
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00406bfd
pop ecx
test eax, eax
jne 0x4067d1
push 0x1c
call fcn.004066d2
pop ecx
call fcn.0040802b
test eax, eax
jne 0x4067e2
push 0x10
call fcn.004066d2
pop ecx
call fcn.00408a80
mov dword [ebp - 4], esi
call fcn.00408882
test eax, eax
jge 0x4067fb
push 0x1b
call fcn.004066ad
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fcb8], eax
call fcn.00408760
mov dword [0x40f42c], eax
call fcn.004086be
test eax, eax
jge 0x406821
push 8
call fcn.004066ad
pop ecx
call fcn.0040848b
test eax, eax
jge 0x406832
push 9
call fcn.004066ad
pop ecx
push 1
call fcn.0040794f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406848
push eax
call fcn.004066ad
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040842e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406869
movzx eax, word [ebp - 0x40]
jmp 0x40686c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404f59
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40688a
push edi
call fcn.00407a7c
call fcn.00407a9e
jmp 0x4068bc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405e6f
ret
Function at 0x4069ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4069e8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4069ef
cmp ebx, dword [eax + 4]
jae 0x4069ef
xor eax, eax
jmp 0x406bdf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406a00
xor eax, eax
inc eax
jmp 0x406bde
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406a16
cmp ecx, edx
jae 0x406b5b
cmp dword [eax + 4], 0
je 0x406a1f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406a07
cmp dword [ebp + 8], 0
je 0x406a41
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406b5b
cmp eax, esi
jae 0x406b5b
mov eax, dword [0x40f438]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406a66
cmp dword [esi*4 + 0x40f440], edi
je 0x406b5f
inc esi
cmp esi, eax
jl 0x406a54
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406bdb
cmp dword [ebp - 8], 0x1000000
jne 0x406bdb
test byte [ebp - 0xc], 0xcc
je 0x406ae4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406bdb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406bdb
cmp word [eax + 0x18], 0x10b
jne 0x406bdb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406bdb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406ae4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406ae4
test byte [ecx + 0x27], 0x80
jne 0x406b5b
push 1
push 0x40f480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4069f8
mov ecx, dword [0x40f438]
test ecx, ecx
mov edx, ecx
jle 0x406b18
lea eax, [ecx*4 + 0x40f43c]
cmp dword [eax], edi
je 0x406b18
dec edx
sub eax, 4
test edx, edx
jg 0x406b0c
test edx, edx
jne 0x406b49
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406b25
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406b3d
lea eax, [edx*4 + 0x40f440]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406b2b
cmp ecx, 0x10
jge 0x406b49
inc ecx
mov dword [0x40f438], ecx
push 0
push 0x40f480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4069f8
xor eax, eax
jmp 0x406bde
test esi, esi
jle 0x4069f8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f480
call ebx
test eax, eax
jne 0x4069f8
cmp dword [esi*4 + 0x40f440], edi
je 0x406bb5
mov eax, dword [0x40f438]
lea esi, [eax - 1]
test esi, esi
jl 0x406ba3
cmp dword [esi*4 + 0x40f440], edi
je 0x406b9f
dec esi
jns 0x406b93
test esi, esi
jge 0x406bb3
cmp eax, 0x10
jge 0x406bae
inc eax
mov dword [0x40f438], eax
lea esi, [eax - 1]
jmp 0x406bb5
je 0x406bcd
xor ecx, ecx
test esi, esi
jl 0x406bcd
lea eax, [ecx*4 + 0x40f440]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406bbb
push 0
push 0x40f480
call ebx
jmp 0x4069f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret