joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419661
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x426820]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4271e8]
je 0x419696
inc eax
cmp eax, 0x13
jb 0x419687
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4271e8]
jne 0x4197bc
mov eax, dword [0x428474]
cmp eax, 1
je 0x419794
cmp eax, edx
jne 0x4196c6
cmp dword [0x426814], 1
je 0x419794
cmp ecx, 0xfc
je 0x4197bc
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4196fc
lea eax, [ebp - 0x80]
push 0x4228d4
push eax
call fcn.004116a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00412890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419730
mov eax, edi
push eax
call fcn.00412890
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4228d0
push edi
call fcn.00412f60
add esp, 0x10
push edi
call fcn.00412890
push dword [esi + 0x4271ec]
mov ebx, eax
call fcn.00412890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411570
mov ebx, esp
push 0x4228b4
push ebx
call fcn.004116a0
push edi
push ebx
call fcn.004116b0
push 0x4228b0
push ebx
call fcn.004116b0
push dword [esi + 0x4271ec]
push ebx
call fcn.004116b0
push 0x12010
push 0x422888
push ebx
call fcn.0041c4dd
add esp, 0x2c
jmp 0x4197bc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4271ec]
push dword [esi]
call fcn.00412890
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041381e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41a397
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x426820]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41a3c8
xor eax, eax
jmp 0x41a551
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x428920]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41a404
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041c7c1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a4df
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41a51d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41a468
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a459
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41a439
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41a4a8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41a4b1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41a42a
jmp 0x41a4b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41a54c
cmp dword [ebp - 0x6c], edi
je 0x41a51d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41a512
call fcn.004160f0
mov dword [eax], 9
call fcn.004160f9
mov dword [eax], esi
jmp 0x41a547
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41a507
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41a4b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41a4b3
push dword [ebp - 0x6c]
call fcn.00416102
pop ecx
jmp 0x41a547
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a535
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41a535
xor eax, eax
jmp 0x41a54f
call fcn.004160f0
mov dword [eax], 0x1c
call fcn.004160f9
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41a54f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041381e
add ebp, 0x3a0
leave
ret
Function at 0x41c4dd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4288c8], ebx
push esi
push edi
jne 0x41c55d
push 0x422d3c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c598
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x422d30
push edi
call esi
test eax, eax
mov dword [0x4288c8], eax
je 0x41c598
push 0x422d20
push edi
call esi
push 0x422d0c
push edi
mov dword [0x4288cc], eax
call esi
cmp dword [0x42840c], 2
mov dword [0x4288d0], eax
jne 0x41c55d
push 0x422cf0
push edi
call esi
test eax, eax
mov dword [0x4288d8], eax
je 0x41c55d
push 0x422cd8
push edi
call esi
mov dword [0x4288d4], eax
mov eax, dword [0x4288d4]
test eax, eax
je 0x41c5a2
call eax
test eax, eax
je 0x41c589
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4288d8]
test eax, eax
je 0x41c589
test byte [ebp - 8], 1
jne 0x41c5a2
cmp dword [0x428418], 4
jb 0x41c59c
or byte [ebp + 0x12], 0x20
jmp 0x41c5c1
xor eax, eax
jmp 0x41c5d1
or byte [ebp + 0x12], 4
jmp 0x41c5c1
mov eax, dword [0x4288cc]
test eax, eax
je 0x41c5c1
call eax
mov ebx, eax
test ebx, ebx
je 0x41c5c1
mov eax, dword [0x4288d0]
test eax, eax
je 0x41c5c1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4288c8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d0be
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00411570
mov eax, dword [0x426820]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041a278
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41d1f1
push 2
push esi
push dword [ebp + 8]
call fcn.0041a278
add esp, 0xc
cmp eax, ebx
je 0x41d1f1
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41d191
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00410ef0
push 0x8000
push dword [ebp + 8]
call fcn.0041d85d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41d147
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041a397
add esp, 0xc
cmp eax, 0xffffffff
je 0x41d167
sub edi, eax
test edi, edi
jg 0x41d13f
jmp 0x41d17f
call fcn.004160f9
cmp dword [eax], 5
jne 0x41d17c
call fcn.004160f0
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041d85d
pop ecx
pop ecx
jmp 0x41d1d9
jge 0x41d1d9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a278
push dword [ebp + 8]
call fcn.0041b036
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41d1d9
call fcn.004160f0
mov dword [eax], 0xd
call fcn.004160f9
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0041a278
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41d1f3
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041381e
leave
ret
Function at 0x41dd7f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41dd98
or eax, 0xffffffff
jmp 0x41ddf9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41ddf5
push 0x3d
push esi
call fcn.0041df7f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41ddf5
cmp esi, eax
je 0x41ddf5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42842c]
sete cl
cmp eax, dword [0x428430]
mov dword [ebp - 8], ecx
jne 0x41dddb
mov edi, eax
call fcn.0041dd1e
mov dword [0x42842c], eax
cmp eax, ebx
jne 0x41de34
cmp dword [ebp + 0xc], ebx
je 0x41ddfd
cmp dword [0x428434], ebx
je 0x41ddfd
call fcn.0041d515
test eax, eax
je 0x41de34
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41de06
xor eax, eax
jmp 0x41ddf8
push 4
call fcn.004122c7
cmp eax, ebx
pop ecx
mov dword [0x42842c], eax
je 0x41ddf5
mov dword [eax], ebx
cmp dword [0x428434], ebx
jne 0x41de34
push 4
call fcn.004122c7
cmp eax, ebx
pop ecx
mov dword [0x428434], eax
je 0x41ddf5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42842c]
call fcn.0041dcd1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41de95
cmp dword [esi], ebx
je 0x41de95
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004110a5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41de78
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41ded6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41de6f
mov eax, edi
shl eax, 2
push eax
push dword [0x42842c]
call fcn.004124d8
cmp eax, ebx
pop ecx
pop ecx
je 0x41ded6
jmp 0x41ded1
cmp dword [ebp - 8], ebx
jne 0x41df41
cmp edi, ebx
jge 0x41dea4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42842c]
call fcn.004124d8
cmp eax, ebx
pop ecx
pop ecx
je 0x41ddf5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42842c], eax
cmp dword [ebp + 0xc], ebx
je 0x41df2b
push dword [ebp - 4]
call fcn.00412890
inc eax
inc eax
push eax
call fcn.004122c7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41df2b
push dword [ebp - 4]
push esi
call fcn.004116a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x41df24
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004110a5
pop ecx
cmp dword [ebp - 8], ebx
je 0x41df39
push dword [ebp - 4]
call fcn.004110a5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41ddf8
push dword [ebp - 4]
call fcn.004110a5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41de02
Function at 0x403034
Capabilities:
Query or enumerate registry value

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

Function at 0x403d98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d404c], 0
je 0x403df9
cmp word [0x4d4220], 0xd7b2
jne 0x403dc1
cmp dword [0x4d4228], 0
jbe 0x403dc1
mov eax, 0x4d421c
call dword [0x4d4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d106c
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 0x403e20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1030], 0
jne 0x403e15
push 0
push 0x4d1064
push 0x4d106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f4c
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.00402764
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4d404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f14
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405724
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405954
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405954
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405970
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405830
xor eax, eax
push ebp
push 0x405829
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040556c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40580e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405990
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40580e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405830
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40594a
cmp byte [ebp - 0xd], 0
jne 0x405877
cmp byte [ebp - 0x12], 0
je 0x40594a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405890
dec ebx
cmp byte [ebx], 0x2e
je 0x40589f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40588f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40594a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058dc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40594a
cmp byte [ebp - 0xd], 0
je 0x40594a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40594a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406038
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 0x40609e
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.00404208
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406088
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060a5
lea eax, [ebp - 0x10]
call fcn.00403f98
ret

Function at 0x40b630
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 0x40b669
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404088
jmp 0x40b672
mov eax, ebx
mov edx, esi
call fcn.00403fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb9c
mov eax, dword [0x4d319c]
cmp byte [eax], 0
je 0x40bda0
mov eax, dword [0x4d2e08]
call fcn.00402a58
call fcn.004028cc
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.00408d88
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 0x40bde8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d2d74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d4668]
call fcn.00405530
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 0x40c690
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 0x40c766
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c750
mov eax, ebx
call fcn.00402764
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c749
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.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c733
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c778
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c733
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 0x40c750
mov eax, dword [ebp - 0x10]
call fcn.00402784
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c76d
lea eax, [ebp - 8]
call fcn.00403f98
ret

Function at 0x40ccec
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 0x40cd50
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.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408838
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd57
lea eax, [ebp - 0xc]
call fcn.00403f98
ret

Function at 0x41f2e4
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.0041f13c
dec esi
jne 0x41f306
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420448
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d488c
cmp dword [edi], 0
jne 0x4204c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4d4888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d13fc
mov ecx, 2
call fcn.00402960
mov edx, 0x420420
lea eax, [esi + 5]
call fcn.00420440
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420440
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 0x420499
mov dword [0x4d4888], 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 0x421b08
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421b0e
ret

Function at 0x424430
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x424481
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424468
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424458
jmp 0x424481
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x424469
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dbb4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x42dce2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42dcb5
xor eax, eax
push ebp
push 0x42dcae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42dc83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42dc72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404458
mov edx, ebx
pop ecx
call fcn.00402960
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc79
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d2c98]
mov dl, 1
mov eax, dword [0x407590]
call fcn.0040beb4
call fcn.00403950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dce9
lea eax, [ebp - 4]
call fcn.00403f98
ret