joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f78
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4330f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406d88
test al, al
je 0x4330c4
mov eax, ebx
call fcn.00417a14
mov edi, eax
mov eax, ebx
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x432fc9
and esi, 0xfffffffe
mov eax, ebx
call fcn.00406d20
call fcn.0040718c
fstp qword [ebp - 8]
wait
lea eax, [ebp - 0xc]
call fcn.004035b4
mov byte [0x448690], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.00432508
pop ecx
dec eax
jne 0x4330df
cmp dword [0x449714], 0
je 0x433027
mov eax, dword [0x449714]
test byte [eax + 0x29], 4
je 0x433027
mov byte [0x448690], 1
cmp byte [0x448690], 0
je 0x433047
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, 0x449724
mov ecx, pe_nt_image_headers32
call fcn.004277cc
mov eax, 0x432f08
push eax
push 0
mov ecx, 0x432e8c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004184f0
mov byte [ebp - 0xd], al
cmp byte [0x448690], 0
je 0x433074
mov eax, 0x449724
call fcn.004278cc
cmp byte [ebp - 0xd], 0
je 0x4330a9
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x433092
push esi
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.00432c3c
jmp 0x4330df
mov eax, dword [0x448ad0]
cmp byte [eax], 0
jne 0x4330df
mov byte [0x44971e], 1
mov eax, dword [0x448ad0]
mov byte [eax], 1
jmp 0x4330df
mov eax, 0x44970c
mov edx, ebx
call fcn.00403608
mov byte [0x44971e], 1
mov eax, dword [0x448ad0]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4330fc
lea eax, [ebp - 0xc]
call fcn.004035b4
ret
Function at 0x433568
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x433720
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4336fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x54]
dec eax
test eax, eax
jl 0x4336f2
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x54]
mov edi, eax
dec edi
test edi, edi
jl 0x4336e8
inc edi
xor esi, esi
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.00422404
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0xc]
call fcn.004070d0
cmp dword [ebp - 0xc], 0
jne 0x43365f
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.00422404
mov edx, dword [eax + 0x30]
lea ecx, [ebp - 0xc]
mov eax, dword [0x448bd8]
mov eax, dword [eax]
call fcn.004248a8
mov edx, dword [ebp - 0xc]
mov eax, dword [0x448bc0]
mov eax, dword [eax]
mov cl, 1
call fcn.0042b94c
jmp 0x4336e0
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.00422404
mov eax, dword [eax + 0x2c]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0x10
jne 0x4336e0
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.00422384
mov eax, dword [eax + 0x3c]
mov edx, esi
call fcn.00422404
mov edx, dword [eax + 0x30]
lea ecx, [ebp - 0xc]
mov eax, dword [0x448bd8]
mov eax, dword [eax]
call fcn.004248a8
mov edx, dword [ebp - 0xc]
mov eax, dword [0x448bc0]
mov eax, dword [eax]
mov cl, 1
call fcn.0042b94c
inc esi
dec edi
jne 0x4335db
inc ebx
dec dword [ebp - 8]
jne 0x4335b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43370a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433727
lea eax, [ebp - 0xc]
call fcn.004035b4
ret
Function at 0x437fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
test dl, dl
je 0x437fe4
add esp, 0xfffffff0
call fcn.00402d58
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4380c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00402c4c
mov eax, dword [0x449760]
call fcn.0040d348
mov edx, eax
dec edx
mov eax, dword [0x449760]
call fcn.0040d350
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00422d60
mov edx, dword [eax + 0x30]
lea eax, [edi + 8]
call fcn.00403608
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
mov edx, 1
call fcn.00422d60
mov edx, dword [eax + 0x30]
lea eax, [edi + 0xc]
call fcn.00403608
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00422d60
add eax, 0x30
push eax
lea edx, [ebp - 4]
mov eax, esi
call fcn.00406b54
mov edx, dword [ebp - 4]
pop eax
call fcn.00403608
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
mov edx, 1
call fcn.00422d60
add eax, 0x30
push eax
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00406b54
mov edx, dword [ebp - 4]
pop eax
call fcn.00403608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4380ca
lea eax, [ebp - 4]
call fcn.004035b4
ret
Function at 0x4436bc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443a57
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004070d0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00407008
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0043af30
test al, al
jne 0x443764
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x50]
mov eax, 0x16
call fcn.0043a164
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
lea edx, [ebp - 0x5c]
xor ecx, ecx
pop eax
call fcn.004078c0
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, dword [0x448bd8]
mov eax, dword [eax]
call fcn.004248a8
mov edx, dword [ebp - 0x50]
mov eax, 0x443a70
call fcn.0043b2c0
jmp 0x443a2f
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.00417968
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x28
mov ecx, dword [ebp - 0x14]
call fcn.0040387c
lea ecx, [ebp - 0x50]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00406f74
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00403608
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, 0x20
call fcn.00406c50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x44396d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
cmp edi, 0x10000
jle 0x4437da
mov edi, 0x10000
mov eax, edi
call fcn.004025b0
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x443890
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov edx, edi
neg edx
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.00406d0c
mov edx, dword [ebp - 0x20]
mov ecx, edi
mov eax, dword [ebp - 0x10]
call fcn.00406cb4
mov esi, edi
sub esi, 6
cmp esi, 0
jl 0x44387a
mov eax, 0x443a88
mov al, byte [eax]
call fcn.00402884
mov edx, dword [ebp - 0x20]
cmp al, byte [edx + esi]
jne 0x443874
mov byte [ebp - 0x21], 1
mov ebx, 1
mov eax, 0x443a88
mov al, byte [eax + ebx]
call fcn.00402884
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x20]
cmp al, byte [ecx + edx]
je 0x44385e
mov byte [ebp - 0x21], 0
jmp 0x443864
inc ebx
cmp ebx, 6
jne 0x443840
cmp byte [ebp - 0x21], 0
je 0x443874
sub edi, esi
sub edi, 6
mov dword [ebp - 0x28], edi
jmp 0x44387a
dec esi
cmp esi, 0xffffffff
jne 0x443823
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443897
mov eax, dword [ebp - 0x20]
call fcn.004025c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443a5e
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004035d8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004035d8
ret
Function at 0x444260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039e4
mov eax, dword [ebp - 8]
call fcn.004039e4
xor eax, eax
push ebp
push 0x44432c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004070d0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407008
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0043af30
test al, al
je 0x4442ec
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040387c
mov eax, dword [ebp - 0x14]
call fcn.004039f4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0x3e8
call sub.KERNEL32.DLL_Sleep
jmp 0x444311
push 0x444340
push dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004038f0
mov edx, dword [ebp - 0x14]
mov eax, 0x444368
call fcn.0043b2c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444333
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004035d8
ret
Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x5fc038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x5fc03c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x5fc050]
fstp qword [0x5fc050]
je 0x417c63
mov eax, dword [0x5ff800]
test eax, eax
je 0x417c57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x5fc042]
mov cl, byte [0x5fc049]
xor cl, dl
mov edx, dword [0x5fc030]
mov byte [0x5fc049], cl
mov ecx, dword [0x5fc034]
and ecx, 4
and eax, 0xc
add edx, ecx
mov esi, dword [0x5fc038]
mov dword [0x5fc030], edx
mov edx, dword [0x5fc048]
and edx, 0xff
push ebp
imul eax, edx
xor esi, eax
push edi
lea eax, [esp + 0x14]
push 0x50
push eax
mov dword [0x5fc038], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x5fc04e]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x5fc040]
push edx
and cl, al
mov byte [0x5fc040], cl
mov cl, byte [0x5fc047]
or cl, 2
shr cl, 1
and ecx, 0xff
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
fdivr qword [0x5fc050]
fadd qword [0x5f9430]
fstp qword [0x5ff9d0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x5ff800], eax
test eax, eax
pop ebp
je 0x417d88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov dword [0x5ff7fc], eax
mov eax, dword [0x5ff800]
push str.DirectSoundEnumerateA
push eax
call esi
mov ecx, dword [0x5ff7fc]
mov dword [0x5ff804], eax
test ecx, ecx
je 0x417d7e
test eax, eax
je 0x417d7e
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dword [0x5ff800], 0
xor eax, eax
pop esi
add esp, 0x58
ret 4
Function at 0x5f43fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fc3d0
cmp edx, dword [eax]
je 0x5f441f
add eax, 8
inc ecx
cmp eax, 0x5fc460
jl 0x5f4410
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fc3d0]
jne 0x5f454d
mov eax, dword [0x603d70]
cmp eax, 1
je 0x5f4527
test eax, eax
jne 0x5f4450
cmp dword [0x5fc2f8], 1
je 0x5f4527
cmp edx, 0xfc
je 0x5f454d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f4487
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f4de0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f5270
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f44ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f5270
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5f97b4
push edi
call fcn.005f7140
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f4de0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f4df0
lea eax, [ebp - 0xa0]
push 0x5f9794
push eax
call fcn.005f4df0
push dword [esi + 0x5fc3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f4df0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f70b4
add esp, 0x2c
pop edi
jmp 0x5f454d
lea eax, [ebp + 8]
lea esi, [esi + 0x5fc3d4]
push 0
push eax
push dword [esi]
call fcn.005f5270
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402f80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c80
test esi, esi
jne 0x402fb7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d70
jmp 0x402fd8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e1c
mov dword [esp], eax
test esi, esi
je 0x402fd8
cmp dword [ebx], 0
je 0x402fd8
dec esi
jmp 0x402fbf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5be020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403cf8
xor eax, eax
push ebp
push 0x403cf1
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 0x403d34
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 0x403cf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5be020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5be020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5c704c], 0
je 0x404ad9
cmp word [0x5c7220], 0xd7b2
jne 0x404aa1
cmp dword [0x5c7228], 0
jbe 0x404aa1
mov eax, 0x5c721c
call dword [0x5c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5be070
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 0x404b00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5be030], 0
jne 0x404af5
push 0
push 0x5be068
push 0x5be070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c34
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.00402bbc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5c704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bfc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407258
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 0x4072be
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.00404f00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403618
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4072a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072c5
lea eax, [ebp - 0x10]
call fcn.00404c80
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405150
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40aae9
test al, 0x10
jne 0x40aaed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e4c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e4fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d70
jmp 0x40e506
mov eax, ebx
mov edx, esi
call fcn.00404cd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e510
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e531
mov al, byte [esp]
jmp 0x40e533
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f6ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f782
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d18
lea eax, [ebp - 8]
call fcn.004051a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405150
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f76c
mov eax, ebx
call fcn.00402bbc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f765
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405150
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f74f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f794
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f74f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f76c
mov eax, dword [ebp - 0x10]
call fcn.00402bec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f789
lea eax, [ebp - 8]
call fcn.00404c80
ret
Function at 0x40fde0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40fe44
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f00
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a59c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe4b
lea eax, [ebp - 0xc]
call fcn.00404c80
ret

Function at 0x426a10
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004267f8
dec esi
jne 0x426a32
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x428194
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5c788c
cmp dword [edi], 0
jne 0x428210
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5c7888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5be548
mov ecx, 2
call fcn.00402ddc
mov edx, 0x42816c
lea eax, [esi + 5]
call fcn.0042818c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042818c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4281e5
mov dword [0x5c7888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42cb04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x18], 0
je 0x42cb18
mov eax, esi
call fcn.0042cbb4
mov eax, dword [esi + 4]
mov dword [esi + 0x18], eax
test bl, bl
je 0x42cb3a
mov eax, dword [esi + 4]
cmp word [eax], 0x25ff
jne 0x42cb3a
add dword [esi + 0x18], 2
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x18]
sub eax, 5
mov byte [esi + 0xc], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 0xd], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xe], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xf], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x18]
mov al, byte [eax]
mov byte [esi + 0x11], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 1]
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 2]
mov byte [esi + 0x13], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 3]
mov byte [esi + 0x14], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 4]
mov byte [esi + 0x15], al
push esp
push 0x40
push 5
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x42cbb0
call fcn.0041085c
pop edx
pop esi
pop ebx
ret