joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fdd3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d8858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49fe19
cmp word [ebx], dx
jne 0x49fe19
or byte [eax + edi + 0x28], 4
jmp 0x49fe1e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49ff81
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49ff61
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49fe5f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49fe95
cmp eax, edx
jae 0x49fea3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49fe3a
jmp 0x49ff81
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ff5c
cmp dword [ebp - 0x18], 0
je 0x49ff5c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d8858]
test byte [eax + edi + 0x28], 0x48
je 0x49ff32
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49fef6
mov word [esi], cx
jmp 0x49ff2d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d8858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d8858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d8858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49ff81
pop eax
cmp word [ebp - 4], ax
jne 0x49ff42
cmp esi, ebx
jne 0x49ff42
mov word [esi], ax
jmp 0x49ff7e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49ff81
push 0xd
pop eax
jmp 0x49ff3d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d8858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49ff7b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49ff81
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a3b67
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a3bb2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a401f
test al, al
jne 0x4a3bac
sub edx, 2
cmp edx, edi
jne 0x4a3b92
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a3bd4
lea eax, [edi + 2]
cmp edx, eax
je 0x4a3bd4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a3760
add esp, 0x10
jmp 0x4a3cce
push esi
lea ecx, [ebp - 0x255]
call fcn.004a401f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3c17
push dword [ebp - 0x25c]
jmp 0x4a3bc4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a3c54
cmp word [ebp - 0x226], 0
je 0x4a3c75
cmp word [ebp - 0x226], ax
jne 0x4a3c54
cmp word [ebp - 0x224], 0
je 0x4a3c75
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a3760
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a3cc1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a3c2e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a3ca9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a3cce
push 0x4a3148
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405510
add esp, 0x10
jmp 0x4a3c9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040304e
leave
ret

Function at 0x4a9630
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042d2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a969f
cmp esi, dword [ebp - 4]
je 0x4a969a
cmp dword [ebp + 0xc], 0
je 0x4a969a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a9677
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a9058
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a96a1
xor eax, eax
inc eax
jmp 0x4a96a1
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10072bed
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
add esp, 4
cmc
mov eax, ebp
rol bl, 1
bt si, 3
and bl, dl
mov bl, 1
Function at 0x401768
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x218
mov eax, 0x41aaba
call fcn.0040436f
movzx eax, word [ebp + 8]
and dword [ebp - 4], 0
push eax
call fcn.00401577
pop ecx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
xor esi, esi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x429920
push esi
push str.dfss
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push 0x429920
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 0x224], 0
push 0
mov esi, eax
lea eax, [ebp - 0x224]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
call fcn.004013bc
pop ecx
push 0x41e8a4
push ecx
mov ecx, esp
push str.PublicMethod
test al, al
je 0x4018cb
mov byte [ebp - 4], 1
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
push ecx
mov ecx, esp
push str.RemoteProcess.Program
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
push 0x429920
push ecx
mov ecx, esp
push str.v4.0.30319
jmp 0x4018fc
call fcn.004042c1
ret
mov byte [ebp - 4], 3
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
push ecx
mov ecx, esp
push str.RemoteProcess.Program
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
push 0x429920
push ecx
mov ecx, esp
push str.v2.0.50727
call fcn.004010c4
call fcn.00401eba
pop ecx
push eax
call fcn.004015b8
add esp, 0x14
jmp 0x4018c5
Function at 0x40a13f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428c68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040602a
mov dword [ebp - 0x14], eax
cmp dword [0x42aa2c], edi
jne 0x40a230
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a1bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a310
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a310
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a310
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42aa2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42aa30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42aa34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42aa3c], eax
test eax, eax
je 0x40a22d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42aa38], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a255
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a248
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a26a
push 4
pop eax
jmp 0x40a312
cmp dword [ebp - 0x14], edi
je 0x40a26a
push dword [0x42aa2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a24f
mov eax, dword [0x42aa38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a2c8
cmp dword [0x42aa3c], esi
je 0x40a2c8
push eax
call ebx
push dword [0x42aa3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a2c8
test eax, eax
je 0x40a2c8
call ecx
test eax, eax
je 0x40a2bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a2bd
test byte [ebp - 8], 1
jne 0x40a2c8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a2f8
mov eax, dword [0x42aa30]
cmp eax, esi
je 0x40a2f5
push eax
call ebx
test eax, eax
je 0x40a2f5
call eax
mov edi, eax
test edi, edi
je 0x40a2f5
mov eax, dword [0x42aa34]
cmp eax, esi
je 0x40a2f5
push eax
call ebx
test eax, eax
je 0x40a2f5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42aa2c]
call ebx
test eax, eax
je 0x40a310
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a312
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404234
leave
ret
Function at 0x418aa4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404d2b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x418adc
xor eax, eax
jmp 0x418b08
cmp esi, dword [ebp - 4]
je 0x418b05
cmp dword [ebp + 0xc], 0
je 0x418b05
push dword [edi + 0x9c]
call fcn.004186b2
push dword [edi + 0x9c]
mov esi, eax
call fcn.00403f74
pop ecx
pop ecx
cmp esi, eax
je 0x418ad8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x403460
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.004059f8
test esi, esi
jne 0x403498
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.00405b34
jmp 0x4034b6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403344
mov edi, eax
test esi, esi
je 0x4034b6
cmp dword [ebx], 0
je 0x4034b6
dec esi
jmp 0x40349f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403bbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ea024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403c34
xor eax, eax
push ebp
push 0x403c2d
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 0x403c8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ea024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ea024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404e28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f2054], 0
je 0x404e89
cmp word [0x4f2330], 0xd7b2
jne 0x404e51
cmp dword [0x4f2338], 0
jbe 0x404e51
mov eax, 0x4f232c
call dword [0x4f2348]
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 0x404eb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ea030], 0
jne 0x404ea5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405028
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 [0x4ea034], 0
je 0x40504e
mov edx, esi
mov eax, ebx
call dword [0x4ea034]
jmp 0x40505d
mov eax, 8
call fcn.0040308c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f2055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ff0
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 0x407da0
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 0x409ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f4b30
push 0xa
push 0x409d74
mov eax, dword [0x4f4b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409d04
call fcn.00413e18
push ebx
mov eax, dword [0x4f4b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409d1b
call fcn.00413e18
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409d2d
call fcn.00413e18
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f4b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f4b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f4b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f4b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f4b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f4b48], edx
pop esi
pop ebx
ret

Function at 0x40b8c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b971
test eax, edx
je 0x40b974
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b8f1
push edx
mov edx, eax
mov eax, esp
call fcn.00405c14
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b907
push eax
lea eax, [esp + 8]
call fcn.00405c14
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b916
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b93d
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 0x40b957
add ecx, 4
js 0x40b92e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b954
push eax
mov eax, ecx
mov edx, 2
call fcn.004050c8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b93b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b93d
xor eax, eax
ret
test eax, eax
je 0x40b984
test edx, edx
jne 0x40b8d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405a84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cb8a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40cbab
cmp ebx, 3
je 0x40cbab
cmp ebx, 0x7b
je 0x40cbab
mov eax, esi
call fcn.0040cb2c
test al, al
jne 0x40cbaf
xor eax, eax
jmp 0x40cbb1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cbcd
test al, 0x10
jne 0x40cbd1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4114b0
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 0x4114e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405b34
jmp 0x4114f2
mov eax, ebx
mov edx, esi
call fcn.004059f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4114fc
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 0x41151e
movzx eax, word [esp]
jmp 0x411520
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411c84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00411abc
mov eax, dword [0x4f16c0]
cmp byte [eax], 0
je 0x411d16
mov eax, dword [0x4f1264]
call fcn.004035e4
call fcn.004031f4
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040d364
push eax
lea eax, [esp + 0x890]
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 0x411d64
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411d4f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f11c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f4b20]
call fcn.004070cc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x4129a4
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 0x412a7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405a4c
lea eax, [ebp - 4]
call fcn.00406310
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405a84
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x412a64
mov eax, ebx
call fcn.0040308c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412a5d
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.00405a84
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x412a47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412a8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x412a47
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 0x412a64
mov eax, dword [ebp - 0x10]
call fcn.004030a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a81
lea eax, [ebp - 4]
call fcn.004059e8
ret

Function at 0x413cc0
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.004053c8
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 0x413c6a
mov eax, edi
add eax, eax
call fcn.0040308c
mov esi, eax
jmp 0x413c6c
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 0x413ca5
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 0x413c8f
mov eax, esp
cmp esi, eax
je 0x413cb2
mov eax, esi
call fcn.004030a8
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 0x413cec
cmp bl, 0
je 0x413ce8
cmp bl, 0x41
jl 0x413ce3
cmp bl, 0x5a
jg 0x413ce3
or bl, 0x20
xor al, bl
inc esi
jmp 0x413cc7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413c2c

Function at 0x428e04
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.00428b08
dec esi
jne 0x428e26
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x429fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f6e64
cmp dword [edi], 0
jne 0x42a04c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f6e60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4eb014
mov ecx, 2
call fcn.00403244
mov edx, 0x429fa8
lea eax, [esi + 5]
call fcn.00429fc8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429fc8
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 0x42a021
mov dword [0x4f6e60], 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