joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497c00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x497c34
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6d92a0]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x497c10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov dword [ebp - 4], 0
mov eax, 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x499f4c
mov edx, dword [0x6d8070]
test edx, edx
je 0x499ee6
mov eax, dword [0x6d96a0]
call edx
jmp 0x499eeb
mov eax, 0x6d96a4
mov word [eax], 0
lea eax, [ebx + 0x4c]
lea ecx, [ebp - 4]
mov edx, 0xff
call fcn.0040c8a0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x499f0c
mov eax, 0x6d72f0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x499f42
call sub.kernel32.dll_GetLastError
mov edi, eax
mov edx, dword [0x6d8070]
test edx, edx
je 0x499f33
mov eax, dword [0x6d96a0]
call edx
jmp 0x499f38
mov eax, 0x6d96a4
mov word [eax], di
mov word [esi], 0
jmp 0x499f4c
mov eax, ebx
and eax, 0xffff
mov word [esi], ax
call fcn.0040e100
lea eax, [ebp - 4]
call fcn.00403b50
pop eax
test eax, eax
je 0x499f63
call fcn.0040e230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
test edx, edx
jne 0x499fc0
xor ebx, ebx
jmp 0x49a0df
not eax
jmp 0x49a0ab
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
sub ecx, 8
cmp ecx, 8
jae 0x499fc8
jmp 0x49a0d7
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
mov esi, eax
shr esi, 8
xor esi, dword [edi*4 + 0x5f7330]
mov eax, esi
add edx, 1
sub ecx, 1
test ecx, ecx
ja 0x49a0b8
not eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4b7c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4b7c91
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4b7c80
pop esi
pop ebx
ret

Function at 0x4c3bc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c3bf4
mov eax, esi
call fcn.004c8140
cmp byte [esi + 0x40], 0
je 0x4c3bec
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c3ca5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c3c84
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c3c7c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3c28
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4c3c40
xor bl, bl
jmp 0x4c3ca5
cmp edi, 2
je 0x4c3c7a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3c18
cmp edi, 3
je 0x4c3c58
cmp edi, 1
jne 0x4c3c18
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4c3c18
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c3c18
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c3c9c
cmp dword [esi + 0x14], 0xcc
je 0x4c3c9c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c3fe0
lea esi, [esi]
mov eax, esi
call fcn.004c3cb0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4e25c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x28], 0
je 0x4e2608
mov eax, dword [0x5f41b0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x168]
cmp eax, dword [edx + 0x28]
jne 0x4e2608
mov eax, dword [0x5f41b0]
cmp byte [eax + 0x114], 0
jne 0x4e2608
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx + 4]
jne 0x4e26ff
mov eax, dword [0x5f41b0]
cmp byte [eax + 0x114], 0
jne 0x4e26ff
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0055bec0
mov eax, dword [0x5f41b0]
cmp dword [eax + 0x168], 0
je 0x4e26c4
push 0x10
push 0
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
push dword [eax + 0x25c]
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
push dword [eax + 0x250]
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
push dword [eax + 0x130]
push 0
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5f41b0]
mov eax, dword [eax + 0x168]
call fcn.00501100
test al, al
je 0x4e26c4
push 0
mov eax, dword [0x5f41b0]
call fcn.00420700
push eax
call sub.user32.dll_ShowWindow
nop
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x5f41b0]
call fcn.00423530
jmp 0x4e2798
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4e2754
mov eax, dword [ebp - 4]
mov edx, dword [0x5f41b0]
mov eax, dword [eax + 0x28]
cmp eax, dword [edx + 0x168]
jne 0x4e2754
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x5f41b0]
call fcn.00423530
jmp 0x4e2798
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4e2798
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
test dword [eax + 0x488], 8
je 0x4e2798
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x5f4e80]
mov edx, dword [0x5f4e80]
mov edx, dword [edx]
call dword [edx + 0x8c]
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7aa0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.004e6430
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00413b20
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x6d72c0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4e7af8
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x4e7b74
or dword [ebp - 0x30], 0x800
cmp dword [0x64e290], 6
jb 0x4e7b4c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4e8aa0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
je 0x4e8b50
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jle 0x4e8b50
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e8b2f
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
call fcn.0040e100
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4e8b49
call fcn.0040e230
mov byte [ebp - 0xc], 1
lea esi, [esi]
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e91c0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x78]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov eax, 1
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e930d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4e92a8
lea eax, [ebp - 0x44]
call fcn.00403b50
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
call fcn.004799b0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
call fcn.00403b50
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x54]
call fcn.00479900
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call fcn.0047a0e0
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x40]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x4c]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.0047b5c0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e930d
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
mov eax, 1
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x4e92eb
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
call fcn.0040e100
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x4e9302
call fcn.0040e230
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040e100
lea eax, [ebp - 0x54]
call fcn.00403b50
lea eax, [ebp - 0x44]
call fcn.00403b50
pop eax
test eax, eax
je 0x4e932c
call fcn.0040e230
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55c2d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
mov eax, 1
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.0040de90
call fcn.00404010
push eax
test eax, eax
jne 0x55c361
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a790
cmp dword [ebp - 0xc], 0
jbe 0x55c340
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55c333
mov eax, 0x6d72f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
nop
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a790
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
call fcn.0040aed0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.004411c0
call fcn.0040e100
lea eax, [ebp - 0x3c]
call fcn.0040ac60
lea eax, [ebp - 0x10]
call fcn.0040a1e0
pop eax
test eax, eax
je 0x55c380
call fcn.0040e230
mov esp, ebp
pop ebp
ret
Function at 0x5d92e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, 0xffffffff
mov edx, esi
test esi, esi
je 0x5d92f3
mov edx, dword [edx - 4]
test edx, edx
jle 0x5d9330
mov ebx, esi
test esi, esi
je 0x5d9300
mov ebx, dword [ebx - 4]
cmp ebx, 1
jl 0x5d9330
xor ecx, ecx
nop
add ecx, 1
movzx edx, byte [esi + ecx - 1]
xor edx, eax
and edx, 0xff
mov edi, eax
shr edi, 8
and edi, 0xffffff
xor edi, dword [edx*4 + 0x650fa0]
mov eax, edi
cmp ebx, ecx
jg 0x5d9308
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x5d9340
Capabilities:
Hash data with crc32

Disassembly:
and edx, 0xff
mov ecx, dword [eax + 0xc]
xor edx, ecx
and edx, 0xff
shr ecx, 8
and ecx, 0xffffff
xor ecx, dword [edx*4 + 0x650fa0]
mov dword [eax + 0xc], ecx
ret
Function at 0x4029f4
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.00403fbc
test esi, esi
jne 0x402a2a
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.004040ac
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030dc
Capabilities:
Query or enumerate registry value

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

Function at 0x403e40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c04c], 0
je 0x403ea1
cmp word [0x45c220], 0xd7b2
jne 0x403e69
cmp dword [0x45c228], 0
jbe 0x403e69
mov eax, 0x45c21c
call dword [0x45c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
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 0x403ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x403ebd
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405df4
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 0x405e5a
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.0040422c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ca0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e61
lea eax, [ebp - 0x10]
call fcn.00403fbc
ret

Function at 0x40b16c
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 0x40b1a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040ac
jmp 0x40b1ae
mov eax, ebx
mov edx, esi
call fcn.00404010
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b860
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b6d8
mov eax, dword [0x45b0f4]
cmp byte [eax], 0
je 0x40b8dc
mov eax, dword [0x45aef8]
call fcn.00402b0c
call fcn.00402834
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.004088b8
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 0x40b924
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b912
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45aea4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c668]
call fcn.00405308
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 0x40c1c0
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 0x40c296
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404054
lea eax, [ebp - 8]
call fcn.004044cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040447c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c280
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c279
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.0040447c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c263
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c263
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 0x40c280
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c29d
lea eax, [ebp - 8]
call fcn.00403fbc
ret

Function at 0x40c7ec
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 0x40c850
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.0040422c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004082fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c857
lea eax, [ebp - 0xc]
call fcn.00403fbc
ret

Function at 0x41dca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c888
cmp dword [edi], 0
jne 0x41dd1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a3fc
mov ecx, 2
call fcn.004028c8
mov edx, 0x41dc78
lea eax, [esi + 5]
call fcn.0041dc98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041dc98
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 0x41dcf1
mov dword [0x45c884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f290
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f296
ret
Function at 0x42172c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42177d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421764
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421754
jmp 0x42177d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421765
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a274
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040446c
xor eax, eax
push ebp
push 0x42a3a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42a375
xor eax, eax
push ebp
push 0x42a36e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040427c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42a343
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42a332
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040427c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040447c
mov edx, ebx
pop ecx
call fcn.004028c8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a339
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45ae44]
mov dl, 1
mov eax, dword [0x4071bc]
call fcn.0040b9e4
call fcn.004039f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a3a9
lea eax, [ebp - 4]
call fcn.00403fbc
ret