joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552f98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5adf64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
call fcn.00404e76
mov ecx, eax
test ecx, ecx
jne 0x403163
push 0x80004005
call fcn.004020c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x403196
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401d40
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x104
jge 0x4031a9
push 0x80070057
call fcn.004020c0
push esi
xor eax, eax
mov dword [esi - 0xc], 0x104
push 0x104
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [esi - 8]
push esi
call fcn.0053c9c6
add esp, 8
test eax, eax
js 0x40319f
cmp eax, dword [esi - 8]
jg 0x40319f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x18]
push 1
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
push eax
call fcn.00403ef0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403b40
or edi, 0xffffffff
test al, al
je 0x403278
push 0x592aec
lea ecx, [ebp - 0x1c]
call fcn.004047d0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403e30
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402050
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403257
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403275
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00403e30
mov byte [ebp - 4], 1
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4032a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4032c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4032e1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534ca7
mov esp, ebp
pop ebp
ret
Function at 0x40929d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00409793
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4092d9
call fcn.004094bf
mov dword [esi + 0xc], 1
jmp 0x4092de
call fcn.004094bf
cmp dword [esi], 0
je 0x409327
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x409301
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00403fc0
jmp 0x409312
push 0xff
mov ecx, esi
call fcn.00401da0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403f70
jmp 0x40934b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x40934b
push dword [esi]
push dword [ebp - 4]
call fcn.00409d18
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409414
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004094bf
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40945c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00403fc0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403f70
jmp 0x409467
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00409d18
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409849
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x555e51
call fcn.005351c6
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x40986f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4098ce
call fcn.00404e76
push eax
lea ecx, [ebp - 0x10]
call fcn.004020e0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00535189
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0053cc55
push eax
call fcn.00402fa0
add esp, 0x14
test esi, esi
je 0x4098c1
push esi
call fcn.0053cc60
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402140
mov eax, ebx
call fcn.0053518f
ret 8
Function at 0x40dfd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40e015
call fcn.00406735
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e015
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40e031
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416da6
mov ebx, eax
test edi, edi
je 0x40e02f
test esi, esi
je 0x40e02f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ea23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40eae1
cmp dword [esi + 0x20], 0
je 0x40eae1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40eae1
cmp dword [ebp + 8], 0
je 0x40eae1
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00406735
push 0x564810
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40eab2
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40eae1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0041799c
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40ead2
test edi, edi
je 0x40ead2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x40eadd
mov ecx, esi
call fcn.0040e7c6
mov eax, ebx
jmp 0x40eae3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417fd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x418000
cmp dword [ebx + 0x80], 0
jne 0x418000
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.00406735
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.00418293
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41803a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00406735
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418071
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00418092
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a196
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x41a1b0
mov edi, dword [esi + 0xc]
jmp 0x41a1f0
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41a1c9
call fcn.00414356
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x41a1de
call fcn.00414356
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41a1f0
call fcn.00414356
call fcn.00406735
cmp dword [eax + 0x3c], 0
je 0x41a205
push edi
mov ecx, ebx
call fcn.004198cf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0041a3e2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x41a22e
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x41a23a
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e0f4
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0047cb6a
call fcn.00406783
cmp dword [eax + 0x14], 0
jne 0x42e10f
mov ecx, esi
pop esi
jmp fcn.0042d43f
pop esi
ret

Function at 0x42efb8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401be0
call fcn.00406783
cmp dword [eax + 0x14], 0
jne 0x42efd3
mov ecx, esi
pop esi
jmp fcn.0042e836
pop esi
ret
Function at 0x43d901
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x43d91a
call fcn.00406735
mov esi, dword [eax + 0xc]
push 0x56b63c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43d970
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43d96f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x43d950
xor esi, esi
jmp 0x43d966
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0043d978
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x54e7e2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054e4a2
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x406243
pop dword [ebp - 0x38]
mov eax, 0x21ab0566
add eax, 0xde955cdd
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x293b82c1
sub dword [ebp - 0x48], 0xdae93d76
mov dword [ebp - 0x44], 0xd8e29607
sub dword [ebp - 0x44], 0xa6af49c2
mov dword [ebp - 0x40], 0x6d78c46e
add dword [ebp - 0x40], 0xded37fc0
mov dword [ebp - 0x3c], 0xaf7760dd
sub dword [ebp - 0x3c], 0xaf7760dd
lea eax, [ebp - 0x48]
push eax
mov eax, 0x6383547c
sub eax, 0x6342d378
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x1e6ba844
add dword [ebp - 0x48], 0x5606c112
mov dword [ebp - 0x44], 0x98ac181d
add dword [ebp - 0x44], 0xa8c04958
mov dword [ebp - 0x40], 0x53482dcf
sub dword [ebp - 0x40], 0xefd8c163
mov dword [ebp - 0x3c], 0x44473479
sub dword [ebp - 0x3c], 0x44473479
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x6636308
add eax, 0xf9dd1df8
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38a97
push 0
call eax
mov ecx, 0x4e8e
xor edi, edi
add edi, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x38]
mov ebx, 0x29301b45
sub ebx, 0x2d9cf0c
sub dword [ebp - 0x24], edx
mov edx, dword [esi]
add dword [ebp - 0x14], edi
xor edx, ebx
mov dword [ebp - 0x30], 0x89fbc8d8
mov dword [edi], edx
sub dword [ebp - 0x2c], ebx
add edi, 0xc8968cf7
add edi, 0x3769730d
add esi, 0x66cbacf9
sub esi, 0x66cbacf5
loop 0x40635b
add eax, 0xe739c2d4
add eax, 0x18c76a37
mov ebx, eax
add eax, 0x4c554db4
add eax, 0xb3aab251
mov ecx, 0xb80d97c0
add ecx, 0x48326840
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x40250a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412360]
jne 0x402514
repz ret
jmp fcn.0040669a

Function at 0x4063f2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x412f80]
je 0x40640d
inc edi
cmp edi, 0x17
jb 0x4063fe
cmp edi, 0x17
jae 0x40658d
push ebp
push 3
call fcn.00409ef6
cmp eax, 1
pop ecx
je 0x406559
push 3
call fcn.00409ef6
test eax, eax
pop ecx
jne 0x406441
cmp dword [0x4126b0], 1
je 0x406559
cmp ebx, 0xfc
je 0x40658c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x413550
push ebp
call fcn.0040679e
add esp, 0xc
test eax, eax
je 0x406477
push esi
push esi
push esi
push esi
push esi
call fcn.00404e0a
add esp, 0x14
push 0x104
mov esi, 0x413569
push esi
push 0
mov byte [0x41366d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4064bb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040679e
add esp, 0xc
test eax, eax
je 0x4064bb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404e0a
add esp, 0x14
push esi
call fcn.004068e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406500
push esi
call fcn.004068e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x413864
push 0x40baa4
sub ecx, eax
push ecx
push eax
call fcn.00406cb6
add esp, 0x14
test eax, eax
je 0x406500
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404e0a
add esp, 0x14
jmp 0x406502
xor esi, esi
push 0x40baa0
push ebx
push ebp
call fcn.00406bf5
add esp, 0xc
test eax, eax
je 0x406522
push esi
push esi
push esi
push esi
push esi
call fcn.00404e0a
add esp, 0x14
push dword [edi*8 + 0x412f84]
push ebx
push ebp
call fcn.00406bf5
add esp, 0xc
test eax, eax
je 0x406544
push esi
push esi
push esi
push esi
push esi
call fcn.00404e0a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00409d39
add esp, 0xc
jmp 0x40658c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40658c
cmp ebp, 0xffffffff
je 0x40658c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x412f84]
push dword [esi]
call fcn.004068e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x407d06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call esp
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
invalid
test eax, ebx
cli
Function at 0x409d39
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004042a4
xor ebx, ebx
cmp dword [0x413da0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x409e0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409eef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x409eef
push eax
call fcn.00404236
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413da0], eax
call esi
push eax
call fcn.00404236
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413da4], eax
call esi
push eax
call fcn.00404236
mov dword [0x413da8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040617f
test eax, eax
pop ecx
pop ecx
je 0x409ddd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404e0a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x409e0f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404236
cmp eax, ebx
pop ecx
mov dword [0x413db0], eax
je 0x409e0f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404236
pop ecx
mov dword [0x413dac], eax
mov eax, dword [0x413dac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x409e94
cmp dword [0x413db0], ecx
je 0x409e94
push eax
call fcn.004042ad
push dword [0x413db0]
mov esi, eax
call fcn.004042ad
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x409e94
cmp edi, ebx
je 0x409e94
call esi
cmp eax, ebx
je 0x409e61
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409e61
test byte [ebp - 0x18], 1
jne 0x409e94
lea eax, [ebp - 0x10]
push eax
call fcn.004061b6
test eax, eax
pop ecx
je 0x409e7c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404e0a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x409e8b
or dword [ebp + 0x10], 0x200000
jmp 0x409ecf
or dword [ebp + 0x10], 0x40000
jmp 0x409ecf
mov eax, dword [0x413da4]
cmp eax, dword [ebp - 8]
je 0x409ecf
push eax
call fcn.004042ad
cmp eax, ebx
pop ecx
je 0x409ecf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x409ecf
mov eax, dword [0x413da8]
cmp eax, dword [ebp - 8]
je 0x409ecf
push eax
call fcn.004042ad
cmp eax, ebx
pop ecx
je 0x409ecf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413da0]
call fcn.004042ad
cmp eax, ebx
pop ecx
je 0x409eef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ef1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x700345d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x700346c
pop dword [ebp - 0x50]
mov eax, 0x51f85ddc
sub eax, 0x4af82970
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x6e90d221
sub dword [ebp - 0x60], 0x203e8cd6
mov dword [ebp - 0x5c], 0xbbf15ad3
add dword [ebp - 0x5c], 0x7641f172
mov dword [ebp - 0x58], 0x5c774871
sub dword [ebp - 0x58], 0x102b0443
mov dword [ebp - 0x54], 0xb405ce37
sub dword [ebp - 0x54], 0xb405ce37
lea eax, [ebp - 0x60]
push eax
mov eax, 0x2b86baca
sub eax, 0x24857a9a
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x98fb4d7b
add dword [ebp - 0x60], 0xdb771bdb
mov dword [ebp - 0x5c], 0x3f1ac350
add dword [ebp - 0x5c], 0x2519e25
mov dword [ebp - 0x58], 0x29c06f53
sub dword [ebp - 0x58], 0xc65102e7
mov dword [ebp - 0x54], 0x76fa4cfb
add dword [ebp - 0x54], 0x8905b305
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x72f59a0
add eax, 0xffd1e694
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3956f
push 0
call eax
mov ecx, 0x4413
mov edi, eax
mov esi, 0x7021400
add esi, dword [ebp - 0x50]
mov ebx, 0x91497719
add ebx, 0xcc73770d
mov dword [ebp - 0x3c], 0xfbd6bcd6
mov edx, dword [esi]
xor dword [ebp - 0x1c], edi
sub edx, ebx
xor dword [ebp - 0x34], ebx
mov dword [edi], edx
sub dword [ebp - 0x20], 0x8bc617e6
add edi, 0xacf58efb
sub edi, 0xacf58ef7
add esi, 0xcfccb728
add esi, 0x303348dc
loop 0x7003582
add eax, 0x1031f
mov ebx, eax
add eax, 0xbdb5b54d
sub eax, 0xbdb5b548
mov ecx, 0x83b8b252
sub ecx, 0x7cb8b252
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x700dc1f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7012b4c
call fcn.07001ce0
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700de1f
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700e7aa
lea ecx, [ebp - 0x10]
call fcn.0700dbbc
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700dc8c
mov eax, dword [eax + 0x14]
jmp 0x700dc91
mov eax, 0x70148c2
push 0x7016240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700dcbf
mov ecx, edi
call fcn.07007930
lea ecx, [ebp - 0x10]
call fcn.0700345d
mov eax, edi
call fcn.07001e84
ret 4
push str.file_does_not_exist
push ebx
call fcn.0700345d
int3
Function at 0x401bd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
movzx eax, byte [0x56e188]
test eax, eax
jne 0x401c1e
mov byte [0x56e188], 1
mov word [ebp - 0x194], 0x101
lea ecx, [ebp - 0x190]
push ecx
mov dx, word [ebp - 0x194]
push edx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x401c1e
push str.WSAStartup_failed_n
call fcn.0040cc80
add esp, 4
add eax, 9
jmp 0x401c20
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [0x56e990], 0
movsx eax, byte [0x56b1a0]
test eax, eax
je 0x402789
push 0xbe
push 0x56b1a0
push 0x56e990
call fcn.00401d50
add esp, 0xc
mov eax, 0x56e990
jmp 0x40283c
mov ecx, dword [ebp + 8]
xor edx, edx
cmp dword [ecx], 1
sete dl
mov byte [ebp - 0x41], dl
call fcn.00401bd0
mov byte [ebp - 0x38], 0
cmp dword [ebp + 0xc], 0
jbe 0x4027bb
mov eax, dword [ebp + 0xc]
push eax
push 0x4cd908
lea ecx, [ebp - 0x38]
push ecx
call fcn.004be348
add esp, 0xc
mov dword [ebp - 4], 0
push 0x4cd90c
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x402837
push 4
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004bed60
add esp, 0xc
mov eax, dword [ebp - 0x40]
push eax
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x48], eax
push 0xbe
mov ecx, dword [ebp - 0x48]
push ecx
push 0x56e990
call fcn.00401d50
add esp, 0xc
movzx edx, byte [ebp - 0x41]
test edx, edx
je 0x40281d
mov eax, 0x56e990
jmp 0x40283c
lea eax, [ebp - 0x38]
push eax
push 0x56e990
call fcn.004be700
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov eax, 0x56e990
mov esp, ebp
pop ebp
ret