joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c0e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x468b2c]
cmp byte [eax + 0xc], 0
je 0x43c255
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c24e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469b64], 0
jne 0x43c13c
push 0x43c25c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c264
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b64], eax
cmp dword [0x467bbc], 0
jne 0x43c237
push 0x43c274
call sub.kernel32.dll_LoadLibraryA
mov dword [0x467bbc], eax
cmp dword [0x467bbc], 0
je 0x43c237
push 0x43c280
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b68], eax
push 0x43c290
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b6c], eax
push 0x43c2a4
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b70], eax
push 0x43c2bc
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b74], eax
push 0x43c2d4
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b78], eax
push 0x43c2e8
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b7c], eax
push 0x43c300
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b80], eax
push 0x43c318
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b84], eax
push 0x43c334
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b88], eax
push 0x43c340
mov eax, dword [0x467bbc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c255
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4400fc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e34
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44014b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004040a4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447888
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4478d8]
test si, 4
je 0x44789c
or bl, 1
test si, 8
je 0x4478a6
or bl, 4
test si, 1
je 0x4478b0
or bl, 8
test si, 2
je 0x4478ba
or bl, 0x10
test si, 0x10
je 0x4478c4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4478d3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4478dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447914]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4478f5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447904
or bl, 4
test esi, 0x20000000
je 0x44790f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44dfbc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dfce
add esp, 0xfffffff0
call fcn.00403408
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190d4
mov eax, dword [0x4687f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e360
mov eax, dword [0x4687fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e36c
mov eax, ebx
call fcn.0044e378
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44a794
push eax
push 0
push 0
mov eax, dword [0x468944]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ab18]
call fcn.0041bf5c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ab18]
call fcn.0041bf5c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ab18]
call fcn.0041bf5c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e798
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e674
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e674
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e674
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e10b
call fcn.00403460
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e458
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e603
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e5e4
mov dl, 1
mov eax, dword [0x4117e8]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e34
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e5d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c448
test al, al
je 0x44e5c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e614
lea eax, [ebp - 0x254]
call fcn.00408934
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e5c6
xor eax, eax
push ebp
push 0x44e5bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e64c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e5a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040a4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e5a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e5c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e4c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e60a
lea eax, [ebp - 0x260]
call fcn.00403e34
ret

Function at 0x44ef38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x469bb0]
cmp byte [eax + 0xa5], 0
jne 0x44efa9
cmp dword [0x469bc8], 0
jne 0x44ef6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44eef4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bc8], eax
cmp dword [0x469bc4], 0
jne 0x44ef85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bc4], eax
cmp dword [0x469bcc], 0
jne 0x44efa9
push esp
push 0
push 0
push 0x44ee98
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469bcc], eax
pop edx
ret
Function at 0x44f0a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f0b7
add esp, 0xfffffff0
call fcn.00403408
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190d4
mov eax, dword [0x468930]
cmp word [eax + 2], 0
jne 0x44f0df
mov eax, dword [0x468930]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450778
mov eax, dword [0x4689dc]
cmp word [eax + 2], 0
jne 0x44f0f9
mov eax, dword [0x4689dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450970
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113cc]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b2c8]
call fcn.00420f10
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f280
mov eax, dword [0x468858]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450f10
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x468858]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf70
test eax, eax
je 0x44f1ee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408328
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf98
test eax, eax
je 0x44f202
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040a4
mov eax, dword [0x468754]
cmp byte [eax], 0
jne 0x44f236
mov eax, ebx
call fcn.0044f3a8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004510ec
mov eax, ebx
call fcn.00451ab0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f276
call fcn.00403460
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f628
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bb0]
cmp dword [eax + 0x30], 0
je 0x44f6d2
cmp dword [ebx + 0x94], 0
jne 0x44f6cc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f5b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f6cc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f692
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f6cc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413734
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f6a1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450234
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450269
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f24
jmp 0x450276
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e88
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4512c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451309
mov eax, esi
call fcn.00437bbc
test al, al
je 0x451309
mov eax, dword [ebx + 0x84]
call fcn.004378b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451309
push 0
mov eax, dword [ebx + 0x84]
call fcn.004378b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402460
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0x51
push 0
push 0
push 0xfffff830
push 0xfffff830
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x98], 0
jne 0x402506
lea eax, [esp]
push eax
push 0
push esi
push 0x402700
push 0
push 0
call fcn.0040aa78
add esp, 0x18
mov dword [esi + 0x98], eax
test eax, eax
je 0x402506
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ecx
ret
Function at 0x402510
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x9c]
cmp eax, 0xc8
jb 0x40269c
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov esi, 0x421954
call fcn.00402cb0
lea ebx, [edi + 0x90]
call fcn.00409460
test eax, eax
je 0x40269c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x9c], eax
mov ebx, dword [0x421960]
mov esi, dword [0x421958]
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x2a
jge 0x402586
lea esi, [ebx - 0x2a]
mov dword [0x421958], esi
mov ecx, dword [0x421954]
mov eax, dword [0x42195c]
sub eax, ecx
sub eax, ebx
add eax, esi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov edx, ecx
sub edx, esi
add edx, ebx
mov dword [0x42195c], edx
mov dword [0x421954], ecx
mov eax, dword [edi + 0xbc]
sub ebx, esi
imul eax, ebx
cdq
idiv dword [edi + 0xc0]
sub esp, 0x10
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, dword [esp + 0x20]
lea edx, [ecx + eax]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [0x421954], ecx
mov ecx, dword [0x421960]
mov dword [eax + 8], edx
mov esi, edi
mov dword [0x42195c], edx
mov dword [eax + 0xc], ecx
call fcn.00402930
test al, al
je 0x402611
xor edx, edx
jmp 0x402615
mov edx, dword [esp + 0x14]
mov eax, dword [0x421958]
mov ecx, dword [0x421960]
mov esi, dword [0x42195c]
push 0x58
sub ecx, eax
push ecx
mov ecx, dword [0x421954]
sub esi, ecx
push esi
push eax
push ecx
push edx
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
xor eax, eax
sub esp, 0x10
mov dword [0x421958], eax
mov dword [0x421954], eax
mov dword [esp + 0x24], esp
mov eax, esp
push 0x421954
push eax
mov dword [0x421960], ebx
mov dword [0x42195c], ecx
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b20
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
push 1
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402520
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x9c]
cmp eax, 0x1f4
jb 0x4026cd
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
push 0
push 0
push 0x4c8
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x402520
sub esp, 0x10
mov dword [esp + 0x24], esp
mov eax, esp
push 0x421954
push eax
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402520
Function at 0x402800
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x417e98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407ae0
add esp, 4
mov ebx, 0x41af8c
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.00403070
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x402888
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040a57a
add esp, 4
mov ebx, str..exe
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00403070
cmp dword [esp + 0x28], edi
jb 0x4028c0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040a57a
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4028ce
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4028f8
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4028e7
lea eax, [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], edi
jb 0x40290b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040a57a
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040a585
add esp, 0x48
ret
Function at 0x4029a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029c5
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
push eax
call fcn.0040c5a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
xor edi, edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402b0c
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x402b0c
push eax
push ebx
call fcn.00401420
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebx + 0x18], 0x20
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x402b03
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x402b03
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x402af2
mov eax, dword [ebx + 0x18]
imul eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebx + 0x14]
imul edx, ebp
mov ecx, eax
sar ecx, 3
add ecx, edx
add ecx, dword [ebx + 8]
mov eax, 0x80808081
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
add esi, 0x7f
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x14]
mov byte [ecx + 2], al
jl 0x402a63
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0xc], ecx
jl 0x402a57
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret
Function at 0x4039f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x417bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41f280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.00403070
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403a43
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00403ad0
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00403070
cmp dword [esp + 0x24], 8
jb 0x403a8d
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a57a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x403d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d67
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403d98
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403d94
cmp esi, eax
jae 0x403d98
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403d84
cmp esi, eax
jb 0x403d9e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x404ef0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x41f280]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.004052b0
xor eax, eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
mov dword [esp + 0x10], esi
push 2
mov eax, 0x41af8c
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.00404b10
mov ecx, esi
mov ebx, 0x41b2b4
lea esi, [esp + 0x14]
call fcn.004039f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00403070
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x404f7c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040a57a
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x404f8a
lea eax, [esp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404fe1
mov edx, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x42166c
push 0x67
push edi
mov dword [0x421664], edi
mov dword [0x421668], edx
call esi
push 0x64
push 0x421734
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00405030
call fcn.004048b0
mov esi, eax
jmp 0x404fe5
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405210
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x48], 8
jb 0x405011
mov eax, dword [esp + 0x34]
push eax
call fcn.0040a57a
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a585
mov esp, ebp
pop ebp
ret 0x10