joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044a010
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a090
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a090
lea ecx, [esi + 0xc]
call fcn.0045e6c6
lea ecx, [esi + 0x10]
call fcn.0045e6c6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044c8c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044c8c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044c8c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045e73b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045e73b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44b108
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46cd08
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44b118
call fcn.0044b630
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44b1fb
cmp byte [edi], 0
je 0x44b1fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44b13d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00449e30
test eax, eax
jne 0x44b15d
push 0x4a8460
lea ecx, [esi + 0x38]
call fcn.0045e878
jmp 0x44b1fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00449e80
test eax, eax
jne 0x44b18c
mov ecx, esi
call fcn.00449f80
push edi
add esi, 0x38
push 0x4a843c
push esi
call fcn.0045c6d7
add esp, 0xc
jmp 0x44b1fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044beb0
test eax, eax
je 0x44b1f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044b2d0
test eax, eax
jne 0x44b210
push edi
lea eax, [esi + 0x38]
push 0x4a8418
push eax
call fcn.0045c6d7
add esp, 0xc
mov ecx, esi
call fcn.0044b630
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44b2b8
mov ecx, dword [0x4a86d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045c6d7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449f30
test eax, eax
jne 0x44b27a
push 0x4a83fc
lea ecx, [esi + 0x38]
call fcn.0045e878
jmp 0x44b28a
push 0xfa
mov ecx, esi
call fcn.0044beb0
test eax, eax
jne 0x44b2a7
mov ecx, esi
call fcn.0044b630
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045e73b
jmp 0x44b1fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045e73b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x460adf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460b17
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045eb96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045eb6e
jmp 0x460b23
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4621cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46220f
call fcn.00467d4e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46220f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462206
xor eax, eax
jmp 0x462217
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046221d
pop edi
pop esi
pop ebx
ret 4

Function at 0x46827e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4682ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4682ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004681e4
jmp 0x4682ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4682ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004681e4
test edi, edi
mov eax, edi
jne 0x4682b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4044e0
Capabilities:
Set thread local storage value

Disassembly:
push 0x254
call fcn.00402cc0
test eax, eax
pop ecx
jne 0x4044f2
xor eax, eax
ret
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0x40c6c4
mov dword [eax + 0xc], 0x40c6c4
mov ecx, dword [esp + 4]
push eax
mov dword [eax + 0x10], ecx
mov eax, dword [0x40c6c0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x405c30
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
xor ebx, ebx
call fcn.00405c20
mov ebp, dword [eax]
inc dword [eax]
test ebp, ebp
je 0x405c50
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
call fcn.00404610
push 8
call fcn.00402cc0
test eax, eax
pop ecx
mov dword [0x41c780], eax
je 0x405c89
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x41c780]
mov dword [edx], eax
mov esi, dword [0x41c780]
mov byte [esi + 4], 1
mov eax, dword [0x41c780]
mov byte [eax + 5], 0
push 8
call fcn.00402cc0
test eax, eax
pop ecx
mov dword [0x41c784], eax
je 0x405cbd
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [0x41c784]
mov dword [edi], eax
mov ebp, dword [0x41c784]
mov byte [ebp + 4], 1
mov eax, dword [0x41c784]
mov byte [eax + 5], 0
push 8
call fcn.00402cc0
test eax, eax
pop ecx
mov dword [0x41c788], eax
je 0x405cf1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [0x41c788]
mov dword [ecx], eax
mov edx, dword [0x41c788]
mov byte [edx + 4], 1
mov eax, dword [0x41c788]
mov byte [eax + 5], 0
mov dword [0x41cdbc], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
jmp 0x405d25
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add esi, eax
cmp byte [esi], 0x3d
je 0x405d10
mov ebp, esi
jmp 0x405d45
mov ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add ebp, eax
cmp byte [ebp], 0
jne 0x405d30
sub ebp, esi
push ebp
call fcn.00402cc0
test eax, eax
pop ecx
mov dword [0x41c3c0], eax
je 0x405d68
push ebp
push esi
push eax
call fcn.004046b0
add esp, 0xc
mov dword [0x40cf40], 0x41c3c0
mov eax, dword [0x40cf40]
mov edx, dword [eax]
jmp 0x405d96
mov ecx, 0xffffffff
mov edi, edx
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add edx, eax
cmp byte [edx], 0
jne 0x405d80
inc ebx
shl ebx, 2
push ebx
call fcn.00402cc0
mov dword [0x41cdc0], eax
mov eax, dword [0x40cf40]
xor edx, edx
pop ecx
mov esi, dword [eax]
jmp 0x405dd4
mov eax, dword [0x41cdc0]
mov edi, esi
mov dword [eax + edx*4], esi
xor eax, eax
mov ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add esi, eax
cmp byte [esi], 0
jne 0x405db6
mov eax, dword [0x41cdc0]
mov dword [eax + edx*4], 0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405fa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov dword [ebp - 0x10], 1
push 4
mov dword [0x41cdcc], 0
call fcn.00402cc0
test eax, eax
pop ecx
mov dword [0x41cdc8], eax
jne 0x405fd8
call fcn.00405f80
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
push eax
call fcn.00402cc0
mov edi, eax
pop ecx
test edi, edi
mov dword [0x40cf60], eax
jne 0x406013
call fcn.00405f80
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
movsx eax, byte [esi]
push eax
push str.__t_r_n_v
call fcn.00402380
test eax, eax
pop ecx
pop ecx
jne 0x406012
jmp 0x4060e0
mov eax, dword [0x41cdcc]
inc eax
cmp eax, dword [ebp - 0x10]
jl 0x406060
add dword [ebp - 0x10], 0x10
mov eax, dword [0x41cdc8]
mov edx, dword [ebp - 0x10]
shl edx, 2
push edx
push eax
call fcn.00402d70
test eax, eax
pop ecx
pop ecx
je 0x4060e9
mov dword [0x41cdc8], eax
mov eax, dword [0x41cdc8]
mov ecx, dword [0x41cdcc]
mov dword [eax + ecx*4], edi
inc dword [0x41cdcc]
xor ebx, ebx
jmp 0x4060da
test ebx, ebx
jne 0x4060b1
movsx eax, al
push eax
push str.__t_r_n_v
call fcn.00402380
test eax, eax
pop ecx
pop ecx
je 0x4060b1
inc esi
mov bl, byte [esi]
test bl, bl
je 0x4060ab
movsx eax, bl
push eax
push str.__t_r_n_v
call fcn.00402380
test eax, eax
pop ecx
pop ecx
jne 0x406090
mov byte [edi], 0
inc edi
jmp 0x4060e0
mov al, byte [esi]
cmp al, 0x22
jne 0x4060c3
xor eax, eax
inc esi
test ebx, ebx
jne 0x4060bf
inc eax
mov ebx, eax
jmp 0x4060da
cmp al, 0x5c
jne 0x4060d6
cmp byte [esi + 1], 0x22
jne 0x4060d6
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x4060da
inc esi
mov byte [edi], al
inc edi
mov al, byte [esi]
test al, al
jne 0x406078
cmp byte [esi], 0
jne 0x406030
mov byte [edi], 0
mov edx, dword [0x41cdcc]
mov eax, dword [0x41cdc8]
mov dword [eax + edx*4], 0
push 0x405f40
call fcn.00405e20
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4067a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
mov esi, dword [esp + 0x1c]
cmp esi, 0x100
mov ebp, dword [esp + 0x20]
jge 0x4067c2
mov edi, dword [esi*4 + 0x41c780]
test edi, edi
jne 0x4067e0
call fcn.00404560
mov dword [eax], 3
add esp, 8
pop ebp
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 4]
movsx ebx, byte [edi + 4]
push 0
push eax
mov eax, dword [edi]
push dword [esp + 0x2c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406870
cmp dword [esp + 4], 0
je 0x40685f
test ebx, ebx
je 0x40685f
xor ebx, ebx
mov edx, ebp
xor edi, edi
mov ecx, edx
cmp dword [esp + 4], ebx
jbe 0x406831
mov al, byte [ecx]
cmp al, 0xd
jne 0x406826
cmp byte [ecx + 1], 0xa
jne 0x406826
inc ecx
inc ebx
jmp 0x40682a
inc ecx
mov byte [edx], al
inc edx
inc edi
cmp edi, dword [esp + 4]
jb 0x406816
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
jne 0x40685b
cmp dword [esp + 4], 1
jbe 0x40685b
mov eax, dword [esp + 4]
cmp byte [ebp + eax - 1], 0xd
jne 0x40685b
push 1
push 0xffffffffffffffff
push esi
call fcn.00406730
add esp, 0xc
inc ebx
sub dword [esp + 4], ebx
mov eax, dword [esp + 4]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40cff8], eax
xor eax, eax
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406890
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x10
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], 0x100
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 0
jge 0x4068c0
mov eax, dword [esp + 0x24]
mov edx, dword [eax*4 + 0x41c780]
test edx, edx
jne 0x4068d8
call fcn.00404560
mov dword [eax], 3
add esp, 0x10
pop ebp
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
movsx eax, byte [edx + 4]
mov edi, dword [edx]
test eax, eax
je 0x40692e
xor eax, eax
xor ebp, ebp
test ebx, ebx
jle 0x4068fc
lea eax, [eax]
cmp byte [esi + eax], 0xa
jne 0x4068f7
inc ebp
inc eax
cmp eax, ebx
jl 0x4068f0
lea eax, [ebp + ebx]
push eax
call fcn.00402cc0
xor edx, edx
pop ecx
test ebx, ebx
mov dword [esp + 4], eax
mov ecx, eax
jle 0x406928
cmp byte [esi + edx], 0xa
jne 0x40691d
mov byte [ecx], 0xd
inc ecx
mov al, byte [esi + edx]
inc edx
mov byte [ecx], al
inc ecx
cmp edx, ebx
jl 0x406913
add ebx, ebp
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x41c780]
cmp byte [eax + 5], 0
je 0x40694f
push 2
push 0
push dword [esp + 0x2c]
call fcn.00406730
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], 0
mov ebp, eax
je 0x406972
push dword [esp + 4]
call fcn.00402d00
pop ecx
test ebp, ebp
je 0x406982
mov eax, dword [esp + 0xc]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40cff8], eax
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x902f0c
Capabilities:
Generate random numbers using the delphi lcg

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x956008], 0x8088405
inc edx
mov dword [ebx + 0x956008], edx
fld qword [ebx + 0x95606c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x903820
Capabilities:
Query or enumerate registry value

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

Function at 0x904564
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x958048], 0
je 0x9045c5
cmp word [0x95821c], 0xd7b2
jne 0x90458d
cmp dword [0x958224], 0
jbe 0x90458d
mov eax, 0x958218
call dword [0x958234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x9560a8
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 0x9045ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x956034], 0
jne 0x9045e1
push 0
push 0x9560a0
push 0x9560a8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x905940
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 0x905b70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x9059c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x905b70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x9059c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x905b8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x905a4c
xor eax, eax
push ebp
push 0x905a45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00905788
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 0x905a2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x905bac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x905a2a
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 0x905a4c
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 0x905b66
cmp byte [ebp - 0xd], 0
jne 0x905a93
cmp byte [ebp - 0x12], 0
je 0x905b66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x905aac
dec ebx
cmp byte [ebx], 0x2e
je 0x905abb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x905aab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x905b66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x905af8
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 0x905b66
cmp byte [ebp - 0xd], 0
je 0x905b66
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 0x905b66
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 0x906238
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 0x90629e
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.00904950
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00903070
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x906288
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9062a5
lea eax, [ebp - 0x10]
call fcn.009046e0
ret

Function at 0x90b220
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 0x90b259
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.009047d0
jmp 0x90b262
mov eax, ebx
mov edx, esi
call fcn.00904734
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x90b914
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x90b78c
mov eax, dword [0x9570a0]
cmp byte [eax], 0
je 0x90b990
mov eax, dword [0x956ec4]
call fcn.00902d78
call fcn.00902874
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.00908a20
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 0x90b9d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x90b9c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x956e74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x958664]
call fcn.0090574c
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 0x90c22c
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 0x90c302
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00904778
lea eax, [ebp - 8]
call fcn.00904bf0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00904ba0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x90c2ec
mov eax, ebx
call fcn.0090270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x90c2e5
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.00904ba0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x90c2cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x90c314
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x90c2cf
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 0x90c2ec
mov eax, dword [ebp - 0x10]
call fcn.0090272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x90c309
lea eax, [ebp - 8]
call fcn.009046e0
ret

Function at 0x90c780
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 0x90c7e4
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.00904950
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.009085b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x90c7eb
lea eax, [ebp - 0xc]
call fcn.009046e0
ret

Function at 0x91a90c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x958884
cmp dword [edi], 0
jne 0x91a988
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x958880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x956428
mov ecx, 2
call fcn.00902908
mov edx, 0x91a8e4
lea eax, [esi + 5]
call fcn.0091a904
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0091a904
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 0x91a95d
mov dword [0x958880], 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 0x91bb9c
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 0x91bba2
ret