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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x480d50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b236
cmp word [esi], dx
jne 0x41b236
or byte [edi + eax + 0x28], 4
jmp 0x41b23b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b38e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b36e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b27d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b2b3
cmp eax, edx
jae 0x41b2bf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b255
jmp 0x41b38e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b36a
cmp dword [ebp - 0x14], 0
je 0x41b36a
mov eax, dword [ebx*4 + 0x480d50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b342
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b30b
mov word [esi], cx
jmp 0x41b33e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480d50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480d50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480d50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b38e
pop ebx
cmp word [ebp - 4], bx
jne 0x41b353
cmp esi, dword [ebp + 0xc]
jne 0x41b353
mov word [esi], bx
jmp 0x41b38b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b38e
push 0xd
jmp 0x41b387
mov ecx, dword [ebx*4 + 0x480d50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b385
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b38e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40359a
Capabilities:
Create thread
Inject thread

Disassembly:
push dword [0x51a754]
pop dword [0x51a7cc]
mov edx, dword [0x51a744]
push dword [0x51aee4]
call fcn.004123e0
lea ecx, [0x51a72c]
pop edx
call fcn.00405000
push dword [0x51a72c]
call fcn.004052d0
mov ebx, eax
inc ebx
mov dword [0x51a804], ebx
push dword [0x51a7cc]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x51a7c8], eax
cmp dword [0x51a7c8], 0
je 0x403722
push 4
push 0x1000
push dword [0x51a804]
push 0
push dword [0x51a7c8]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x51a7e0], eax
cmp dword [0x51a7e0], 0
je 0x403717
push 0x51a6e8
push dword [0x51a804]
push dword [0x51a72c]
push dword [0x51a7e0]
push dword [0x51a7c8]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x51a6e8]
cmp ebx, dword [0x51a804]
jl 0x4036fb
push str.Kernel32.dll
push 0
call fcn.00406ad0
and eax, eax
je 0x4036fb
push 0x414187
push 0
call fcn.00406b20
mov dword [0x51a79c], eax
push 0
call fcn.00406a50
cmp dword [0x51a79c], 0
je 0x4036fb
push 0
push 0
push dword [0x51a7e0]
push dword [0x51a79c]
push 0
push 0
push dword [0x51a7c8]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x51a750], eax
cmp dword [0x51a750], 0
je 0x4036fb
push 0xffffffff
push dword [0x51a750]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x51a7f0
push dword [0x51a750]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x51a804]
push dword [0x51a7e0]
push dword [0x51a7c8]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x51a7c8]
call sub.KERNEL32.dll_CloseHandle
push dword [0x51a744]
call fcn.00411a90
mov dword [0x51a7f0], eax
ret

Function at 0x4062de
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x4062f8
push dword [ebp + 8]
push 0x406270
call sub.USER32.dll_EnumWindows
jmp 0x40632f
mov edi, dword [0x517d10]
jmp 0x40632b
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x406329
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x517d10
call fcn.00412340
add esp, 8
mov edi, esi
or edi, edi
jne 0x406300
pop edi
pop esi
pop ebp
ret 4
Function at 0x407c80
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x407cb6
push edi
call fcn.004076b4
pop ecx
cmp byte [edi + 0x40], 0
je 0x407caf
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x407d6b
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x407d3a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x407d2f
cmp dword [edi + 8], 0
je 0x407cdd
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x407d6b
cmp dword [ebp - 4], 2
je 0x407d2f
cmp dword [edi + 8], 0
je 0x407ccb
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x407d0c
cmp eax, 1
jne 0x407ccb
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x407ccb
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x407ccb
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x407d5f
cmp dword [edi + 0x14], 0xcc
je 0x407d5f
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.00407d70
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407d70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x407db2
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x407db2
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x407d9e
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c89a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x40c8cb
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0040f31d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.0040f2c0
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x40c907
push ebx
call fcn.0040f320
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.0040bc78]
mov dword [esi], eax
lea eax, [fcn.0040bdb7]
mov dword [esi + 4], eax
lea eax, [fcn.0040be66]
mov dword [esi + 8], eax
lea eax, [fcn.0040bf3a]
mov dword [esi + 0xc], eax
lea eax, [0x40c01b]
mov dword [esi + 0x10], eax
lea eax, [0x40c088]
mov dword [esi + 0x14], eax
lea eax, [0x40c0f5]
mov dword [esi + 0x18], eax
lea eax, [0x40c493]
mov dword [esi + 0x1c], eax
lea eax, [0x40c5e3]
mov dword [esi + 0x20], eax
lea eax, [fcn.0040c73a]
mov dword [esi + 0x24], eax
lea eax, [0x40c866]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x40c979
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x40c9e9
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x40c9e9
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x40c9d5
cmp al, 0x4d
jne 0x40c9df
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41193a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x4119d3
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4119d3
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4119d3
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4119d3
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x4119d3
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x4119d3
xor eax, eax
jmp 0x4119fe
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x4119fc
dec eax
push eax
push dword [0x51b0e0]
call fcn.00412112
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x4119fe
xor eax, eax
pop edi
leave
ret 4

Function at 0x411aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x411acf
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x411d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.004125c0
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x51b0f0]
call fcn.00412112
mov dword [ebp - 8], eax
or eax, eax
je 0x411eaf
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x411de8
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00411ed0
mov dword [ebp - 0xc], eax
jmp 0x411dfe
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x411e0a
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x411e31
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.004125c0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x411e4d
cmp dword [ebp - 0xc], 0
je 0x411e4d
cmp eax, 0xd
je 0x411e4d
cmp eax, 0xa
jne 0x411dc8
cmp byte [ebp - 1], 0
je 0x411eaf
dec edi
cmp byte [ebp - 1], 0xd
jne 0x411eaf
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x411e73
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00411ed0
jmp 0x411e89
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x411eaf
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x411e9f
add eax, 0xc
inc dword [eax]
jmp 0x411eaf
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.00412630
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x411ef5
push edi
call fcn.00411aa0
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x411f4a
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x411f18
cmp eax, 2
je 0x411f21
cmp eax, 4
je 0x411f2c
jmp 0x411f35
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x411f42
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x411f42
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x411f42
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x411fc9
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x411f89
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x411fc9
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x411fb0
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x412003
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x412064
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x412027
cmp eax, 2
je 0x412033
cmp eax, 4
je 0x412041
jmp 0x41204d
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x41205c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x41205c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x41205c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x41209e
push edi
call fcn.00411aa0
cmp esi, dword [edi + 8]
jl 0x412082
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x41209e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x586b0225
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4d38731a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4033d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040c3d0
mov eax, dword [0x2b9cbbc]
mov ecx, dword [0x2b9cb30]
shr eax, 3
test eax, eax
jbe 0x403502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403420
cmp dword [0x2b9cbbc], 0x959
jne 0x4034e4
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1820]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d2c
push 0x402d3c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403220
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x40904b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444a00]
jne 0x409055
repz ret
jmp fcn.0040b31c

Function at 0x40aa6e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405dad
and dword [ebp - 4], 0
cmp dword [0x445d88], 0
mov ebx, eax
jne 0x40ab1f
push 0x402c0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40abd0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c00
push edi
call esi
test eax, eax
je 0x40abd0
push eax
call fcn.00405d3b
mov dword [esp], 0x402bf0
push edi
mov dword [0x445d88], eax
call esi
push eax
call fcn.00405d3b
mov dword [esp], 0x402bdc
push edi
mov dword [0x445d8c], eax
call esi
push eax
call fcn.00405d3b
mov dword [esp], 0x402bc0
push edi
mov dword [0x445d90], eax
call esi
push eax
call fcn.00405d3b
pop ecx
mov dword [0x445d98], eax
test eax, eax
je 0x40ab1f
push 0x402ba8
push edi
call esi
push eax
call fcn.00405d3b
pop ecx
mov dword [0x445d94], eax
mov eax, dword [0x445d94]
cmp eax, ebx
je 0x40ab77
cmp dword [0x445d98], ebx
je 0x40ab77
push eax
call fcn.00405db6
push dword [0x445d98]
mov esi, eax
call fcn.00405db6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab77
test edi, edi
je 0x40ab77
call esi
test eax, eax
je 0x40ab6e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab6e
test byte [ebp - 0xc], 1
jne 0x40ab77
or dword [ebp + 0x10], 0x200000
jmp 0x40abb0
mov eax, dword [0x445d8c]
cmp eax, ebx
je 0x40abb0
push eax
call fcn.00405db6
pop ecx
test eax, eax
je 0x40abb0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40abb0
mov eax, dword [0x445d90]
cmp eax, ebx
je 0x40abb0
push eax
call fcn.00405db6
pop ecx
test eax, eax
je 0x40abb0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d88]
call fcn.00405db6
pop ecx
test eax, eax
je 0x40abd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40abd2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dac0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049abf7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40db42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004984be
mov eax, dword [eax]
push 0x5e6ca4
push eax
call fcn.0048a734
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049ae82
test bl, bl
je 0x40db42
push 0x5e6ca4
lea ecx, [esp + 0xc]
call fcn.0049b212
push 0x5e6cb0
lea ecx, [esp + 0xc]
call fcn.0049b212
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40db7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049ae82
jmp 0x40dc49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40dc02
lea edx, [esp + 0x7c]
push 0x5e6cac
push edx
call fcn.0048a734
add esp, 8
test eax, eax
je 0x40dc02
lea eax, [esp + 0x7c]
push 0x5e6ca8
push eax
call fcn.0048a734
add esp, 8
test eax, eax
je 0x40dc02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40db92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049ae82
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e4a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc