joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fb20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fb53
push esi
call fcn.00442c10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fb4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fbd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fbc2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fb77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fbbe
cmp eax, 2
je 0x43fbc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fb6a
cmp eax, 3
je 0x43fb9d
cmp eax, 1
jne 0x43fb6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fb6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fb6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fc00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fbe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fc00
add esp, 4
pop esi
ret

Function at 0x45e218
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e250
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.0045c2cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c2a4
jmp 0x45e25c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f906
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 0x45f948
call fcn.004653bf
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 0x45f948
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f93f
xor eax, eax
jmp 0x45f950
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f956
pop edi
pop esi
pop ebx
ret 4

Function at 0x4658ef
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 0x46591d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46593b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465855
jmp 0x46593b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46593b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465855
test edi, edi
mov eax, edi
jne 0x465925
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x41f710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x418015
lea edi, [esi - 0x17015]
push edi
or ebp, 0xffffffff
jmp 0x41f732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f728
mov eax, 1
add ebx, ebx
jne 0x41f74b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f740
jne 0x41f75c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f740
xor ecx, ecx
sub eax, 3
jb 0x41f770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f7e2
mov ebp, eax
add ebx, ebx
jne 0x41f77b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f7ac
inc ecx
add ebx, ebx
jne 0x41f798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f78d
jne 0x41f7a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f78d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f7cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f7bd
jmp 0x41f72e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f7cc
add edi, ecx
jmp 0x41f72e
pop esi
mov edi, esi
mov ecx, 0x663
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f7ea
cmp byte [edi], 6
jne 0x41f7ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41f7ef
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f85e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1fab8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fb6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f81c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1fb70]
or eax, eax
je 0x41f858
mov dword [ebx], eax
add ebx, 4
jmp 0x41f839
call dword [esi + 0x1fb74]
popal
jmp 0x401220
Function at 0x401ea0
Capabilities:
Check if file exists

Disassembly:
push ebx
push 0x104
push 0x428bd0
push str.sdk.dll
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x428bd0
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test bl, bl
pop ebx
je 0x401ed6
push str.spy_debug.dll
jmp 0x401edb
push str.spy.dll
push 0x428bd0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x428bd0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401f0d
push eax
push 0x424a3c
push 0x428bd0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 2
ret
xor eax, eax
ret

Function at 0x402eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push str.SoftwareTencentWeChat
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403499
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x208
push eax
push 0
push str.InstallPath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402f2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402f3a
test esi, esi
je 0x402f3a
push str.WeChat.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402f48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00403499
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x27c
mov eax, dword [0x427014]
xor eax, esp
mov dword [esp + 0x278], eax
push edi
mov edi, ecx
call fcn.00402f60
mov dword [edi], eax
test eax, eax
jne 0x4031da
push 0x40
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0x44
push eax
call fcn.00405520
push 0x208
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00405520
add esp, 0x18
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
call fcn.00402eb0
test eax, eax
jne 0x4031dc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4031c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00403499
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov dword [edi], eax
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
xor ecx, esp
call fcn.00403499
mov esp, ebp
pop ebp
ret
Function at 0x403380
Capabilities:
Create thread
Inject thread
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
xor bh, bh
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ecx - 2]
cmp eax, 2
ja 0x4033d3
cmp ecx, 4
jne 0x4033e0
mov eax, dword [esi + 0xc]
mov ecx, str.debug
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033c7
test dl, dl
je 0x4033be
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033c7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033a2
xor eax, eax
test eax, eax
sete bh
jmp 0x4033e0
sbb eax, eax
or eax, 1
test eax, eax
sete bh
jmp 0x4033e0
push str._nUsage:__n
call fcn.00403350
add esp, 4
mov ecx, dword [esi + 4]
mov edx, str.start
mov eax, ecx
nop word [eax + eax]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x403410
test bl, bl
je 0x40340c
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x403410
add eax, 2
add edx, 2
test bl, bl
jne 0x4033f0
xor eax, eax
jmp 0x403415
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403433
push 0xa
push eax
push dword [esi + 8]
call fcn.00409c4f
add esp, 0xc
mov cl, bh
mov edx, eax
pop esi
pop ebx
pop ebp
jmp fcn.00401f20
mov eax, str.stop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403458
test dl, dl
je 0x403454
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403458
add ecx, 2
add eax, 2
test dl, dl
jne 0x403438
xor eax, eax
jmp 0x40345d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403469
pop esi
pop ebx
pop ebp
jmp fcn.004023e0
push str._nUsage:__n
call fcn.00403350
add esp, 4
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret

Function at 0x40f713
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f589
Function at 0x417f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x417f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f60
mov eax, 1
add ebx, ebx
jne 0x417f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417f78
jne 0x417f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f78
xor ecx, ecx
sub eax, 3
jb 0x417fa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41801a
mov ebp, eax
add ebx, ebx
jne 0x417fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417fe4
inc ecx
add ebx, ebx
jne 0x417fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417fc5
jne 0x417fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417fc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417ff5
jmp 0x417f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418004
add edi, ecx
jmp 0x417f66
pop esi
mov edi, esi
mov ecx, 0x5f3c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x41803f
cmp byte [edi], 3
jne 0x418024
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x418022
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x418090
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418045
mov ecx, edi
jns 0x418074
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1807c]
or eax, eax
je 0x41808a
mov dword [ebx], eax
add ebx, 4
jmp 0x418062
call dword [esi + 0x1808c]
mov ebp, dword [esi + 0x18080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4180c4
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402a88
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ac5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402ae5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040475c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402d48
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.004044ec
test esi, esi
jne 0x402d7e
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.004045dc
jmp 0x402d9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402bfc
mov edi, eax
test esi, esi
je 0x402d9c
cmp dword [ebx], 0
je 0x402d9c
dec esi
jmp 0x402d85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403524
Capabilities:
Query or enumerate registry value

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

Function at 0x404370
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f204c], 0
je 0x4043d1
cmp word [0x4f2220], 0xd7b2
jne 0x404399
cmp dword [0x4f2228], 0
jbe 0x404399
mov eax, 0x4f221c
call dword [0x4f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4eb06c
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 0x4043f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb030], 0
jne 0x4043ed
push 0
push 0x4eb064
push 0x4eb06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406044
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 0x406274
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406274
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406290
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406150
xor eax, eax
push ebp
push 0x406149
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e8c
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 0x40612e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40612e
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 0x406150
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 0x40626a
cmp byte [ebp - 0xd], 0
jne 0x406197
cmp byte [ebp - 0x12], 0
je 0x40626a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061b0
dec ebx
cmp byte [ebx], 0x2e
je 0x4061bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061af
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40626a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4061fc
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 0x40626a
cmp byte [ebp - 0xd], 0
je 0x40626a
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 0x40626a
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 0x4069b4
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 0x406a1a
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.0040475c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a21
lea eax, [ebp - 0x10]
call fcn.004044ec
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049ac
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40987d
test al, 0x10
jne 0x409881
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409a18
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049ac
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409a2c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004049ac
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409a4e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cdac
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 0x40cde5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045dc
jmp 0x40cdee
mov eax, ebx
mov edx, esi
call fcn.00404540
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cdf8
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 0x40ce19
mov al, byte [esp]
jmp 0x40ce1b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d4a0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d318
mov eax, dword [0x4f127c]
cmp byte [eax], 0
je 0x40d51c
mov eax, dword [0x4f0f18]
call fcn.00402e88
call fcn.004029dc
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.00409f48
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 0x40d564
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d552
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f0e98]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f2668]
call fcn.00405e50
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 0x40de30
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 0x40df06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404584
lea eax, [ebp - 8]
call fcn.004049fc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40def0
mov eax, ebx
call fcn.00402874
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dee9
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.004049ac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ded3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40df18
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ded3
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 0x40def0
mov eax, dword [ebp - 0x10]
call fcn.00402894
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df0d
lea eax, [ebp - 8]
call fcn.004044ec
ret

Function at 0x40e5bc
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 0x40e620
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.0040475c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004093e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e627
lea eax, [ebp - 0xc]
call fcn.004044ec
ret