joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
movzx eax, word [ebp + 0xc]
push 0x4346a0
push eax
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4037b9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4037b9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4037b9
mov ebx, dword [esp + 0x14]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4037b9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40381c
push ebx
push edi
push eax
call fcn.0041f160
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4037b9
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
push edx
push ebx
call fcn.00404230
test eax, eax
jge 0x4037ee
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4037d1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], 0
test esi, esi
je 0x4037e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00401620
test eax, eax
je 0x403807
mov eax, dword [esp + 0x10]
push eax
call fcn.004041f0
add esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40381f
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.00403870
call fcn.00401620
test eax, eax
je 0x403853
push 7
mov esi, ebx
call fcn.00403940
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x403853
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0x30], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404db9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404df4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404df0
lea ebx, [ebx]
cmp esi, eax
jae 0x404df4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404de0
cmp esi, eax
jb 0x404dfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4051e0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x405323
cmp dword [esi + 0x90], 0
je 0x405323
call fcn.004135e9
mov ecx, dword [esi + 0x20]
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x20]
push edx
push 0
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x41a
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040eb9a
mov edi, eax
test edi, edi
je 0x405276
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00414325
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
test bl, 2
je 0x4052b7
mov edx, dword [esi + 0x9c]
cmp eax, edx
mov ecx, dword [esi + 0x98]
jg 0x405295
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
neg ebx
mov edi, dword [edi + 4]
sbb bl, bl
and bl, 0x65
add bl, 0xff
push ebx
push edx
push ecx
push 0
push 0
push eax
push ecx
push 0
push 0
jmp 0x405317
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x98]
sub ecx, dword [esp + 0x24]
cmp eax, edx
jle 0x4052cb
mov eax, edx
mov edx, dword [esi + 0x9c]
cmp ecx, edx
jle 0x4052d7
mov ecx, edx
mov edx, dword [ebp + 8]
fld qword [0x43f2e0]
mov edi, dword [edx + 4]
fmul qword [0x436570]
mov edx, dword [ebp + 0xc]
neg edx
sbb dl, dl
and dl, 0x65
add dl, 0xff
push edx
push ecx
push eax
push 0
push 0
push ecx
push eax
call fcn.0041da30
fld qword [0x43f2d8]
fmul qword [0x436568]
push eax
call fcn.0041da30
push eax
push edi
lea eax, [esi + 0x8c]
call fcn.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405338
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x14], 0
push esi
mov esi, ecx
je 0x4053e4
cmp dword [esi + 0x5c], 0
je 0x4053e4
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x68]
sub edi, dword [esi + 0xdc]
mov ebx, dword [esi + 0xd0]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xd4]
sub edi, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
sar ecx, 1
sub ecx, dword [esi + 0xd8]
sub ecx, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 0xf0]
mov ebp, eax
sar ebp, 1
add ebp, dword [esp + 0x10]
neg edx
sbb edx, edx
and edx, ecx
add edx, ebx
mov ebx, dword [esp + 0x28]
neg ebx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
sbb bl, bl
and bl, 0x81
add bl, 0xff
push ebx
mov ebx, dword [esi + 0xd4]
push edi
push ecx
push ebx
push edx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push ebp
push eax
lea eax, [esi + 0x58]
call fcn.004053f0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 8
Function at 0x408960
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x408ab6
cmp dword [esi + 0x90], 0
je 0x408ab6
cmp dword [esi + 0x5c], 0
je 0x408ab6
call fcn.004135e9
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x41a
push edx
call edi
test byte [esp + 0xc], 2
je 0x408a3a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x68]
mov edx, eax
sub edx, dword [esp + 0x14]
cmp ecx, edx
jge 0x4089f1
sub eax, ecx
sub eax, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x98]
sub eax, edx
sub eax, ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
push ebx
push eax
push ecx
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push edi
lea eax, [esi + 0x8c]
call fcn.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x64]
mov edi, eax
sub edi, edx
cmp ecx, edi
jge 0x408a53
sub eax, ecx
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x9c]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, eax
sub ecx, edi
sub edi, edx
add ecx, edx
cmp eax, edi
jg 0x408a6f
mov edi, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov edx, dword [ebp + 8]
sub eax, ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
mov edx, dword [edx + 4]
push ebx
xor ebx, ebx
test ecx, ecx
setl bl
push edi
push eax
sub ebx, 1
and ebx, ecx
mov ecx, dword [esp + 0x2c]
push ebx
push 0
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esi + 0x8c]
call fcn.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408c60
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x408e61
cmp dword [esi + 0x90], 0
je 0x408e61
cmp dword [esi + 0x5c], 0
je 0x408e61
call fcn.004135e9
mov ecx, dword [esi + 0x20]
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x30]
push edx
push 0
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x41a
push edx
call edi
test bl, 2
je 0x408d9e
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x98]
mov edx, dword [esp + 0x24]
sub eax, edi
add eax, edx
xor ebx, ebx
test eax, eax
setl bl
mov ecx, 0
mov dword [esp + 0x14], 0
sub ebx, 1
and ebx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esi + 0x68]
sub eax, dword [esp + 0x34]
sets cl
sub ecx, 1
and ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x98]
mov eax, edi
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esi + 0xc4]
mov edi, eax
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esi + 0xcc]
sub edx, dword [esi + 0xc8]
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0xc]
sar edi, 1
add edi, dword [esi + 0xc0]
sub edx, ebx
add edi, dword [esp + 0x24]
shr ebx, 1
cmp dword [esi + 0x98], eax
mov dword [esp + 0x18], ebx
jg 0x408d7d
mov eax, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
cmp ebx, eax
jg 0x408e21
mov eax, ebx
jmp 0x408e21
mov edx, dword [esi + 0x9c]
sub edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov edi, dword [esi + 0xc0]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x28]
test eax, eax
setl cl
sub edx, dword [esi + 0xc8]
add edi, dword [esp + 0x20]
sub edx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
sub ecx, 1
and eax, ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0xc], eax
shr eax, 1
add ecx, eax
add ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x9c]
sub ecx, dword [esi + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
sub ecx, dword [esp + 0xc]
sub eax, ebx
cmp dword [esi + 0x9c], eax
jg 0x408e21
mov eax, dword [esi + 0x9c]
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push edi
push eax
lea eax, [esi + 0x8c]
call fcn.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408e70
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push edi
mov esi, ecx
je 0x408f79
cmp dword [esi + 0x5c], eax
je 0x408f79
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0x419
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0xd8]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xe0]
mov ebx, dword [esp + 0x18]
sub edi, eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0xdc]
sub eax, ecx
lea ecx, [edx + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esi + 0xe8]
sub ecx, edx
mov edx, dword [esp + 0x24]
sub edx, dword [esi + 0xec]
sub ecx, ebx
mov ebx, edx
sub ebx, dword [esi + 0xe4]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x1c]
sub ebx, edx
cmp eax, ebx
jg 0x408f1e
mov dword [esp + 0xc], eax
jmp 0x408f2e
mov ebx, dword [esp + 0xc]
sub ebx, dword [esi + 0xe4]
sub ebx, edx
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x81
add bl, 0xff
push ebx
push eax
mov eax, dword [esi + 0xd4]
push edi
push eax
mov eax, dword [esi + 0xd0]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0xe4]
push ecx
lea ecx, [eax + edx - 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea eax, [esi + 0x58]
call fcn.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a8a0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000000
je 0x40a8c8
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
cmp esi, edi
je 0x40a8f1
push 1
push edi
push esi
call ebx
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, edi
je 0x40a902
push 0
push edi
push esi
call ebx
push 1
push 0
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40ad40
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x43dc20]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.0041b0b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x40adb3
cmp dword [esp + 0x14], 2
jne 0x40adcc
cmp dword [esp + 8], 5
jb 0x40adcc
push 0x11c
lea edx, [esp + 8]
push 0
push edx
call fcn.0041b0b0
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x11c
call esi
cmp dword [esp + 0x14], 2
jne 0x40adcc
cmp dword [esp + 8], 5
jne 0x40adcc
mov eax, 1
cmp dword [esp + 0xc], eax
je 0x40adce
xor eax, eax
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0041a391
add esp, 0x120
ret

Function at 0x40fc17
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fc50
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040fbb0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040ea93
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41183e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x411881
call fcn.00412dbd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411881
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41189c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004113f8
test ebx, ebx
mov esi, eax
je 0x41189a
test edi, edi
je 0x41189a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41201d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42daf4
call fcn.0041b53a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00412dbd
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x412068
call fcn.00412dbd
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x412079
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x412086
or eax, 0xffffffff
jmp 0x4121e2
mov ecx, esi
call fcn.00411b6f
mov dword [ebp - 0x14], eax
call fcn.0040ec42
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x412104
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x412104
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x412104
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004015b0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x412104
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x412104
mov ecx, ebx
call fcn.00413711
test eax, eax
je 0x412104
push 0
mov ecx, ebx
call fcn.0041372c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00410621
push dword [ebp - 0x14]
call fcn.0040eb9a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00411e25
xor edi, edi
cmp eax, edi
je 0x412161
test byte [esi + 0x3c], 0x10
je 0x41214b
push 4
pop edi
mov ecx, esi
call fcn.004135e9
test ax, 0x100
je 0x412141
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040e70b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x412161
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00413793
or dword [ebp - 4], 0xffffffff
jmp 0x41218c
cmp dword [ebp - 0x28], edi
je 0x41219a
push 1
mov ecx, ebx
call fcn.0041372c
cmp dword [ebp - 0x2c], edi
je 0x4121aa
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4121c3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4121c3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00411ba9
cmp dword [esi + 0x58], edi
je 0x4121df
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041b5a6
ret
Function at 0x41224c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41226c
cmp dword [edi + 0x54], 0
jne 0x41226c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412dbd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00412213
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x415bd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43dc20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x415c0d
push 0x432610
push 4
push eax
call fcn.0041af01
push eax
call fcn.00403d70
add esp, 0x10
jmp 0x415c1f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415c8a
push edi
call fcn.0041b8b8
mov edi, dword [eax]
call fcn.0041b8b8
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041b85e
add esp, 0x18
mov ebx, eax
call fcn.0041b8b8
cmp dword [eax], 0
je 0x415c6a
call fcn.0041b8b8
push dword [eax]
call fcn.0040c496
pop ecx
jmp 0x415c71
call fcn.0041b8b8
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x415c8a
cmp ebx, esi
jae 0x415c8a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x415c8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a391
leave
ret
Function at 0x4170bd
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 0x4170eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417109
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417027
jmp 0x417109
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417109
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00417027
test edi, edi
mov eax, edi
jne 0x4170f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4412e8]
test ecx, ecx
je 0x4171cc
jmp 0x4170bc
ret 8

Function at 0x41a391
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dc20]
jne 0x41a39b
repz ret
jmp fcn.0041ef4d

Function at 0x41dd72
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43ddb0]
je 0x41dd8d
inc edi
cmp edi, 0x17
jb 0x41dd7e
cmp edi, 0x17
jae 0x41df0d
push ebp
push 3
call fcn.00425ef0
cmp eax, 1
pop ecx
je 0x41ded9
push 3
call fcn.00425ef0
test eax, eax
pop ecx
jne 0x41ddc1
cmp dword [0x43dbfc], 1
je 0x41ded9
cmp ebx, 0xfc
je 0x41df0c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4415f8
push ebp
call fcn.00425e8b
add esp, 0xc
test eax, eax
je 0x41ddf7
push esi
push esi
push esi
push esi
push esi
call fcn.0041f4cf
add esp, 0x14
push 0x104
mov esi, 0x441611
push esi
push 0
mov byte [0x441715], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41de3b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00425e8b
add esp, 0xc
test eax, eax
je 0x41de3b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041f4cf
add esp, 0x14
push esi
call fcn.00425e00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41de80
push esi
call fcn.00425e00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44190c
push 0x4330dc
sub ecx, eax
push ecx
push eax
call fcn.00425d40
add esp, 0x14
test eax, eax
je 0x41de80
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041f4cf
add esp, 0x14
jmp 0x41de82
xor esi, esi
push 0x4330d8
push ebx
push ebp
call fcn.00425ccf
add esp, 0xc
test eax, eax
je 0x41dea2
push esi
push esi
push esi
push esi
push esi
call fcn.0041f4cf
add esp, 0x14
push dword [edi*8 + 0x43ddb4]
push ebx
push ebp
call fcn.00425ccf
add esp, 0xc
test eax, eax
je 0x41dec4
push esi
push esi
push esi
push esi
push esi
call fcn.0041f4cf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00425b12
add esp, 0xc
jmp 0x41df0c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41df0c
cmp ebp, 0xffffffff
je 0x41df0c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43ddb4]
push dword [esi]
call fcn.00425e00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret