joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abd76
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a56b7
xor ebx, ebx
cmp dword [0x5b77c4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4abe4b
push 0x5760c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x4abdb6
xor eax, eax
jmp 0x4abf0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x4abdaf
push eax
call fcn.004a5654
mov dword [esp], 0x5760ac
push edi
mov dword [0x5b77c4], eax
call esi
push eax
call fcn.004a5654
mov dword [esp], 0x576098
push edi
mov dword [0x5b77c8], eax
call esi
push eax
call fcn.004a5654
mov dword [0x5b77cc], eax
lea eax, [ebp - 8]
push eax
call fcn.0049da9a
test eax, eax
pop ecx
pop ecx
je 0x4abe19
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049a8bc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4abe4b
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004a5654
cmp eax, ebx
pop ecx
mov dword [0x5b77d4], eax
je 0x4abe4b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a5654
pop ecx
mov dword [0x5b77d0], eax
mov eax, dword [0x5b77d0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4abec4
cmp dword [0x5b77d4], esi
je 0x4abec4
push eax
call fcn.004a56c0
pop ecx
call eax
cmp eax, ebx
je 0x4abe91
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5b77d4]
call fcn.004a56c0
pop ecx
call eax
test eax, eax
je 0x4abe91
test byte [ebp - 0x18], 1
jne 0x4abec4
lea eax, [ebp - 0xc]
push eax
call fcn.0049dad1
test eax, eax
pop ecx
je 0x4abeac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049a8bc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4abebb
or dword [ebp + 0x10], 0x200000
jmp 0x4abef5
or dword [ebp + 0x10], 0x40000
jmp 0x4abef5
mov eax, dword [0x5b77c8]
cmp eax, esi
je 0x4abef5
push eax
call fcn.004a56c0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4abef5
mov eax, dword [0x5b77cc]
cmp eax, esi
je 0x4abef5
push dword [ebp - 4]
push eax
call fcn.004a56c0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5b77c4]
call fcn.004a56c0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b15b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a56b7
xor ebx, ebx
cmp dword [0x5b77e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4b168a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4b15f5
xor eax, eax
jmp 0x4b174e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x576304
push edi
call esi
cmp eax, ebx
je 0x4b15ee
push eax
call fcn.004a5654
mov dword [esp], 0x5760ac
push edi
mov dword [0x5b77e8], eax
call esi
push eax
call fcn.004a5654
mov dword [esp], 0x576098
push edi
mov dword [0x5b77ec], eax
call esi
push eax
call fcn.004a5654
mov dword [0x5b77f0], eax
lea eax, [ebp - 8]
push eax
call fcn.0049da9a
test eax, eax
pop ecx
pop ecx
je 0x4b1658
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049a8bc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4b168a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a5654
cmp eax, ebx
pop ecx
mov dword [0x5b77f8], eax
je 0x4b168a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a5654
pop ecx
mov dword [0x5b77f4], eax
mov eax, dword [0x5b77f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4b1703
cmp dword [0x5b77f8], esi
je 0x4b1703
push eax
call fcn.004a56c0
pop ecx
call eax
cmp eax, ebx
je 0x4b16d0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5b77f8]
call fcn.004a56c0
pop ecx
call eax
test eax, eax
je 0x4b16d0
test byte [ebp - 0x18], 1
jne 0x4b1703
lea eax, [ebp - 0xc]
push eax
call fcn.0049dad1
test eax, eax
pop ecx
je 0x4b16eb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049a8bc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4b16fa
or dword [ebp + 0x10], 0x200000
jmp 0x4b1734
or dword [ebp + 0x10], 0x40000
jmp 0x4b1734
mov eax, dword [0x5b77ec]
cmp eax, esi
je 0x4b1734
push eax
call fcn.004a56c0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b1734
mov eax, dword [0x5b77f0]
cmp eax, esi
je 0x4b1734
push dword [ebp - 4]
push eax
call fcn.004a56c0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5b77e8]
call fcn.004a56c0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bdd06
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5b16b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004bdc9b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004a1c90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4bdd55
cmp dword [ebp - 0x1c], 5
jb 0x4bdd6d
jmp 0x4bdd69
cmp dword [ebp - 0x10], 1
jne 0x4bdd6d
cmp dword [ebp - 0x1c], 4
ja 0x4bdd69
jne 0x4bdd6d
cmp dword [ebp - 0x18], 0
jbe 0x4bdd6d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x57a4dc
call fcn.004bdb6f
test eax, eax
jge 0x4bdd8e
mov byte [0x5b9538], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00499441
add ebp, 0x78
leave
ret

Function at 0x4be0a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x15c]
push edi
push 0x57ad30
push eax
call fcn.0049c48e
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 8], edi
je 0x4be180
mov ecx, dword [esi + 0x18f8]
mov eax, dword [ecx + 0x18]
imul eax, dword [esi + 0xc]
imul eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
cdq
sub eax, edx
sar eax, 1
cdq
push 0
push edx
push eax
push edi
call fcn.00568109
mov edx, dword [esi + 0x18f8]
xor ecx, ecx
add esp, 0x10
cmp dword [edx + 0x2c], ecx
mov dword [esp + 4], ecx
jle 0x4be177
mov eax, dword [esi + 0x10]
push ebx
push ebp
mov ebp, 0x60
xor ebx, ebx
xor edi, edi
test ecx, ecx
setne bl
mov edx, eax
mov ecx, ebx
sar edx, cl
test edx, edx
jle 0x4be158
jmp 0x4be120
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18f8]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [eax + ebp - 0x30]
imul ecx, edi
add ecx, dword [eax + ebp]
push edx
push 1
push ecx
call fcn.0049ccd1
mov eax, dword [esi + 0x10]
mov edx, eax
mov ecx, ebx
sar edx, cl
add edi, 1
add esp, 0x10
cmp edi, edx
jl 0x4be120
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18f8]
add ecx, 1
add ebp, 4
cmp ecx, dword [edx + 0x2c]
mov dword [esp + 0xc], ecx
jl 0x4be108
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
call fcn.0049c78c
add esp, 4
pop edi
add esp, 8
ret
Function at 0x4c4700
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0x594c40
push eax
call fcn.0049c48e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c471b
pop ebx
ret
push esi
push edi
push 2
push 0
push 0
push ebx
call fcn.00568109
xor ecx, ecx
test eax, eax
setl cl
push ebx
mov esi, ecx
call fcn.0056830c
push 0
push 0
push 0
push ebx
mov edi, eax
call fcn.00568109
xor edx, edx
add esp, 0x24
test eax, eax
setl dl
xor eax, eax
test edi, edi
setle al
or edx, eax
or esi, edx
jne 0x4c47bc
push ebp
lea ebp, [edi + 2]
lea ecx, [ebp + 0x17]
push ecx
call fcn.004996e5
lea esi, [eax + 0x17]
push ebx
mov edx, esi
and edx, 0xf
sub esi, edx
push edi
push 1
push esi
mov dword [esi - 4], eax
mov dword [esi - 8], ebp
call fcn.0049c6fe
xor ecx, ecx
add esp, 0x14
cmp eax, edi
setne cl
cmp byte [esi + edi - 1], 0xa
mov ebp, ecx
je 0x4c479e
mov byte [esi + edi], 0xa
add edi, 1
push ebx
mov byte [esi + edi], 0
call fcn.0049c78c
add esp, 4
test ebp, ebp
pop ebp
je 0x4c47c2
mov edx, dword [esi - 4]
push edx
call fcn.004994ab
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4c6310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov dword [esi], eax
mov edx, dword [ecx]
mov dword [esi + 4], edx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x78]
mov dword [esi + 8], eax
xor ecx, ecx
mov edx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x16c]
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x20], eax
cmp dword [edi + 0x1bc], 2
mov eax, 0x1a
je 0x4c6369
mov eax, dword [edi + 0x1c0]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x1a
mov eax, dword [edi + 0x174]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
cmp dword [edi + 0x168], ecx
setne al
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x40], eax
sub eax, ecx
je 0x4c64b4
sub eax, edx
je 0x4c647d
sub eax, edx
jne 0x4c64cb
push ebx
push ebp
lea ebp, [edi + 0x8c]
push 4
push ebp
call fcn.004c4fd0
lea ebx, [edi + 0x9c]
push 4
push ebx
call fcn.004c4fd0
lea eax, [edi + 0xac]
push 4
push eax
mov dword [esp + 0x2c], eax
call fcn.004c4fd0
lea eax, [edi + 0xbc]
push 4
push eax
mov dword [esp + 0x38], eax
call fcn.004c4fd0
lea eax, [edi + 0xcc]
push 8
push eax
mov dword [esp + 0x48], eax
call fcn.004c4fd0
add edi, 0x10c
push 8
push edi
call fcn.004c4fd0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x30
lea eax, [esi + 0x44]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ecx
pop ebp
mov dword [esi + 0x50], edx
mov dword [esi + 0x58], edi
xor ecx, ecx
mov esi, eax
pop ebx
nop
xor edx, edx
xor eax, eax
cmp ecx, 4
setge dl
sub edx, 1
and edx, 0xffffffd0
add edx, 0x40
test edx, edx
jle 0x4c646f
mov edi, dword [esi]
cmp byte [eax + edi], 0
jne 0x4c6468
mov edi, dword [ecx*4 + 0x57c510]
mov dword [esi], edi
add eax, 1
cmp eax, edx
jl 0x4c6457
add ecx, 1
add esi, 4
cmp ecx, 6
jl 0x4c6440
pop edi
pop esi
ret
mov edx, dword [0x57c510]
mov dword [esi + 0x44], edx
mov eax, dword [0x57c514]
mov dword [esi + 0x48], eax
mov ecx, dword [0x57c518]
mov dword [esi + 0x4c], ecx
mov edx, dword [0x57c51c]
mov dword [esi + 0x50], edx
mov eax, dword [0x57c520]
mov dword [esi + 0x54], eax
mov ecx, dword [0x57c524]
pop edi
mov dword [esi + 0x58], ecx
pop esi
ret
mov eax, 0x57c4d0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
pop edi
pop esi
ret
Function at 0x4cf680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
and ecx, 0xff
cmp ecx, 1
mov dword [esp + 8], ecx
je 0x4cf6bb
cmp ecx, 4
je 0x4cf6bb
mov eax, dword [esp + 0x10]
push str.Arg_invalid_CSP_n
push 0
push eax
call fcn.004c44b0
add esp, 0xc
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov edx, dword [edi + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0xc]
push esi
mov dword [eax + 0x14], edx
xor esi, esi
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x4cf6f4
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jne 0x4cf704
test esi, esi
je 0x4cf704
mov eax, esi
xor eax, 3
jmp 0x4cf706
mov eax, esi
mov ecx, dword [edi + eax*4 + 0x28]
mov ebx, dword [edi + eax*4 + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
test esi, esi
setne cl
sar edx, cl
sar eax, cl
test dword [edi + 0x10], 0x1000
je 0x4cf73c
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 1]
imul ecx, ebx
add dword [esp + 0x24], ecx
neg ebx
push eax
push edx
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0x30]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 0x4d20]
push eax
push ecx
call edx
add esi, 1
add ebx, 4
add esp, 0x18
cmp esi, 3
mov dword [esp + 0x10], ebx
jl 0x4cf6f0
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
Function at 0x50bd60
Capabilities:
Encode data using xor

Disassembly:
push esi
add eax, 0xffffffff
xor esi, esi
test eax, eax
jle 0x50bd9f
push ebx
push edi
add ecx, 2
mov edi, eax
movsx edx, word [ecx + 2]
movsx eax, word [ecx - 2]
sub eax, edx
cdq
mov ebx, eax
movsx eax, word [ecx]
xor ebx, edx
sub ebx, edx
movsx edx, word [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, esi
add ecx, 4
sub edi, 1
lea esi, [eax + ebx]
jne 0x50bd71
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402eb8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045f4
test esi, esi
jne 0x402eef
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.004046e4
jmp 0x402f10
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d54
mov dword [esp], eax
test esi, esi
je 0x402f10
cmp dword [ebx], 0
je 0x402f10
dec esi
jmp 0x402ef7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ac008], 0x8088405
inc edx
mov dword [ebx + 0x4ac008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036b8
Capabilities:
Query or enumerate registry value

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

Function at 0x404470
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b004c], 0
je 0x4044d1
cmp word [0x4b0220], 0xd7b2
jne 0x404499
cmp dword [0x4b0228], 0
jbe 0x404499
mov eax, 0x4b021c
call dword [0x4b0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac070
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 0x4044f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac034], 0
jne 0x4044ed
push 0
push 0x4ac068
push 0x4ac070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4067ec
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 0x406852
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.00404864
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040327c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40683c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406859
lea eax, [ebp - 0x10]
call fcn.004045f4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ab4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4094d9
test al, 0x10
jne 0x4094dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c894
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 0x40c8cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046e4
jmp 0x40c8d6
mov eax, ebx
mov edx, esi
call fcn.00404648
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c8e0
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 0x40c901
mov al, byte [esp]
jmp 0x40c903
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cf98
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce00
mov eax, dword [0x4aefe8]
cmp byte [eax], 0
je 0x40d014
mov eax, dword [0x4aecb4]
call fcn.00403024
call fcn.00402c80
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004097e0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d05c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d04a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4aec50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0668]
call fcn.00405c58
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d924
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 0x40d9fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040468c
lea eax, [ebp - 8]
call fcn.00404b04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ab4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d9e4
mov eax, ebx
call fcn.00402af4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d9dd
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.00404ab4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d9c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d9c7
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 0x40d9e4
mov eax, dword [ebp - 0x10]
call fcn.00402b24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da01
lea eax, [ebp - 8]
call fcn.004045f4
ret

Function at 0x40e058
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 0x40e0bc
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.00404864
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409198
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0c3
lea eax, [ebp - 0xc]
call fcn.004045f4
ret

Function at 0x40e8b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x4aecec]
cmp dword [eax], 0
je 0x40e8ea
push 0xa
push 0x40e940
mov eax, dword [0x4aecec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4aecec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40e936
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x4af064]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40e936
mov ebx, dword [esp + 4]
push 0xa
push 0x40e940
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40e936
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40e901
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret