joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bbb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aee28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a70d7
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046b500
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a7005
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a38ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a38ce
push 1
push 0
push 0
mov ecx, esi
call fcn.004a3876
push 1
push 0
push 1
mov ecx, esi
call fcn.004a3876
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a7149
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46bd30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aee48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a70d7
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046b500
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a7005
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46bdf4
cmp dword [esp + 0x40], 1
jne 0x46bdf2
cmp ecx, eax
jge 0x46bdf4
mov eax, ecx
cmp eax, 0xc8
jge 0x46be00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046bbb0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a7149
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46c5f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aeef3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a1ce9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a737f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a88de
test eax, eax
je 0x46c70c
mov ecx, dword [esp + 0x3c]
call fcn.004a73ac
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46c6d0
push edi
mov ecx, esi
call fcn.004a4a19
mov ecx, esi
call fcn.0046c8b0
cmp dword [esp + 0x38], 1
jne 0x46c705
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a4b54
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46e8f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46e923
push esi
call fcn.0047ccb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46e91c
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 0x46e9a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46e992
mov eax, dword [esi + 8]
test eax, eax
je 0x46e947
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 0x46e98e
cmp eax, 2
je 0x46e992
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46e93a
cmp eax, 3
je 0x46e96d
cmp eax, 1
jne 0x46e93a
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 0x46e93a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46e93a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046e9d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46e9b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046e9d0
add esp, 4
pop esi
ret

Function at 0x46f240
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x46f261
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x46f261
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46f261
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48a770
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x48a813
test eax, eax
jbe 0x48a813
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48a813
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48a7be
xor esi, esi
jmp 0x48a7c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48a7ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00426150
add esi, eax
push esi
mov ebx, esi
call fcn.00426150
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48a7d0
pop ebp
test edi, edi
pop edi
jne 0x48a813
test ebx, ebx
je 0x48a813
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00491340
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x48a935
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48aa4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48aa4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a213b
mov esi, eax
test esi, esi
je 0x48aa4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48aa4d
mov ecx, esi
call fcn.0048a8c0
cmp edi, eax
jge 0x48aa4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48a9d3
mov dword [esp + 0x34], 1
jmp 0x48aa2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48aa4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00489e70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a2adf
Capabilities:
Get graphical window text

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

Function at 0x4a41d6
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 0x4a4218
call fcn.004a9cc9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4218
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a420f
xor eax, eax
jmp 0x4a4220
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4226
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aa1f9
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 0x4aa227
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa245
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa15f
jmp 0x4aa245
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa245
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa15f
test edi, edi
mov eax, edi
jne 0x4aa22f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40aab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x433470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x43346c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x433470], edx
cmp eax, 0x26f
jl 0x40aab8
mov dword [0x428960], 0x270
ret

Function at 0x40aaf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x433474]
mov ebx, dword [eax*4 + 0x433470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x433aa4]
mov dword [eax*4 + 0x433470], edx
cmp eax, 0xe2
jl 0x40aaf8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x433474]
mov ebx, dword [eax*4 + 0x433470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4330e4]
mov dword [eax*4 + 0x433470], edx
cmp eax, 0x26e
jl 0x40ab48
mov edx, dword [0x433470]
mov ecx, dword [0x433e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x433aa0]
mov dword [0x433e2c], eax
mov dword [0x428960], 0
pop ebx
ret

