joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014d70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x10080704]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10014dac
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.SDK_UploadLog111
call esi
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.SDK_UploadLog222
call esi
and dword [esp + 0x18], 0xfffffe00
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0
call fcn.10005250
mov ecx, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014e00
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.10008470
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
push dword [esp + 0x30]
cmovae eax, dword [esp + 0x24]
lea ecx, [esp + 0x64]
push eax
call fcn.10008470
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x60]
lea eax, [esp + 0x10]
cmovae ecx, dword [esp + 0x60]
push ecx
push eax
mov eax, dword [esp + 0x78]
add eax, ecx
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.10005400
mov edx, dword [esp + 0x34]
mov bl, al
cmp edx, 0x10
jb 0x10014e8d
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10014e83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014fb5
push edx
push ecx
call fcn.1001bf11
add esp, 8
test bl, bl
je 0x10014f8b
push ecx
push str.type
lea ecx, [esp + 0x18]
call fcn.1000a3e0
cmp byte [eax + 8], 4
jne 0x10014f8b
push ecx
push str.type
lea ecx, [esp + 0x18]
call fcn.1000a3e0
push dword [eax]
call fcn.10043020
add esp, 4
cmp eax, 7
jne 0x10014eea
push ecx
push str.file_oper
lea ecx, [esp + 0x18]
call fcn.1000a3e0
push dword [eax]
call fcn.10043020
add esp, 4
cmp eax, 0x14
jmp 0x10014f0f
cmp eax, 8
jne 0x10014f8b
push ecx
push str.file_oper
lea ecx, [esp + 0x18]
call fcn.1000a3e0
push dword [eax]
call fcn.10043020
add esp, 4
cmp eax, 0x13
jne 0x10014f8b
push 0x100
lea eax, [esp + 0xac]
push 0
push eax
call fcn.10033470
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014f30
push 0
push 0x1388
push 0x80
lea eax, [esp + 0xb4]
sub ecx, edx
push eax
push ecx
push edi
push str.TDSMLocalLogService
call fcn.10001020
test eax, eax
jne 0x10014fb1
mov esi, 2
lea ecx, [esp + 0x38]
call fcn.10007610
lea ecx, [esp + 0x10]
call fcn.10009b00
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014f90
push 0
push 0xffffffffffffffff
push 0
push 0
sub ecx, edx
push ecx
push edi
push str.TDSMLocalLogService
call fcn.10001020
test eax, eax
je 0x10014f5d
xor esi, esi
jmp 0x10014f62
call fcn.10041b97
int3
Function at 0x10015070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push str.SDK_NotifyConfigModified........
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
dec eax
cmp eax, 3
ja case.default.0x1001508d
jmp dword [eax*4 + 0x100150f8]
call fcn.10014920
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.10014b10
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push 0
push 0
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x64
push eax
push str.ipc_tdlp_content_check
call fcn.10001020
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push 0
push 0
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xa
push eax
push str.TrayConfigUpdate
call fcn.10001020
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017ab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10080704]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 0xc]
push 0x10070b98
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 8], 0
jne 0x10017b2c
test esi, esi
jne 0x10017af0
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017af5
push 0
push 0xffffffffffffffff
push 0
push 0
sub ecx, edx
push ecx
push esi
push str.TDSMShowTrayMessage
call fcn.10001020
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [0x10081120]
and eax, 0xffffff04
and dword [esp + 0x20], 0xfffffe00
or eax, 0x104
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ecx]
push 0x10070be4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
call dword [eax + 0xc]
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 8]
push eax
sub esp, 8
push str.version
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [esp + 8]
call fcn.10009b00
mov eax, dword [esp + 0x10]
mov ecx, dword [0x10081120]
and eax, 0xffffff04
or eax, 0x104
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 8]
push eax
sub esp, 8
push 0x10070be8
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [esp + 8]
call fcn.10009b00
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.1000a920
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0x2c]
mov ecx, 5
call fcn.10017380
mov edx, dword [esp + 0x40]
mov esi, eax
cmp edx, 0x10
jb 0x10017c4f
mov ecx, dword [esp + 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10017c45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017c7f
push edx
push ecx
call fcn.1001bf11
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
call fcn.10009b00
mov ecx, dword [esp + 0x44]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
call fcn.10041b97
int3
Function at 0x10018bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x10080704]
xor eax, esp
mov dword [esp + 0x138], eax
and dword [esp + 0xc], 0xfffffe00
lea ecx, [esp + 0x44]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], 0
call fcn.10005250
mov ecx, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018c26
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.10008470
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
push dword [esp + 0x30]
cmovae eax, dword [esp + 0x24]
lea ecx, [esp + 0x7c]
push eax
call fcn.10008470
cmp dword [esp + 0x8c], 0x10
lea ecx, [esp + 0x78]
lea eax, [esp + 0x10]
cmovae ecx, dword [esp + 0x78]
push ecx
push eax
mov eax, dword [esp + 0x90]
add eax, ecx
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.10005400
mov edx, dword [esp + 0x34]
mov bl, al
cmp edx, 0x10
jb 0x10018cb9
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10018caf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ddb
push edx
push ecx
call fcn.1001bf11
add esp, 8
test bl, bl
je 0x10018db2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
and eax, 0xffffff01
mov dword [esp + 0x2c], 0
or eax, 1
mov dword [esp + 0x20], 0x16
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
sub esp, 8
push str.type
call fcn.1000a3e0
add esp, 4
mov ecx, eax
call fcn.10009bc0
lea ecx, [esp + 0x20]
call fcn.10009b00
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.1000a920
push 0x80
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.10033470
add esp, 0xc
lea ecx, [esp + 0xc0]
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push 0xbb8
push 0x80
push ecx
push dword [esp + 0x58]
push eax
push str.HTLocalUpdateService
call fcn.10001020
test eax, eax
je 0x10018d6f
mov eax, dword [esp + 0xc0]
mov dword [esi], eax
jmp 0x10018d80
push str.SDK_QuerySendingAuth_over_time__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi], 0
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jb 0x10018db2
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10018da8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018de0
push edx
push ecx
call fcn.1001bf11
add esp, 8
lea ecx, [esp + 0x50]
call fcn.10007610
lea ecx, [esp + 0x10]
call fcn.10009b00
mov ecx, dword [esp + 0x144]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
call fcn.10041b97
call fcn.10041b97
int3
Function at 0x10019c20
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005acd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x10019d64
test ebx, ebx
je 0x10019d64
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x10019cb8
push esi
push str._XG_ReadFileByKey__GetFileSize__s_is_zero
call fcn.10010e40
add esp, 8
jmp 0x10019d73
push edi
call fcn.1001c3b1
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10019ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._XG_ReadFileByKey__ReadFile__s_Failed__Error:_d
jmp 0x10019d6b
push dword [ebp - 0x18]
push edi
push str._XG_ReadFileByKey__ReadFile_af_dwSizeRet:_d_read:_d
call fcn.10010e40
add esp, 0xc
cmp dword [ebp - 0x18], edi
je 0x10019d12
push str.read___dwSizeRet
call fcn.10010e40
add esp, 4
jmp 0x10019d73
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
mov ecx, edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
lea esi, [ecx + 1]
mov dword [eax], edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019d30
sub ecx, esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push edi
push esi
call fcn.10019f80
add esp, 0x10
mov eax, esi
jmp 0x10019d75
push eax
push esi
push str._XG_ReadFileByKey__CreateFile__s_Error:_d
call fcn.10010e40
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret
Function at 0x10019f80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10080704]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x118], eax
mov edx, 0x100
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x114], eax
xor eax, eax
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x10019fb2
push ebx
push esi
push edi
xor dl, dl
mov word [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0x110], 0x100
lea edi, [ebp - 0x108]
nop word [eax + eax]
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x108]
movzx esi, dl
lea edi, [edi + 1]
mov dl, byte [edi - 1]
movzx eax, byte [esi + eax]
add al, dl
add bl, al
movzx eax, bl
add ecx, eax
movzx eax, byte [ecx]
mov byte [edi - 1], al
lea eax, [esi + 1]
mov byte [ecx], dl
cdq
idiv dword [ebp + 0x14]
sub dword [ebp - 0x110], 1
jne 0x10019fe0
mov edi, dword [ebp + 0xc]
xor esi, esi
mov bh, byte [ebp - 8]
mov cl, byte [ebp - 7]
test edi, edi
jle 0x1001a07d
nop dword [eax]
inc bh
lea edx, [ebp - 0x108]
movzx eax, bh
add edx, eax
mov bl, byte [edx]
add cl, bl
movzx eax, cl
mov byte [ebp - 0x109], cl
lea ecx, [ebp - 0x108]
add ecx, eax
movzx eax, byte [ecx]
mov byte [edx], al
mov byte [ecx], bl
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x118]
add al, bl
movzx eax, al
movzx eax, byte [ebp + eax - 0x108]
xor byte [esi + ecx], al
inc esi
mov cl, byte [ebp - 0x109]
cmp esi, edi
jl 0x1001a030
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001bcd0
mov esp, ebp
pop ebp
ret

Function at 0x1001da8e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10048ffd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10048e7c

Function at 0x10052bfe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100528be
Function at 0x402e78
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ed1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d14
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d14
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ebb
inc ebx
jmp 0x402ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed8
lea eax, [ebp - 8]
call fcn.00404780
ret

Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404780
test esi, esi
jne 0x402f17
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.00404870
jmp 0x402f38
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d14
mov dword [esp], eax
test esi, esi
je 0x402f38
cmp dword [ebx], 0
je 0x402f38
dec esi
jmp 0x402f1f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4037dc
Capabilities:
Query or enumerate registry value

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

Function at 0x404578
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53204c], 0
je 0x4045d9
cmp word [0x532220], 0xd7b2
jne 0x4045a1
cmp dword [0x532228], 0
jbe 0x4045a1
mov eax, 0x53221c
call dword [0x532238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52c070
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 0x404600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52c034], 0
jne 0x4045f5
push 0
push 0x52c068
push 0x52c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404734
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.00402ab4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x53204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4068e4
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 0x40694a
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.004049f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403394
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406934
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406951
lea eax, [ebp - 0x10]
call fcn.00404780
ret

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

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

Function at 0x40c64c
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 0x40c685
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404870
jmp 0x40c68e
mov eax, ebx
mov edx, esi
call fcn.004047d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd50
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbb8
mov eax, dword [0x531854]
cmp byte [eax], 0
je 0x40cdcc
mov eax, dword [0x531440]
call fcn.00403078
call fcn.00402c40
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.00409bb8
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 0x40ce14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5313a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x532668]
call fcn.00405d10
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 0x40d6c4
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 0x40d79a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404818
lea eax, [ebp - 8]
call fcn.00404c90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d784
mov eax, ebx
call fcn.00402ab4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d77d
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.00404c40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d767
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d7ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d767
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 0x40d784
mov eax, dword [ebp - 0x10]
call fcn.00402ae4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7a1
lea eax, [ebp - 8]
call fcn.00404780
ret

Function at 0x40dd7c
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 0x40dde0
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.004049f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040941c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde7
lea eax, [ebp - 0xc]
call fcn.00404780
ret

Function at 0x420480
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4204cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004202ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4204e5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4204ec
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.004202ac
dec esi
jne 0x42050e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret