joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401470
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41446e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], ecx
push ecx
push str.POST
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xac]
push dword [eax]
xorps xmm0, xmm0
push dword [ebp + 0x14]
movdqu xmmword [ebp - 0xac], xmm0
call fcn.004013a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa0], 0
mov esi, dword [ebp - 0xa4]
je 0x401606
push 0x20000000
push 0xffffffffffffffff
push str.Connection:_keep_alive_r_nContent_Type:_application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x401606
push 0x84
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00406ff0
add esp, 0xc
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
push 3
push dword [edi]
call fcn.00401c50
mov byte [ebp - 4], 2
mov eax, dword [edi]
push dword [eax - 0xc]
push dword [ebp - 0x9c]
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4015af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x4015e9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [edi]
push dword [eax - 0xc]
push dword [ebp - 0x9c]
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4015e9
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4015e9
cmp dword [ebp - 0x14], 0xc8
jne 0x4015e9
push dword [ebp - 0xb0]
push esi
call fcn.00401850
mov edi, eax
jmp 0x4015eb
xor edi, edi
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
cmp eax, ecx
je 0x401608
push eax
call fcn.004060f3
add esp, 4
jmp 0x401608
xor edi, edi
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x401619
push esi
call eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x401626
push ecx
call eax
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x401637
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40165b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401680
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push 0x41a83c
push ecx
push dword [eax]
movdqu xmmword [ebp - 0x28], xmm0
push dword [ecx]
lea ecx, [ebp - 0x28]
call fcn.004013a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x20]
je 0x401727
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x401727
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x401727
cmp dword [ebp - 0x18], 0xc8
jne 0x401727
push edi
push esi
call fcn.00401850
mov dword [ebp - 0x14], eax
jmp 0x40172e
mov dword [ebp - 0x14], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x40173b
push esi
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401745
push eax
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40174f
push eax
call edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401850
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414523
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x41d008]
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 eax, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
push 0x1000
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
call fcn.004057bb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40199e
mov dword [ebp - 0x1c], ebx
push 0x1000
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.00406ff0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x401992
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x401928
lea eax, [ecx + esi]
cmp eax, 0x1000
jae 0x40191f
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebx + esi]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40191f
add esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4018e2
jmp 0x401992
mov dword [ebp - 0x20], 0
jmp 0x401992
push 3
lea eax, [ebp - 0x124]
mov dword [ebp - 0x20], 1
push ebx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], eax
call fcn.00401d20
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x128]
test edx, edx
jne 0x40195b
xor ecx, ecx
jmp 0x40196f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401960
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00402050
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
cmp ecx, eax
je 0x401992
push ecx
call fcn.004060f3
add esp, 4
push ebx
call fcn.00405965
mov eax, dword [ebp - 0x20]
add esp, 4
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.0040596a
mov esp, ebp
pop ebp
ret 8

Function at 0x4026a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4026f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4026f0
lea ebx, [ebx]
cmp esi, edx
jae 0x4026f4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4026e0
cmp esi, edx
jb 0x4026fb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402ab0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x288
xor ebx, ebx
mov dword [ebp - 0x48], 0x288
call fcn.004057bb
mov esi, eax
add esp, 4
test esi, esi
jne 0x402af2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x402b19
push esi
call fcn.0040641e
push dword [ebp - 0x48]
call fcn.004057bb
mov esi, eax
add esp, 8
test esi, esi
je 0x402ade
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x402bb8
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.00406ff0
mov ax, word [esi + 0x198]
mov ecx, dword [esi + 0x194]
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x4c]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x4c]
push eax
mov eax, ecx
mov dword [ebp - 0x50], ecx
shr eax, 0x18
push eax
mov eax, ecx
shr ecx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x50]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00406423
lea eax, [ebp - 0x44]
add esp, 0x34
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b95
sub eax, edx
mov ecx, 0x41f51c
sar eax, 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402050
mov ebx, 1
push esi
call fcn.0040641e
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop esi
pop ebx
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
Function at 0x402f20
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x41f518]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x16c], 0
cmp dword [ecx - 0xc], 0
jne 0x4030e9
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x168]
mov dword [ebp - 0x168], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40309b
mov eax, dword [ebp - 0x164]
sub eax, 4
je 0x403053
dec eax
je 0x402ff6
dec eax
je 0x402f99
push str.Unknown
jmp 0x403091
mov eax, dword [ebp - 0x160]
sub eax, 0
je 0x402fd7
dec eax
je 0x402fb8
dec eax
jne 0x40309b
push str.win8
jmp 0x403091
cmp byte [ebp - 0x4e], 1
mov ecx, 0x41f518
jne 0x402fcd
push str.win7
jmp 0x403096
push str.WinServer2008R2
jmp 0x403096
cmp byte [ebp - 0x4e], 1
mov ecx, 0x41f518
jne 0x402fec
push str.vista
jmp 0x403096
push str.WinServer2008
jmp 0x403096
mov eax, dword [ebp - 0x160]
sub eax, 0
je 0x40304c
dec eax
je 0x403045
dec eax
jne 0x40309b
cmp byte [ebp - 0x4e], 1
jne 0x40301f
cmp word [ebp - 0x4c], 9
jne 0x40301f
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x403091
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x403032
push str.Microsoft_Windows_Server_2003
jmp 0x403091
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40309b
push str.Microsoft_Windows_Server_2003_R2
jmp 0x403091
push str.winxp
jmp 0x403091
push str.Win2000
jmp 0x403091
mov eax, dword [ebp - 0x160]
test eax, eax
je 0x403075
cmp eax, 0xa
je 0x40306e
cmp eax, 0x5a
jne 0x40309b
push str.Winme
jmp 0x403091
push str.Win98
jmp 0x403091
mov eax, dword [ebp - 0x158]
cmp eax, 2
jne 0x403087
push str.WINT4.0
jmp 0x403091
cmp eax, 1
jne 0x40309b
push str.Win95
mov ecx, 0x41f518
call fcn.00401aa0
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4030be
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x4030c8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x28]
cmp ax, 9
je 0x4030d8
cmp ax, 6
jne 0x4030e9
push 4
push str._x64
mov ecx, 0x41f518
call fcn.004031a0
push 0x41f518
mov ecx, esi
call fcn.00403110
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
Function at 0x403270
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4032ab
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403297
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403305
push 0
push 0x2000000
push 2
push 0
push 0
push 0x40000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403305
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x403321
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
Function at 0x403350
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4145b0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00406ff0
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
xor esi, esi
mov dword [ebp - 0x220], esi
push dword [ebp + 8]
push 0x104
push eax
push esi
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033e0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402050
mov eax, dword [edi]
mov ecx, 1
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], ecx
cmovg esi, ecx
jmp 0x403434
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403457
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x403478
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret

Function at 0x4038b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00406ff0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403900
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x403964
xor eax, eax
lea edx, [ebp - 0x20c]
mov word [ebp + ecx - 0x20c], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403931
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00402050
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040596a
mov esp, ebp
pop ebp
ret
call fcn.004067cf
int3
Function at 0x404200
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
push edi
mov edi, edx
cmp ecx, 1
jne 0x404258
mov eax, dword [0x41f53c]
cmp dword [eax - 4], ecx
jle 0x404226
push dword [eax - 0xc]
mov ecx, 0x41f53c
call fcn.00402360
mov eax, dword [0x41f53c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0xc
push dword [edi]
call esi
push 0
push 0xd
push 0x100
push dword [edi]
call esi
push 0
push 0xd
push 0x101
push dword [edi]
call esi
mov eax, 1
pop edi
pop esi
pop ecx
ret
cmp ecx, 2
jne 0x404264
mov ecx, dword [edi]
call fcn.00404010
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x404df0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x41d008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x41ae24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
mov dword [0x41f508], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x41f558]
test al, 1
jne 0x404e5b
or eax, 1
xorps xmm0, xmm0
mov dword [0x41f558], eax
movdqu xmmword [0x41f548], xmm0
call fcn.004051d0
push 0x414ac0
call fcn.004062f2
add esp, 4
push 0
push 0
push 0x41f548
push 0x405410
push 0
push 0
call fcn.00406935
add esp, 0x18
call fcn.00404a00
test eax, eax
jne 0x404e86
or esi, 0xffffffff
jmp 0x405036
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41f438
push 0x67
push edi
call esi
push 0x64
push 0x41f370
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00405060
push 0
push edi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push 0x41f438
push 0x41f370
push 0
mov dword [0x41f500], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x405034
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x404fc3
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
jmp 0x404f30
mov eax, dword [esp + 0x14]
cmp eax, 0x400
jne 0x404f46
lea ecx, [esp + 0x10]
call fcn.00404d10
jmp 0x404fae
cmp eax, 0x401
jne 0x404f85
mov eax, dword [0x41f558]
test al, 1
jne 0x404f7b
or eax, 1
xorps xmm0, xmm0
mov dword [0x41f558], eax
movdqu xmmword [0x41f548], xmm0
call fcn.004051d0
push 0x414ac0
call fcn.004062f2
add esp, 4
push dword [0x41f550]
call esi
jmp 0x404fae
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x404fae
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x404f30
call fcn.00404900
push dword [0x41f358]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x41f558]
test al, 1
jne 0x405002
or eax, 1
xorps xmm0, xmm0
mov dword [0x41f558], eax
movdqu xmmword [0x41f548], xmm0
call fcn.004051d0
push 0x414ac0
call fcn.004062f2
add esp, 4
push dword [0x41f550]
mov dword [0x41f548], 1
call esi
push 0xa
push dword [0x41f54c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x41f54c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x405036
xor esi, esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410b6b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d008]
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.0040b29f
mov dword [ebp - 0x14], eax
cmp dword [0x41f314], esi
jne 0x410c5e
push 0x800
push esi
push 0x41a6a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410d3e
push esi
push esi
push 0x41a6a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410d3e
push 0x41a6bc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410d3e
push eax
call ebx
push 0x41a6c8
push edi
mov dword [0x41f314], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x41a6d8
push edi
mov dword [0x41f318], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x41a6ec
push edi
mov dword [0x41f31c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f324], eax
test eax, eax
je 0x410c5b
push 0x41a708
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f320], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410c83
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410c76
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410c98
push 4
pop eax
jmp 0x410d40
cmp dword [ebp - 0x14], esi
je 0x410c98
push dword [0x41f314]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410c7d
mov eax, dword [0x41f320]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410cf6
cmp dword [0x41f324], edi
je 0x410cf6
push eax
call ebx
push dword [0x41f324]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410cf6
test eax, eax
je 0x410cf6
call ecx
test eax, eax
je 0x410ceb
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 0x410ceb
test byte [ebp - 8], 1
jne 0x410cf6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410d26
mov eax, dword [0x41f318]
cmp eax, edi
je 0x410d23
push eax
call ebx
test eax, eax
je 0x410d23
call eax
mov esi, eax
test esi, esi
je 0x410d23
mov eax, dword [0x41f31c]
cmp eax, edi
je 0x410d23
push eax
call ebx
test eax, eax
je 0x410d23
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41f314]
call ebx
test eax, eax
je 0x410d3e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410d40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040596a
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5d2838db
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1651e81
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219