joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076fb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.004032dd
push 0x5c
pop edi
push edi
push 0x2f
lea ecx, [ebp - 4]
call fcn.0040276c
mov esi, dword [ebp - 4]
mov eax, dword [esi - 8]
cmp word [esi + eax*2 - 2], di
je 0x40773f
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
call fcn.00401977
mov esi, dword [ebp - 4]
mov eax, dword [0x414050]
xor ebx, ebx
cmp dword [esi - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
jle 0x40778a
xor eax, eax
mov ax, word [esi + ebx*2]
cmp ax, di
je 0x407767
mov dword [ebp - 0xc], eax
jmp 0x407776
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040763e
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push 1
call fcn.00401977
inc ebx
cmp ebx, dword [esi - 8]
jl 0x407757
mov esi, dword [ebp - 0x18]
jmp 0x4077ac
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4077a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4077da
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x40778f
mov bl, 1
lea ecx, [ebp - 8]
call fcn.00401894
lea ecx, [ebp - 0x1c]
call fcn.00406715
lea ecx, [ebp - 4]
call fcn.00401894
lea ecx, [ebp + 8]
call fcn.00401894
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor bl, bl
jmp 0x4077b3
Function at 0x4077de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017e6
mov eax, dword [0x414050]
mov dword [ebp + 0x14], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 0x14]
call fcn.00402af1
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.004032dd
lea eax, [ebp + 0xc]
push eax
call fcn.00402009
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.00402aa1
lea ecx, [ebp + 0xc]
call fcn.00401894
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 0x44]
call fcn.00402aa1
xor ebx, ebx
push ebx
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
push str._sTempgsie
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x40]
push eax
mov ecx, edi
call fcn.00402af1
push ecx
mov ecx, esp
push edi
call fcn.004032dd
call fcn.004076fb
pop ecx
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00403310
push ebx
push 0x411be0
lea ecx, [ebp + 0xc]
call fcn.00401862
cmp eax, ebx
jg 0x4078d4
xor bl, bl
jmp 0x4079b0
add eax, 3
push eax
push 0x411bdc
lea ecx, [ebp + 0xc]
call fcn.00401862
mov ebx, eax
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040336d
push eax
lea ecx, [esi + 0x48]
call fcn.00402aa1
lea ecx, [ebp + 8]
call fcn.00401894
push str.silent:1
lea ecx, [ebp + 0x10]
call fcn.00403310
push str.silent:0
lea ecx, [ebp + 8]
call fcn.00403310
push 0x411ba4
lea ecx, [ebp - 4]
call fcn.00403310
lea ecx, [ebp + 0x10]
call fcn.00401fa0
push dword [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_CharLowerW]
call edi
lea ecx, [ebp + 8]
call fcn.00401fa0
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00401862
test eax, eax
jl 0x407965
mov dword [esi + 0x3c], 1
jmp 0x407992
push ebx
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00401862
test eax, eax
jl 0x40797b
and dword [esi + 0x3c], 0
jmp 0x407992
push ebx
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00401862
test eax, eax
jl 0x407996
mov dword [esi + 0x3c], 2
mov bl, 1
jmp 0x407998
xor bl, bl
lea ecx, [ebp - 4]
call fcn.00401894
lea ecx, [ebp + 8]
call fcn.00401894
lea ecx, [ebp + 0x10]
call fcn.00401894
lea ecx, [ebp + 0xc]
call fcn.00401894
lea ecx, [ebp + 0x14]
call fcn.00401894
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x10
Function at 0x4079c9
Capabilities:
Copy file
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ebx
call fcn.004014e4
test eax, eax
jle 0x407b4c
mov eax, dword [esi + 0x10]
push ecx
add eax, ebx
mov ecx, esp
push eax
call fcn.004032dd
lea eax, [ebp - 0x1c]
push eax
call fcn.004034a9
pop ecx
pop ecx
push eax
push 0x411c44
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0040345d
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040341c
lea ecx, [ebp - 0x18]
call fcn.00401894
lea ecx, [ebp - 0x1c]
call fcn.00401894
mov eax, dword [esi + 0x10]
add eax, ebx
push ecx
add eax, 4
mov ecx, esp
push eax
call fcn.004032dd
lea eax, [ebp - 8]
push eax
call fcn.00402009
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x407a77
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004032dd
call fcn.004076fb
test al, al
pop ecx
je 0x407b56
mov eax, dword [esi + 0x10]
add eax, ebx
mov eax, dword [eax + 4]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407a98
or dword [ebp - 0x14], 0xffffffff
jmp 0x407b25
mov eax, dword [esi + 0x10]
add eax, ebx
cmp word [eax + 0xc], 3
je 0x407aab
cmp word [eax + 0xc], 4
jne 0x407b25
cmp byte [eax + 0xe], 1
jne 0x407b25
add eax, 4
push eax
lea ecx, [ebp - 4]
call fcn.004032dd
push dword [ebp - 4]
lea eax, [ebp - 4]
push str.__s___s_
push eax
call fcn.00403409
add esp, 0xc
push 0xe
xor eax, eax
pop ecx
mov dword [ebp - 0x58], 0x3c
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x48], str.regsvr32.exe
mov dword [ebp - 0x4c], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407b12
and dword [ebp - 0x14], eax
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
call fcn.00401894
lea ecx, [ebp - 8]
call fcn.00401894
lea ecx, [ebp - 0x10]
call fcn.00401894
inc dword [ebp - 0xc]
lea ecx, [esi + 0xc]
add ebx, 0x10
call fcn.004014e4
cmp dword [ebp - 0xc], eax
jl 0x4079f0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 8]
call fcn.00401894
lea ecx, [ebp - 0x10]
call fcn.00401894
or eax, 0xffffffff
jmp 0x407b4f
Function at 0x40877c
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
add esi, 0xc4
cmp dword [esi], eax
setg al
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esi], 1
pop esi
jne 0x4087bb
push 1
push 0
push 0
push dword [0x414dd8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 4
Function at 0x40a5d8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x411ed8
call fcn.004097b0
mov edi, 0x94
mov eax, edi
call fcn.0040a330
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 [0x41505c], ecx
mov eax, dword [esi + 4]
mov dword [0x415068], eax
mov edx, dword [esi + 8]
mov dword [0x41506c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x415060], esi
cmp ecx, 2
je 0x40a638
or esi, 0x8000
mov dword [0x415060], esi
shl eax, 8
add eax, edx
mov dword [0x415064], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a673
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a673
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a68b
cmp eax, 0x20b
je 0x40a678
mov dword [ebp - 0x1c], esi
jmp 0x40a69f
cmp dword [ecx + 0x84], 0xe
jbe 0x40a673
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a699
cmp dword [ecx + 0x74], 0xe
jbe 0x40a673
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040aa49
pop ecx
test eax, eax
jne 0x40a6b3
push 0x1c
call fcn.0040a5b4
pop ecx
call fcn.0040c1c9
test eax, eax
jne 0x40a6c4
push 0x10
call fcn.0040a5b4
pop ecx
call fcn.0040d649
mov dword [ebp - 4], esi
call fcn.0040d44b
test eax, eax
jge 0x40a6dd
push 0x1b
call fcn.0040a58f
pop ecx
call fcn.0040d3ac
mov dword [0x4157d4], eax
call fcn.0040d242
mov dword [0x414e94], eax
call fcn.0040d1ac
test eax, eax
jge 0x40a702
push 8
call fcn.0040a58f
pop ecx
call fcn.0040cf79
test eax, eax
jge 0x40a713
push 9
call fcn.0040a58f
pop ecx
push 1
call fcn.0040ca3c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40a729
push eax
call fcn.0040a58f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040cf33
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40a74a
movzx eax, word [ebp - 0x40]
jmp 0x40a74d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040824a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a76b
push edi
call fcn.0040cb69
call fcn.0040cb8b
jmp 0x40a79d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004097eb
ret
Function at 0x40a806
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 0x40a834
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 0x40a83b
cmp ebx, dword [eax + 4]
jae 0x40a83b
xor eax, eax
jmp 0x40aa2b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a84c
xor eax, eax
inc eax
jmp 0x40aa2a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a862
cmp ecx, edx
jae 0x40a9a7
cmp dword [eax + 4], 0
je 0x40a86b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a853
cmp dword [ebp + 8], 0
je 0x40a88d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a9a7
cmp eax, esi
jae 0x40a9a7
mov eax, dword [0x414ea0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a8b2
cmp dword [esi*4 + 0x414ea8], edi
je 0x40a9ab
inc esi
cmp esi, eax
jl 0x40a8a0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40aa27
cmp dword [ebp - 8], 0x1000000
jne 0x40aa27
test byte [ebp - 0xc], 0xcc
je 0x40a930
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40aa27
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40aa27
cmp word [eax + 0x18], 0x10b
jne 0x40aa27
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40aa27
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a930
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a930
test byte [ecx + 0x27], 0x80
jne 0x40a9a7
push 1
push 0x414ee8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a844
mov ecx, dword [0x414ea0]
test ecx, ecx
mov edx, ecx
jle 0x40a964
lea eax, [ecx*4 + 0x414ea4]
cmp dword [eax], edi
je 0x40a964
dec edx
sub eax, 4
test edx, edx
jg 0x40a958
test edx, edx
jne 0x40a995
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a971
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a989
lea eax, [edx*4 + 0x414ea8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a977
cmp ecx, 0x10
jge 0x40a995
inc ecx
mov dword [0x414ea0], ecx
push 0
push 0x414ee8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a844
xor eax, eax
jmp 0x40aa2a
test esi, esi
jle 0x40a844
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x414ee8
call ebx
test eax, eax
jne 0x40a844
cmp dword [esi*4 + 0x414ea8], edi
je 0x40aa01
mov eax, dword [0x414ea0]
lea esi, [eax - 1]
test esi, esi
jl 0x40a9ef
cmp dword [esi*4 + 0x414ea8], edi
je 0x40a9eb
dec esi
jns 0x40a9df
test esi, esi
jge 0x40a9ff
cmp eax, 0x10
jge 0x40a9fa
inc eax
mov dword [0x414ea0], eax
lea esi, [eax - 1]
jmp 0x40aa01
je 0x40aa19
xor ecx, ecx
test esi, esi
jl 0x40aa19
lea eax, [ecx*4 + 0x414ea8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40aa07
push 0
push 0x414ee8
call ebx
jmp 0x40a844
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40caa6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x412040
call fcn.004097b0
push 8
call fcn.0040abed
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41509c], esi
jne 0x40cada
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x415098], esi
mov al, byte [ebp + 0x10]
mov byte [0x415094], al
cmp dword [ebp + 0xc], edi
jne 0x40cb24
cmp dword [0x4157a8], edi
je 0x40cb14
mov eax, dword [0x4157a4]
sub eax, 4
mov dword [0x4157a4], eax
cmp eax, dword [0x4157a8]
jb 0x40cb14
mov eax, dword [eax]
cmp eax, edi
je 0x40caf5
call eax
jmp 0x40caf5
push 0x414034
mov eax, 0x414030
call fcn.0040ca24
pop ecx
push 0x414040
mov eax, 0x414038
call fcn.0040ca24
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40cb55
cmp dword [ebp + 0x10], edi
jne 0x40cb63
mov dword [0x41509c], esi
push dword [ebp + 8]
call fcn.0040c9e2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cb62
push 8
call fcn.0040ab38
pop ecx
ret
call fcn.004097eb
ret

Function at 0x40cc1f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x414154]
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 + 0x4142a8]
je 0x40cc54
inc eax
cmp eax, 0x13
jb 0x40cc45
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4142a8]
jne 0x40cd7a
mov eax, dword [0x414e98]
cmp eax, 1
je 0x40cd52
cmp eax, edx
jne 0x40cc84
cmp dword [0x414150], 1
je 0x40cd52
cmp ecx, 0xfc
je 0x40cd7a
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 0x40ccba
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040c3e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ccee
mov eax, edi
push eax
call fcn.00409020
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x412448
push edi
call fcn.0040e9c0
add esp, 0x10
push edi
call fcn.00409020
push dword [esi + 0x4142ac]
mov ebx, eax
call fcn.00409020
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040a330
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040c3e0
push edi
push ebx
call fcn.0040c3f0
push 0x412428
push ebx
call fcn.0040c3f0
push dword [esi + 0x4142ac]
push ebx
call fcn.0040c3f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040e8c4
add esp, 0x2c
jmp 0x40cd7a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4142ac]
push dword [esi]
call fcn.00409020
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.0040a7f8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40d242
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4152b4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40d28b
call ebp
mov esi, eax
cmp esi, ebx
je 0x40d271
mov dword [0x4152b4], 1
jmp 0x40d290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d286
push 2
pop eax
mov dword [0x4152b4], eax
jmp 0x40d28b
mov eax, dword [0x4152b4]
cmp eax, 1
jne 0x40d2e8
cmp esi, ebx
jne 0x40d2a3
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40d2a3
xor eax, eax
jmp 0x40d38f
cmp word [esi], bx
mov eax, esi
je 0x40d2b8
inc eax
inc eax
cmp word [eax], bx
jne 0x40d2aa
inc eax
inc eax
cmp word [eax], bx
jne 0x40d2aa
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040a315
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40d2db
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40d38f
push ebp
push esi
push edi
call fcn.004090b0
add esp, 0xc
jmp 0x40d2cd
cmp eax, 2
je 0x40d2f1
cmp eax, ebx
jne 0x40d29c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40d29c
cmp byte [ebp], bl
mov esi, ebp
je 0x40d327
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40d29c
push esi
add edi, eax
call fcn.00409020
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40d304
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040a315
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40d3a0
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40d381
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40d396
push edi
call fcn.00409020
push esi
lea edi, [edi + eax + 1]
call fcn.0040a258
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40d347
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00409905
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40d29c
Function at 0x40d3ac
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4152b8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40d3ec
call esi
test eax, eax
je 0x40d3d1
mov dword [0x4152b8], 1
jmp 0x40d3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d3e8
mov dword [0x4152b8], 2
jmp 0x40d3fa
xor eax, eax
jmp 0x40d448
cmp eax, 1
jne 0x40d3f5
call esi
jmp 0x40d448
cmp eax, 2
jne 0x40d3e8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40d440
lea eax, [esi + esi]
push eax
call fcn.0040a315
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40d440
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40d444
push ebp
call fcn.00409905
pop ecx
xor eax, eax
jmp 0x40d446
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40e8c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4152d4], ebx
push esi
push edi
jne 0x40e944
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e97f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4152d4], eax
je 0x40e97f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4152d8], eax
call esi
cmp dword [0x41505c], 2
mov dword [0x4152dc], eax
jne 0x40e944
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4152e4], eax
je 0x40e944
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4152e0], eax
mov eax, dword [0x4152e0]
test eax, eax
je 0x40e989
call eax
test eax, eax
je 0x40e970
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4152e4]
test eax, eax
je 0x40e970
test byte [ebp - 8], 1
jne 0x40e989
cmp dword [0x415068], 4
jb 0x40e983
or byte [ebp + 0x12], 0x20
jmp 0x40e9a8
xor eax, eax
jmp 0x40e9b8
or byte [ebp + 0x12], 4
jmp 0x40e9a8
mov eax, dword [0x4152d8]
test eax, eax
je 0x40e9a8
call eax
mov ebx, eax
test ebx, ebx
je 0x40e9a8
mov eax, dword [0x4152dc]
test eax, eax
je 0x40e9a8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4152d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fede
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.0040a330
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ff79
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 [0x41505c]
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 0x40ff79
cmp eax, 1
je 0x40ff9a
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 0x40ff79
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ff46
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ff75
xor eax, eax
inc eax
jmp 0x40ffb9
cmp edi, eax
jae 0x40ff7d
xor eax, eax
jmp 0x40ffb9
cmp eax, esi
jae 0x40ff84
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 [0x41505c]
jmp 0x40ff9d
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 0x481bb3
Capabilities:
Check for software breakpoints

Disassembly:
call 0x481bb8
pop eax
mov ebx, 0x400000
mov esi, dword [ebx + 0xc0]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x481bc7
sub eax, 3
mov edx, dword [eax]
mov esi, dword [ebx + 0x16c]
add esi, ebx
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.00481a55
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1d63e
call fcn.00481b76
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x481c5e
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x481c59
pushal
test eax, 0x80000000
je 0x481c43
and eax, 0x7fffffff
jmp 0x481c47
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x481c2e
add esi, 0x14
jmp 0x481c14
pop edx
add ebx, dword [edx + 0x28]
jmp ebx