joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60bdc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe8
mov dword [ebp - 0xf4], edx
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x50]
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.00594ca0
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.006128d0
test al, al
je 0x60bebe
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x60be84
mov ecx, edi
call fcn.00594ca0
mov ecx, dword [ebp - 0x14]
mov edi, ecx
sar edi, 0x1f
add eax, ecx
adc edi, edx
mov ecx, esi
mov ebx, dword [ebp - 0xf4]
push ebx
push 0
push 0x108
push edi
mov dword [ebp - 0xf0], eax
push eax
call fcn.006128d0
test al, al
je 0x60bf33
cmp dword [ebx], 0x4550
jne 0x60bf69
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x60bf1c
mov ecx, dword [ebp - 0xf0]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x60bf1c
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60bf1a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x15a
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x60bef2
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60bf1a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x154
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x1f
push str.could_not_read_dos_header_from
push eax
call fcn.0052f110
add esp, 0xc
movsx ecx, byte [esi + 0xb]
test ecx, ecx
jns 0x60bf08
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, edi
call fcn.00407fc0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60bf1a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x162
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x60bef2
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60bf1a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x168
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x23
push str.invalid_signature_in_nt_headers_of
jmp 0x60bef2
Function at 0x60bfb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe8
mov dword [ebp - 0xf4], edx
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x50]
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.00594ca0
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.006128d0
test al, al
je 0x60c0ae
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x60c074
mov ecx, edi
call fcn.00594ca0
mov ecx, dword [ebp - 0x14]
mov edi, ecx
sar edi, 0x1f
add eax, ecx
adc edi, edx
mov ecx, esi
mov ebx, dword [ebp - 0xf4]
push ebx
push 0
push 0xf8
push edi
mov dword [ebp - 0xf0], eax
push eax
call fcn.006128d0
test al, al
je 0x60c123
cmp dword [ebx], 0x4550
jne 0x60c159
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x60c10c
mov ecx, dword [ebp - 0xf0]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x60c10c
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60c10a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x15a
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x60c0e2
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60c10a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x154
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x1f
push str.could_not_read_dos_header_from
push eax
call fcn.0052f110
add esp, 0xc
movsx ecx, byte [esi + 0xb]
test ecx, ecx
jns 0x60c0f8
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, edi
call fcn.00407fc0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60c10a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x162
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x60c0e2
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x60c10a
lea edi, [ebp - 0xec]
mov ecx, edi
push 1
push 0x168
push str.pe_image_reader.cc
call fcn.004096e0
lea eax, [ebp - 0xe4]
push 0x23
push str.invalid_signature_in_nt_headers_of
jmp 0x60c0e2
Function at 0x612110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ecx], ebx
mov eax, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea esi, [ebp - 0x14]
mov dword [esi], ebx
mov ecx, esi
push eax
call fcn.0054e150
mov esi, dword [esi]
lea eax, [esi + 1]
cmp eax, 1
ja 0x612198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 2
jb 0x612184
call fcn.004ffee0
push dword [ebp - 0x14]
call fcn.00550af0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push dword [ebp + 0x1c]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea esi, [ecx + ecx*4]
jmp 0x61216b
Function at 0x108bb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108bb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108bb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bb06a
add dl, dl
jne 0x108bb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bb0dc
xor eax, eax
add dl, dl
jne 0x108bb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108bb17d
add dl, dl
jne 0x108bb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108bb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108bb075
mov eax, 1
add dl, dl
jne 0x108bb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108bb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bb0e1
sub eax, ebx
mov ebx, 1
jne 0x108bb128
mov ecx, 1
add dl, dl
jne 0x108bb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108bb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108bb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108bb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108bb136
cmp eax, 0x7d00
jae 0x108bb16d
cmp eax, 0x500
jb 0x108bb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bb075
cmp eax, 0x7f
ja 0x108bb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108bb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108bb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108bb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x568c5b18
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x15476cf9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40e0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x41e91227
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x17cd5ac1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402794
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403500
test esi, esi
jne 0x4027ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004035f0
jmp 0x4027e8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402648
mov edi, eax
test esi, esi
je 0x4027e8
cmp dword [ebx], 0
je 0x4027e8
dec esi
jmp 0x4027d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402a24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402abc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a9c
xor eax, eax
push ebp
push 0x402a95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ad8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40d010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403300
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e038], 0
je 0x403361
cmp word [0x40e20c], 0xd7b2
jne 0x403329
cmp dword [0x40e214], 0
jbe 0x403329
mov eax, 0x40e208
call dword [0x40e224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40d058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403388
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d01c], 0
jne 0x40337d
push 0
push 0x40d050
push 0x40d058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4034b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024c0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40e039], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40347c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x403e20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403e86
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040366c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402918
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403e70
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e8d
lea eax, [ebp - 0x10]
call fcn.00403500
ret

Function at 0x405100
Capabilities:
Get file size

Disassembly:
push ebx
push esi
add esp, 0xffffffcc
mov esi, edx
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x405165
mov dword [esp], 0xffffffff
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xffffffff
je 0x40513d
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_GetFileTime
test eax, eax
jne 0x405141
xor eax, eax
jmp 0x405143
mov al, 1
test al, al
je 0x405165
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp]
mov dword [esi], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.00404790
mov dword [esi + 8], eax
mov al, 1
add esp, 0x34
pop esi
pop ebx
ret

Function at 0x405320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf8
mov ebx, ecx
mov edi, edx
mov esi, eax
mov byte [esp + 8], 0xfa
mov dword [esp], 0xfa
mov dword [esp + 4], 1
push esp
lea eax, [esp + 0xd]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, edi
call fcn.00403884
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40536b
mov eax, ebx
call fcn.00403500
jmp 0x40539a
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0xd]
call fcn.0040509c
mov ecx, eax
mov edx, 1
lea eax, [esp + 0xc]
call fcn.004025c4
lea edx, [esp + 0x108]
mov eax, ebx
call fcn.00403660
add esp, 0x208
pop edi
pop esi
pop ebx
ret

Function at 0x4058d8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov esi, edx
mov edi, eax
push 0x80
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00403884
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
mov eax, ebx
dec eax
sub eax, 0x80
jb 0x405914
sub eax, 0x7fffff7f
jb 0x405931
jmp 0x405955
mov eax, esi
mov edx, ebx
call fcn.00403a10
mov eax, esi
call fcn.004038dc
mov edx, eax
mov eax, esp
mov ecx, ebx
call fcn.00402608
jmp 0x40595c
lea edx, [ebx + 1]
mov eax, esi
call fcn.00403a10
push ebx
mov eax, esi
call fcn.004038dc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
mov edx, ebx
call fcn.00403a10
jmp 0x40595c
mov eax, esi
call fcn.00403500
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405a60
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret
Function at 0x405a70
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x405a85
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4064d8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406626
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e684]
call fcn.0040545c
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [0x40e684]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov ebx, eax
test bl, bl
je 0x406534
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40e684]
call fcn.0040556c
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.004067b4
mov eax, dword [0x40e684]
call fcn.0040548c
test bl, bl
jne 0x40660b
push 2
push 4
lea eax, [ebp - 4]
push eax
call sub.wsock32.dll_gethostbyaddr
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x40658a
lea eax, [ebp - 0x10]
mov edx, dword [esi]
call fcn.00403630
mov eax, dword [ebp - 0x10]
call fcn.00403884
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40658a
cmp dword [eax + 0xc], 0
je 0x40658a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
sete bl
test bl, bl
je 0x40659b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403554
jmp 0x4065a6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004062d4
mov eax, dword [0x40e684]
call fcn.0040545c
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [0x40e684]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov ebx, eax
test bl, bl
jne 0x406601
mov dl, 1
mov eax, dword [0x4063e0]
call fcn.00402b2c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004067b4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 8]
call fcn.00403554
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x40e684]
call fcn.004055f0
mov eax, dword [0x40e684]
call fcn.0040548c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40662d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403524
ret
Function at 0x407fac
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4080dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00403500
lea edx, [ebx + 4]
lea eax, [ebp - 4]
mov ecx, 0x4080f4
call fcn.00407dd8
lea edx, [ebx + 8]
lea eax, [ebp - 4]
mov ecx, 0x408104
call fcn.00407dd8
lea edx, [ebx + 0xc]
lea eax, [ebp - 4]
mov ecx, 0x40811c
call fcn.00407dd8
lea edx, [ebx + 0x10]
lea eax, [ebp - 4]
mov ecx, 0x408138
call fcn.00407dd8
lea edx, [ebx + 0x14]
lea eax, [ebp - 4]
mov ecx, 0x408154
call fcn.00407dd8
lea edx, [ebx + 0x18]
lea eax, [ebp - 4]
mov ecx, 0x40816c
call fcn.00407dd8
lea edx, [ebx + 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x408188
call fcn.00407dd8
lea edx, [ebx + 0x20]
lea eax, [ebp - 4]
mov ecx, 0x40819c
call fcn.00407dd8
lea edx, [ebx + 0x24]
lea eax, [ebp - 4]
mov ecx, 0x4081b4
call fcn.00407dd8
lea edx, [ebx + 0x28]
lea eax, [ebp - 4]
mov ecx, 0x4081cc
call fcn.00407dd8
lea edx, [ebx + 0x2c]
lea eax, [ebp - 4]
mov ecx, 0x4081dc
call fcn.00407dd8
lea edx, [ebx + 0x30]
lea eax, [ebp - 4]
mov ecx, 0x4081ec
call fcn.00407dd8
lea edx, [ebx + 0x34]
lea eax, [ebp - 4]
mov ecx, 0x408204
call fcn.00407dd8
lea edx, [ebx + 0x38]
lea eax, [ebp - 4]
mov ecx, 0x40821c
call fcn.00407dd8
lea edx, [ebx + 0x44]
lea eax, [ebp - 4]
mov ecx, 0x408238
call fcn.00407dd8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403554
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080e4
lea eax, [ebp - 4]
call fcn.00403500
ret
Function at 0x40a388
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0xfffffff4
xor eax, eax
push ebp
push 0x40a4aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push dword [0x40e690]
push 0x40a4c4
push 0x40a4d0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403744
mov eax, dword [ebp - 0xc]
call fcn.00403884
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a48f
test al, 0x10
je 0x40a48f
test al, 2
jne 0x40a48f
test al, 4
jne 0x40a48f
push esi
mov eax, dword [0x40e690]
call fcn.00403684
mov ecx, eax
inc ecx
add ecx, 7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
mov edx, 1
call fcn.004038e4
mov eax, dword [esi]
call fcn.00403684
mov edx, eax
add edx, 2
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
call fcn.00405040
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
call fcn.00403598
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.00403598
lea edx, [ebp - 4]
lea eax, [ebp - 8]
mov cl, 0x5c
call fcn.00404d60
push dword [esi]
push 0x40a4c4
push dword [ebp - 4]
mov eax, esi
mov edx, 3
call fcn.00403744
mov eax, dword [esi]
call fcn.00403884
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a48f
test al, 0x10
jne 0x40a44c
test al, 2
jne 0x40a44c
test al, 4
jne 0x40a44c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a4b1
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403524
ret