joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bf60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47bfa9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47c420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae960
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.0047bfd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047c050
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047c050
lea ecx, [esi + 0xc]
call fcn.0049b8d3
lea ecx, [esi + 0x10]
call fcn.0049b8d3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047d5e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047d5e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047d5e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049b948
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049b948
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49dd58
Capabilities:
Get graphical window text

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

Function at 0x49f5cd
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 0x49f60f
call fcn.004a5ba5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49f60f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49f606
xor eax, eax
jmp 0x49f617
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049f61d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a60d5
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 0x4a6103
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a6121
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a603b
jmp 0x4a6121
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a6121
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a603b
test edi, edi
mov eax, edi
jne 0x4a610b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a89b8
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4a89e0
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4a89f1
push 2
call edi
test ax, ax
jge 0x4a89f1
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0049d38d
cmp dword [esi + 0x30], ebx
jne 0x4a8acb
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0049d38d
cmp eax, dword [esp + 0x34]
jne 0x4a8acb
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4a8a67
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4a8aac
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4a8acb
cmp eax, 0x205
je 0x4a8acb
cmp eax, 0x201
je 0x4a8acb
cmp eax, 0x204
je 0x4a8acb
cmp eax, ebx
jne 0x4a8a92
cmp dword [esp + 0x1c], 0x1b
je 0x4a8acb
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5ca59c]
jbe 0x4a8ac1
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4a8a24
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x404618
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406a5c
test esi, esi
jne 0x404650
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406b98
jmp 0x40466e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044fc
mov edi, eax
test esi, esi
je 0x40466e
cmp dword [ebx], 0
je 0x40466e
dec esi
jmp 0x404657
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405eec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f4054], 0
je 0x405f4d
cmp word [0x4f4330], 0xd7b2
jne 0x405f15
cmp dword [0x4f4338], 0
jbe 0x405f15
mov eax, 0x4f432c
call dword [0x4f4348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405f78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f1034], 0
jne 0x405f69
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4060d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4f1038], 0
je 0x4060fe
mov edx, esi
mov eax, ebx
call dword [0x4f1038]
jmp 0x40610d
mov eax, 8
call fcn.00404244
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f4055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060a0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408ab4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408c1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a5c
cmp si, word [0x4f17e0]
jb 0x408b4e
cmp si, word [0x4f19e0]
ja 0x408b4e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408b4e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f17e0]
jae 0x408b28
mov edi, ebx
dec edi
jmp 0x408b49
cmp si, word [ebx*8 + 0x4f17e0]
jbe 0x408b38
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408b49
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4f17e4]
call fcn.004089c4
jmp 0x408b4e
cmp edi, dword [ebp - 0xc]
jae 0x408b12
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408bfd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bfd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c5c
push dword [ebp - 0x164]
push 0x408c38
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c5c
push dword [ebp - 0x168]
push 0x408c48
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c5c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c22
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a54
ret
Function at 0x408dd4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408ed9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f6b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f6b74]
jne 0x408e20
mov eax, esi
mov edx, 0x4f6b78
mov ecx, 0x55
call fcn.00406c5c
push 0x4f6b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ec3
push 0x4f6b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e91
cmp byte [0x4f6b58], 0
je 0x408e56
mov edx, esi
mov eax, ebx
call fcn.00408cb4
jmp 0x408e91
mov edx, esi
mov eax, ebx
call fcn.00408ab4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e91
cmp dword [esi], 0
je 0x408e7a
mov eax, esi
mov edx, 0x408ef4
call fcn.00406e70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ab4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e70
push 0x4f6b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f6b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406ae8
push eax
push 0x4f6b78
call sub.kernel32.dll_lstrcpynW
push 0x4f6b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ee0
lea eax, [ebp - 4]
call fcn.00406a4c
ret
Function at 0x409118
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a44
xor eax, eax
push ebp
push 0x4092fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409158
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409172
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406ae8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40930c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409201
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40930c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409201
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409201
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409374
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092e7
xor eax, eax
push ebp
push 0x4092e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f1c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409270
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c08
jmp 0x4092bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092bb
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092e7
cmp dword [ebp - 8], 0
je 0x4092d6
mov eax, dword [ebp - 8]
call fcn.00404260
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409304
lea eax, [ebp - 4]
call fcn.00406a4c
ret
Function at 0x4095c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406a44
mov eax, dword [ebp - 0x21c]
call fcn.00406a44
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409767
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a5c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406ae8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409668
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40967a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409665
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409733
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4096a3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409118
cmp dword [ebp - 0x220], 0
je 0x4096db
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004094bc
pop ecx
mov ebx, eax
jmp 0x409733
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408dd4
mov eax, dword [ebp - 0x224]
call fcn.004094bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409726
cmp byte [0x4f6b58], 0
jne 0x409726
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408dd4
mov eax, dword [ebp - 0x228]
call fcn.004094bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409733
push ebp
call fcn.0040956c
pop ecx
mov ebx, eax
test bl, bl
je 0x409749
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40976e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a54
ret

Function at 0x409efc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d618
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f6c50
push 0xa
push 0x40d6ac
mov eax, dword [0x4f6c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d63c
call fcn.0041a248
push ebx
mov eax, dword [0x4f6c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d653
call fcn.0041a248
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d665
call fcn.0041a248
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f6c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f6c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f6c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f6c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f6c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f6c68], edx
pop esi
pop ebx
ret

Function at 0x412440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4124e9
test eax, edx
je 0x4124ec
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412469
push edx
mov edx, eax
mov eax, esp
call fcn.00406c78
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41247f
push eax
lea eax, [esp + 8]
call fcn.00406c78
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41248e
movzx eax, word [eax]
sub eax, ecx
jmp 0x4124b5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4124cf
add ecx, 4
js 0x4124a6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4124cc
push eax
mov eax, ecx
mov edx, 2
call fcn.00406178
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4124b3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4124b5
xor eax, eax
ret
test eax, eax
je 0x4124fc
test edx, edx
jne 0x412450
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406ae8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413732
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413753
cmp ebx, 3
je 0x413753
cmp ebx, 0x7b
je 0x413753
mov eax, esi
call fcn.004136d4
test al, al
jne 0x413757
xor eax, eax
jmp 0x413759
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406ae8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413775
test al, 0x10
jne 0x413779
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4173b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4173f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b98
jmp 0x4173fa
mov eax, ebx
mov edx, esi
call fcn.00406a5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417404
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417426
movzx eax, word [esp]
jmp 0x417428
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417bb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417cdd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004179c8
mov esi, eax
mov eax, dword [0x4f37c8]
cmp byte [eax], 0
je 0x417c85
mov eax, dword [0x4f34d4]
call fcn.00404788
call fcn.004043ac
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417b90]
call fcn.0040839c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417cf8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417cc1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f345c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f6c40]
call fcn.004085a4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417ce4
lea eax, [ebp - 4]
mov edx, dword [0x417b90]
call fcn.004084bc
ret
Function at 0x418ea0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418f76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406ab0
lea eax, [ebp - 4]
call fcn.00407460
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406ae8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x418f60
mov eax, ebx
call fcn.00404244
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x418f59
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 - 4]
call fcn.00406ae8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x418f43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418f88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x418f43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f60
mov eax, dword [ebp - 0x10]
call fcn.00404260
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f7d
lea eax, [ebp - 4]
call fcn.00406a4c
ret

Function at 0x41a0f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004064cc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41a09a
mov eax, edi
add eax, eax
call fcn.00404244
mov esi, eax
jmp 0x41a09c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41a0d5
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41a0bf
mov eax, esp
cmp esi, eax
je 0x41a0e2
mov eax, esi
call fcn.00404260
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41a11c
cmp bl, 0
je 0x41a118
cmp bl, 0x41
jl 0x41a113
cmp bl, 0x5a
jg 0x41a113
or bl, 0x20
xor al, bl
inc esi
jmp 0x41a0f7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41a05c