joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d98
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
push 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.0040cd07
pop ecx
test eax, eax
pop ecx
jne 0x404e12
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.0040c433
add esp, 0xc
push 1
pop eax
jmp 0x404ebe
xor esi, esi
mov eax, edi
push 0x25
push eax
call fcn.0040cd07
pop ecx
cmp eax, ebx
pop ecx
je 0x404e2a
add eax, 2
inc esi
jmp 0x404e16
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x404e82
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.0040c433
lea eax, [ebp - 0x208]
push 0x25
push eax
call fcn.0040cd07
lea edi, [eax + 2]
push 0x25
push edi
mov word [eax], bx
call fcn.0040cd07
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404e86
xor eax, eax
jmp 0x404ebe
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.0040cc98
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.00404d98
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404ec3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00404d98
add esp, 0xc
test eax, eax
je 0x404fb3
push 0x5c
push dword [ebp + 8]
call fcn.0040cd07
pop ecx
test eax, eax
pop ecx
je 0x404fb7
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0040cd30
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
mov ebx, eax
jne 0x404f37
and word [ebx], 0
lea eax, [ebp - 0x208]
push eax
call fcn.00404d6b
test al, al
pop ecx
jne 0x404fb7
mov word [ebx], 0x5c
lea edi, [ebp - 0x208]
test edi, edi
je 0x404fb7
push 0x5c
push edi
call fcn.0040cd07
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x404fa3
cmp byte [ebp + 0xc], al
jne 0x404fb7
xor edi, edi
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404fb3
test esi, esi
je 0x404f97
mov word [esi], 0x5c
cmp byte [ebp + 0xc], 1
jne 0x404f53
cmp esi, ebx
je 0x404fb7
jmp 0x404f53
cmp word [esi - 2], 0x3a
lea edi, [esi + 2]
je 0x404f53
and word [esi], 0
jmp 0x404f6e
xor eax, eax
jmp 0x404fba
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40501b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x410]
push 0x421b28
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.0040c433
add esp, 0xc
mov al, 1
pop edi
leave
ret

Function at 0x4052ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
mov byte [ebp - 0xf], 0x65
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
je 0x405334
push 0x421b20
push dword [ebp + 8]
call fcn.0040d4f4
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x40533c
or eax, 0xffffffff
jmp 0x4053f2
push 2
push esi
push ebx
call fcn.0040db7b
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.0040db7b
add esp, 0xc
test eax, eax
jne 0x4053e8
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040c470
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.0040dc34
add esp, 0x1c
cmp eax, esi
jne 0x4053e8
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.0040511a
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004050c2
lea eax, [ebp - 0x2dc]
push eax
call fcn.00405208
add esp, 0x1c
test al, al
je 0x4053e8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4053cc
test dword [ebp - 0x2d8], eax
je 0x4053cf
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
push 1
sub eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.0040db7b
add esp, 0xc
jmp 0x40534d
push ebx
call fcn.0040d30d
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4056a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.004052ca
pop ecx
cmp eax, esi
pop ecx
jle 0x405723
cmp dword [ebp + 0xc], eax
jge 0x405723
sub eax, dword [ebp + 0xc]
push 0x421b20
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x65
dec eax
mov byte [ebp - 0x10], 0x25
mov dword [ebp + 0xc], eax
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
call fcn.0040d4f4
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x40572a
xor al, al
jmp 0x4057ef
push 2
push esi
push ebx
call fcn.0040db7b
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.0040db7b
add esp, 0xc
test eax, eax
jne 0x4057e1
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040c470
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.0040dc34
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.0040511a
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004050c2
lea eax, [ebp - 0x2dc]
push eax
call fcn.00405208
add esp, 0x38
test al, al
je 0x4057e1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x4057c8
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.0040db7b
add esp, 0xc
jmp 0x40573b
lea eax, [ebp - 0x2dc]
push esi
push eax
push dword [ebp + 0x10]
call fcn.0040c8c0
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x4057e5
and byte [ebp + 0xf], 0
push ebx
call fcn.0040d30d
mov al, byte [ebp + 0xf]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x407012
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x40709a
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040c8c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40705d
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40707f
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x40716a
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0040716f
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x4070e5
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4070f9
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40701e
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x40716a
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp ecx, edi
jae 0x407139
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x40711e
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0040c470
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x40716a
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x40716a
sub edi, ecx
sub eax, ecx
add edi, 0x102
cmp edi, eax
jbe 0x407153
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.0040c470
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4120e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422500
cmp edx, dword [eax]
je 0x412107
add eax, 8
inc ecx
cmp eax, 0x422590
jl 0x4120f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422500]
jne 0x412235
mov eax, dword [0x426e28]
cmp eax, 1
je 0x41220f
test eax, eax
jne 0x412138
cmp dword [0x421fb8], 1
je 0x41220f
cmp edx, 0xfc
je 0x412235
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41216f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cc00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4121b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cc00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f5e0
push edi
call fcn.004145f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411620
lea eax, [ebp - 0xa0]
push 0x41f5c0
push eax
call fcn.00411620
push dword [esi + 0x422504]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414f31
add esp, 0x2c
pop edi
jmp 0x412235
lea eax, [ebp + 8]
lea esi, [esi + 0x422504]
push 0
push eax
push dword [esi]
call fcn.0040cc00
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 0x402be0
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.00404948
test esi, esi
jne 0x402c16
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.00404a38
jmp 0x402c34
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a94
mov edi, eax
test esi, esi
je 0x402c34
cmp dword [ebx], 0
je 0x402c34
dec esi
jmp 0x402c1d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038e4
Capabilities:
Query or enumerate registry value

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

Function at 0x404728
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c804c], 0
je 0x404789
cmp word [0x4c8220], 0xd7b2
jne 0x404751
cmp dword [0x4c8228], 0
jbe 0x404751
mov eax, 0x4c821c
call dword [fcn.004c8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c4074
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 0x4047b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c4034], 0
jne 0x4047a5
push 0
push 0x4c406c
push 0x4c4074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048fc
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.00402858
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048c4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4062f8
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 0x406528
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40637b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406528
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40637b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406544
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406404
xor eax, eax
push ebp
push 0x4063fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406140
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 0x4063e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406564
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063e2
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 0x406404
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 0x40651e
cmp byte [ebp - 0xd], 0
jne 0x40644b
cmp byte [ebp - 0x12], 0
je 0x40651e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406464
dec ebx
cmp byte [ebx], 0x2e
je 0x406473
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406463
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40651e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064b0
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 0x40651e
cmp byte [ebp - 0xd], 0
je 0x40651e
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 0x40651e
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 0x406c0c
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 0x406c72
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.00404bb8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406c5c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c79
lea eax, [ebp - 0x10]
call fcn.00404948
ret

Function at 0x40ca98
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 0x40cad1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a38
jmp 0x40cada
mov eax, ebx
mov edx, esi
call fcn.0040499c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40db10
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 0x40dbe6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049e0
lea eax, [ebp - 8]
call fcn.00404e58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e08
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dbd0
mov eax, ebx
call fcn.00402858
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dbc9
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.00404e08
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dbb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dbf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dbb3
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 0x40dbd0
mov eax, dword [ebp - 0x10]
call fcn.00402878
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbed
lea eax, [ebp - 8]
call fcn.00404948
ret
Function at 0x40e16c
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 0x40e1d0
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.00404bb8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040952c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1d7
lea eax, [ebp - 0xc]
call fcn.00404948
ret

Function at 0x42494c
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.00424778
dec esi
jne 0x42496e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x425ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c888c
cmp dword [edi], 0
jne 0x425b2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c8888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c4670
mov ecx, 2
call fcn.00402a54
mov edx, 0x425a88
lea eax, [esi + 5]
call fcn.00425aa8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425aa8
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 0x425b01
mov dword [0x4c8888], 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 0x4270e0
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 0x4270e6
ret

Function at 0x42957c
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 0x4295cd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4295b4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4295a4
jmp 0x4295cd
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 0x4295b5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432874
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.00404df8
xor eax, eax
push ebp
push 0x4329a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x432975
xor eax, eax
push ebp
push 0x43296e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c08
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x432943
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 0x432932
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c08
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404e08
mov edx, ebx
pop ecx
call fcn.00402a54
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 0x432939
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4c6908]
mov dl, 1
mov eax, dword [0x40810c]
call fcn.0040d334
call fcn.004042c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4329a9
lea eax, [ebp - 4]
call fcn.00404948
ret