joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x568810]
xor edx, edx
cmp eax, edx
jne 0x4bc866
xor eax, eax
mov byte [eax + 0x568710], al
inc eax
cmp eax, 0x100
jl 0x4bc84e
mov dword [0x568810], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x568710
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4bc8f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4bc8ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4bc898
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4bc970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4bc9c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4bc9aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f186e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004c3c70
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x51cb4c
call fcn.004e22e2
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c33e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e22e2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c33dc
push 0
mov ecx, eax
call fcn.004ba490
mov dword [esi + 0xc], eax
jmp 0x4c33e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c33e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e496f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e49a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e29fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e29d4
jmp 0x4e49b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e6064
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e60a6
call fcn.004ebcaa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e60a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e609d
xor eax, eax
jmp 0x4e60ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e60b4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ec1da
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ec208
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ec226
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ec140
jmp 0x4ec226
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ec226
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ec140
test edi, edi
mov eax, edi
jne 0x4ec210
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40c414
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040946a
mov dword [ebp - 0x14], eax
cmp dword [0x2c98c50], esi
jne 0x40c507
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c494
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c5e7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c5e7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c5e7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c98c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c98c54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c98c58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c98c60], eax
test eax, eax
je 0x40c504
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c98c5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c52c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c51f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c541
push 4
pop eax
jmp 0x40c5e9
cmp dword [ebp - 0x14], esi
je 0x40c541
push dword [0x2c98c50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c526
mov eax, dword [0x2c98c5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c59f
cmp dword [0x2c98c60], edi
je 0x40c59f
push eax
call ebx
push dword [0x2c98c60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c59f
test eax, eax
je 0x40c59f
call ecx
test eax, eax
je 0x40c594
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c594
test byte [ebp - 8], 1
jne 0x40c59f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c5cf
mov eax, dword [0x2c98c54]
cmp eax, edi
je 0x40c5cc
push eax
call ebx
test eax, eax
je 0x40c5cc
call eax
mov esi, eax
test esi, esi
je 0x40c5cc
mov eax, dword [0x2c98c58]
cmp eax, edi
je 0x40c5cc
push eax
call ebx
test eax, eax
je 0x40c5cc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c98c50]
call ebx
test eax, eax
je 0x40c5e7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c5e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f9e
mov esp, ebp
pop ebp
ret
Function at 0x2833700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0283378f
jae 0x283370e
xor ecx, ecx
call fcn.0283378f
jae 0x283373d
xor eax, eax
call fcn.0283378f
jae 0x283374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0283378f
adc al, al
jae 0x283372f
jne 0x2833779
stosb byte es:[edi], al
jmp 0x2833711
call fcn.0283379b
sub ecx, ebx
jne 0x2833756
call fcn.02833799
jmp 0x2833775
lodsb al, byte [esi]
shr eax, 1
je 0x2833783
adc ecx, ecx
jmp 0x2833772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02833799
cmp eax, 0x7d00
jae 0x2833772
cmp ah, 5
jae 0x2833773
cmp eax, 0x7f
ja 0x2833774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2833711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401468
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406138
call fcn.00402054
mov edi, 0x94
mov eax, edi
call fcn.00402d60
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 [0x408468], ecx
mov eax, dword [esi + 4]
mov dword [0x408474], eax
mov edx, dword [esi + 8]
mov dword [0x408478], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40846c], esi
cmp ecx, 2
je 0x4014c8
or esi, 0x8000
mov dword [0x40846c], esi
shl eax, 8
add eax, edx
mov dword [0x408470], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401503
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401503
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40151b
cmp eax, 0x20b
je 0x401508
mov dword [ebp - 0x1c], esi
jmp 0x40152f
cmp dword [ecx + 0x84], 0xe
jbe 0x401503
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401529
cmp dword [ecx + 0x74], 0xe
jbe 0x401503
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402d06
pop ecx
test eax, eax
jne 0x40155b
cmp dword [0x40844c], 1
jne 0x401548
call fcn.004024bb
push 0x1c
call fcn.00402344
push 0xff
call fcn.004021a9
pop ecx
pop ecx
call fcn.00402c64
mov dword [ebp - 4], esi
call fcn.00402ab9
test eax, eax
jge 0x401574
push 0x1b
call fcn.00401443
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4089c0], eax
call fcn.00402997
mov dword [0x408444], eax
call fcn.004028f5
test eax, eax
jge 0x40159a
push 8
call fcn.00401443
pop ecx
call fcn.004026c2
test eax, eax
jge 0x4015ab
push 9
call fcn.00401443
pop ecx
push 1
call fcn.004021d9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4015c1
push eax
call fcn.00401443
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402665
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4015e2
movzx eax, word [ebp - 0x40]
jmp 0x4015e5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401603
push edi
call fcn.00402304
call fcn.00402326
jmp 0x401635
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040208f
ret
Function at 0x402243
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4084a8], esi
push edi
jne 0x402263
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4084a4], esi
mov byte [0x4084a0], al
jne 0x4022c9
mov ecx, dword [0x408788]
test ecx, ecx
je 0x4022aa
mov eax, dword [0x408784]
sub eax, 4
cmp eax, ecx
jmp 0x4022a3
mov eax, dword [eax]
test eax, eax
je 0x402295
call eax
mov eax, dword [0x408784]
sub eax, 4
cmp eax, dword [0x408788]
mov dword [0x408784], eax
jae 0x40228d
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x4022c9
mov eax, dword [edi]
test eax, eax
je 0x4022c2
call eax
add edi, 4
cmp edi, esi
jb 0x4022ba
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4022e8
mov eax, dword [edi]
test eax, eax
je 0x4022e1
call eax
add edi, 4
cmp edi, esi
jb 0x4022d9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402302
push dword [ebp + 8]
mov dword [0x4084a8], 1
call fcn.004021a9
pop ebp
ret

Function at 0x402344
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408150]
je 0x402379
inc eax
cmp eax, 0x13
jb 0x40236a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408150]
jne 0x40249f
mov eax, dword [0x40844c]
cmp eax, 1
je 0x402477
cmp eax, edx
jne 0x4023a9
cmp dword [0x408038], 1
je 0x402477
cmp ecx, 0xfc
je 0x40249f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4023df
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403800
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402413
mov eax, edi
push eax
call fcn.00403980
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061a0
push edi
call fcn.00401a30
add esp, 0x10
push edi
call fcn.00403980
push dword [esi + 0x408154]
mov ebx, eax
call fcn.00403980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402d60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403800
push edi
push ebx
call fcn.00403810
push 0x40619c
push ebx
call fcn.00403810
push dword [esi + 0x408154]
push ebx
call fcn.00403810
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403ac8
add esp, 0x2c
jmp 0x40249f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408154]
push dword [esi]
call fcn.00403980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401435
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4033de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x403409
cmp eax, 1
je 0x403409
jle 0x403411
cmp eax, 3
jle 0x403409
cmp eax, 4
jne 0x403411
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x40343a
mov dword [0x40845c], 0x16
mov dword [0x408460], ebx
or eax, 0xffffffff
jmp 0x4035ac
inc eax
cmp byte [eax], bl
jne 0x403429
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x40343a
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x403429
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00404e40
mov dword [ebp - 0x68], esi
mov esi, dword [0x408678]
add esp, 0xc
cmp esi, ebx
je 0x40347d
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x408680]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x40347d
dec esi
dec eax
cmp esi, ebx
jne 0x403460
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0040518f
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4034e2
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x408680]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4034ce
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4034d3
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4034a9
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x403513
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4034f9
mov edi, esi
jmp 0x4034fc
push 3
pop edi
cmp edx, edi
jge 0x40350c
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4034f0
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x40845c], ebx
push dword [ebp - 0xc]
mov dword [0x408460], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004033a6
cmp esi, ebx
pop ecx
jne 0x403561
push edi
call fcn.0040520a
pop ecx
or eax, 0xffffffff
jmp 0x4035aa
cmp dword [ebp + 8], 2
jne 0x40356d
push ebx
call fcn.00402315
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40359a
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4035a3
cmp dword [ebp + 8], 4
je 0x403593
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4037bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4037dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040520a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4037fd
test byte [esp + 8], 2
je 0x4037fd
mov dword [0x40845c], 0xd
mov dword [0x408460], 5
jmp 0x4037d8
xor eax, eax
ret

Function at 0x403ac8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4085ec], ebx
push esi
push edi
jne 0x403b48
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403b83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4085ec], eax
je 0x403b83
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4085f0], eax
call esi
cmp dword [0x408468], 2
mov dword [0x4085f4], eax
jne 0x403b48
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4085fc], eax
je 0x403b48
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4085f8], eax
mov eax, dword [0x4085f8]
test eax, eax
je 0x403b8d
call eax
test eax, eax
je 0x403b74
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4085fc]
test eax, eax
je 0x403b74
test byte [ebp - 8], 1
jne 0x403b8d
cmp dword [0x408474], 4
jb 0x403b87
or byte [ebp + 0x12], 0x20
jmp 0x403bac
xor eax, eax
jmp 0x403bbc
or byte [ebp + 0x12], 4
jmp 0x403bac
mov eax, dword [0x4085f0]
test eax, eax
je 0x403bac
call eax
mov ebx, eax
test ebx, ebx
je 0x403bac
mov eax, dword [0x4085f4]
test eax, eax
je 0x403bac
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4085ec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403cb2
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 0x403ce0
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 0x403ce7
cmp ebx, dword [eax + 4]
jae 0x403ce7
xor eax, eax
jmp 0x403ed7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403cf8
xor eax, eax
inc eax
jmp 0x403ed6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403d0e
cmp ecx, edx
jae 0x403e53
cmp dword [eax + 4], 0
je 0x403d17
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403cff
cmp dword [ebp + 8], 0
je 0x403d39
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403e53
cmp eax, esi
jae 0x403e53
mov eax, dword [0x408600]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403d5e
cmp dword [esi*4 + 0x408608], edi
je 0x403e57
inc esi
cmp esi, eax
jl 0x403d4c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403ed3
cmp dword [ebp - 8], 0x1000000
jne 0x403ed3
test byte [ebp - 0xc], 0xcc
je 0x403ddc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403ed3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403ed3
cmp word [eax + 0x18], 0x10b
jne 0x403ed3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403ed3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403ddc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403ddc
test byte [ecx + 0x27], 0x80
jne 0x403e53
push 1
push 0x408648
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403cf0
mov ecx, dword [0x408600]
test ecx, ecx
mov edx, ecx
jle 0x403e10
lea eax, [ecx*4 + 0x408604]
cmp dword [eax], edi
je 0x403e10
dec edx
sub eax, 4
test edx, edx
jg 0x403e04
test edx, edx
jne 0x403e41
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403e1d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403e35
lea eax, [edx*4 + 0x408608]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403e23
cmp ecx, 0x10
jge 0x403e41
inc ecx
mov dword [0x408600], ecx
push 0
push 0x408648
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403cf0
xor eax, eax
jmp 0x403ed6
test esi, esi
jle 0x403cf0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408648
call ebx
test eax, eax
jne 0x403cf0
cmp dword [esi*4 + 0x408608], edi
je 0x403ead
mov eax, dword [0x408600]
lea esi, [eax - 1]
test esi, esi
jl 0x403e9b
cmp dword [esi*4 + 0x408608], edi
je 0x403e97
dec esi
jns 0x403e8b
test esi, esi
jge 0x403eab
cmp eax, 0x10
jge 0x403ea6
inc eax
mov dword [0x408600], eax
lea esi, [eax - 1]
jmp 0x403ead
je 0x403ec5
xor ecx, ecx
test esi, esi
jl 0x403ec5
lea eax, [ecx*4 + 0x408608]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403eb3
push 0
push 0x408648
call ebx
jmp 0x403cf0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4050ac
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.00402d60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405147
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 [0x408468]
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 0x405147
cmp eax, 1
je 0x405168
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 0x405147
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405114
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405143
xor eax, eax
inc eax
jmp 0x405187
cmp edi, eax
jae 0x40514b
xor eax, eax
jmp 0x405187
cmp eax, esi
jae 0x405152
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 [0x408468]
jmp 0x40516b
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