Function at 0x40abd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x428960]
add dword [0x428960], 1
mov eax, dword [0x432020]
cmp eax, dword [0x428480]
jne 0x40abf3
cmp ebx, 0x271
jb 0x40ac14
mov eax, dword [0x432020]
call fcn.0040aab0
not dword [0x432020]
mov eax, dword [0x432020]
mov dword [0x428480], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ac30
call fcn.0040aaf0
xor ebx, ebx
mov dword [0x428960], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x433470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40c6a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x428210]
cmp ax, 0xcb
je 0x40c7ac
cmp ax, 0xcc
je 0x40c7ac
lea esi, [esi]
mov edx, dword [0x434070]
test edx, edx
je 0x40c6d5
mov eax, dword [0x433f20]
call edx
mov ebx, eax
jmp 0x40c6da
mov ebx, 0x433f24
cmp word [0x433f10], 0
jle 0x40c700
mov eax, 0x433ef0
call fcn.0040c910
mov eax, ebx
call fcn.0040c260
mov eax, ebx
call fcn.0040c2d0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40c722
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40c71d
mov edx, edi
mov eax, ebx
call fcn.0040b6d0
jmp 0x40c720
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40c708
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x433f10], 0
jle 0x40c7ac
mov edx, 0x433e30
mov eax, ebx
call fcn.0040b810
mov edi, eax
test edi, edi
je 0x40c77c
mov eax, dword [0x433ec4]
mov dword [edi + 0xc], eax
cmp dword [0x433ec4], 0
je 0x40c770
mov eax, dword [0x433ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x433ec4], eax
nop
sub word [0x433f10], 1
cmp word [0x433f10], 0
sete bl
mov eax, 0x433ef0
call fcn.0040c930
test bl, bl
je 0x40c7ac
mov eax, 0x433ef0
call fcn.0040c900
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x40e890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x433260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.0040ea70
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x433260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004025e0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x428280], eax
mov ebx, eax
jmp 0x40ea33
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x40e918
cmp byte [ebx], 0
je 0x40ea3c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40e993
mov al, byte [ebx]
cmp al, 1
jb 0x40e988
sub al, 0x20
jbe 0x40e958
sub al, 2
je 0x40e96c
jmp 0x40e988
mov al, byte [ebp - 0x114]
test al, al
je 0x40e998
add dword [ebp - 0x110], 1
jmp 0x40e990
cmp byte [ebx + 1], 0x22
je 0x40e983
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40e990
add ebx, 1
jmp 0x40e990
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40e948
test dword [ebp - 0x10c], 0xffffffff
je 0x40ea2c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.0040ea70
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x433260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x40ea23
mov al, byte [ebx]
cmp al, 1
jb 0x40ea18
sub al, 0x20
jbe 0x40e9e8
sub al, 2
je 0x40e9fc
jmp 0x40ea18
mov al, byte [ebp - 0x114]
test al, al
je 0x40ea28
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x40ea20
cmp byte [ebx + 1], 0x22
je 0x40ea13
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40ea20
add ebx, 1
jmp 0x40ea20
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40e9d8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40e91b
mov ebx, dword [ebp - 0x10c]
mov dword [0x433250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x433260
call fcn.0040c4e0
mov eax, dword [0x433260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00410ab0
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x410bd0
mov al, byte [ebp - 0x110]
test al, al
je 0x410b99
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004036a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00406870
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004073a0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x42a9ec
call fcn.004228d0
mov edx, 0x410b2a
mov ecx, ebp
call fcn.0040f5c0
jmp 0x410bd0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x42a9ec
call fcn.004228d0
mov edx, 0x410b99
mov ecx, ebp
call fcn.0040f5c0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x410c94
mov al, byte [ebp - 0x110]
test al, al
je 0x410c5d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004036a0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00406870
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.004073a0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x42a9ec
call fcn.004228d0
mov edx, 0x410bee
mov ecx, ebp
call fcn.0040f5c0
jmp 0x410c94
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x42a9ec
call fcn.004228d0
mov edx, 0x410c5d
mov ecx, ebp
call fcn.0040f5c0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004107f0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00410ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00423540
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x4235c0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00408080
cmp ebx, 1
jle 0x4235b0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00407ab0
jmp 0x4235cb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405ff0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00423540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00423750
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x43494c]
xor edx, edx
call fcn.00405ff0
mov dword [ebx*4 + 0x43496c], 0xffffffff
cmp ebx, 7
jl 0x423788
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x423814
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004069e0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0041db40
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x423814
push 4
push ebx
push esi
mov eax, 0x423630
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4236c0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4349b0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x434810], eax
mov eax, dword [ebp - 0x90]
mov dword [0x434820], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x434830], eax
mov eax, dword [ebp - 0x88]
mov dword [0x434840], eax
mov edx, 0x434851
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004025e0
lea eax, [ebp - 0x80]
call fcn.00403180
mov byte [0x434850], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4349c0], eax
test eax, eax
je 0x423ee0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4349c0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4349b0], eax
nop
cmp dword [0x434820], 6
jae 0x423ef4
mov dword [0x428c30], 0
nop
cmp dword [0x434820], 6
jb 0x423f10
cmp dword [0x434830], 1
jb 0x423f10
mov dword [0x428c40], 2
mov esp, ebp
pop ebp
ret
Function at 0x424700
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
mov ebx, eax
mov esi, edx
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004246f0
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.00424690
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42473d
mov eax, 0x4332f0
push eax
mov eax, esi
call fcn.004246d0
mov dl, al
mov eax, ebx
call fcn.00425050
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [ebx + 4], eax
test eax, eax
sete bl
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004246f0
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4247b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, esi
xor cl, cl
mov edx, 0x20
call fcn.00402620
lea eax, [ebp - 8]
push eax
push 0
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
push 0
lea eax, [esi + 4]
push eax
mov eax, esi
push eax
push 0
push 0
push 0
push dword [ebx + 0x14]
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebx + 4], eax
test eax, eax
sete bl
jne 0x424818
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x18]
call fcn.00420620
fstp qword [esi + 0x18]
mov esi, esi
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret