joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b1f4
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 0x44b39f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b380
mov dl, 1
mov eax, dword [0x41162c]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b36f
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.00439228
test al, al
je 0x44b362
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, 0x44b3b0
lea eax, [ebp - 0x254]
call fcn.00408778
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b362
xor eax, eax
push ebp
push 0x44b35b
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 0x44b3e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b344
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
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 0x44b344
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b362
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b265
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415108
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 0x44b3a6
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

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

Disassembly:
push ecx
mov eax, dword [0x451bb0]
cmp byte [eax + 0xa5], 0
jne 0x44bd45
cmp dword [0x451bc8], 0
jne 0x44bd06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bc90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451bc8], eax
cmp dword [0x451bc4], 0
jne 0x44bd21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x451bc4], eax
cmp dword [0x451bcc], 0
jne 0x44bd45
push esp
push 0
push 0
push 0x44bc34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451bcc], eax
pop edx
ret
Function at 0x44be3c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44be53
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418f18
mov eax, dword [0x44ff48]
cmp word [eax + 2], 0
jne 0x44be7b
mov eax, dword [0x44ff48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d514
mov eax, dword [0x44fff0]
cmp word [eax + 2], 0
jne 0x44be95
mov eax, dword [0x44fff0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d70c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411210]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411210]
call fcn.004030a8
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 [0x41b0ec]
call fcn.00420d34
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c01c
mov eax, dword [0x44fe6c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421104
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44dcac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fe6c]
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.0040bdb4
test eax, eax
je 0x44bf8a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040816c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bddc
test eax, eax
je 0x44bf9e
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.00404080
mov eax, dword [0x44fd70]
cmp byte [eax], 0
jne 0x44bfd2
mov eax, ebx
call fcn.0044c144
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.0044de88
mov eax, ebx
call fcn.0044e84c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c012
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c3c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451bb0]
cmp dword [eax + 0x30], 0
je 0x44c46e
cmp dword [ebx + 0x94], 0
jne 0x44c468
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c354
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c468
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 0x44c42e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c468
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.00413578
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c43d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44cfd0
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 0x44d005
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.00403f00
jmp 0x44d012
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e064
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e0a5
mov eax, esi
call fcn.004348e8
test al, al
je 0x44e0a5
mov eax, dword [ebx + 0x84]
call fcn.00434610
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e0a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434610
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x288c8c3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add edi, eax
stc
movzx ecx, word [edi + ecx*2]
sar di, cl
rol di, cl
lea edi, [ebx + 0x5e673034]
movsx di, al
mov edi, dword [edx + 0x1c]
add esp, 0x20
je 0x158f095
cmp cl, ah
add edi, eax
cmp ecx, 0x4952fe73
jmp 0x288c8f0
jmp 0x28889e8
pushal
jmp 0x158e62b
lea esp, [esp + 0x20]
jb 0x2887d5a
jle 0x288f3fd
cmp byte [edi - 1], 0
jmp 0x1587f2a
push 0x6369a616
pushal
pushfd
lea esp, [esp + 0x24]
jmp 0x289093b
stc
pushal
stc
add edi, eax
stc
mov edi, dword [edi + ecx*4]
cmp sp, 0x27dc
cmp al, bh
stc
test edi, edi
call fcn.0158e7f0
aas
cdq
loop 0x158f09a
stosb byte es:[edi], al
or al, 0xd8
invalid
pushfd
lea esp, [esp + 4]
jne 0x158d819
bsf di, cx
mov edi, dword [edx + 0x24]
pushal
jmp 0x1587b32
mov eax, dword [esp + 0x40]
mov word [esp + 8], 0x9fa
lea esp, [esp + 0x44]
ja 0x25e585b
jmp 0x158807a
cmc
cmp byte [edi - 1], 0
pushal
lea esp, [esp + 0x20]
jne 0x158d819
bts di, 4
mov edi, dword [edx + 0x24]
stc
cmp di, cx
cmc
jmp 0x289031d
add edi, eax
bt di, 5
movzx ecx, word [edi + ecx*2]
pushfd
mov edi, dword [edx + 0x1c]
test cl, 0xf0
call fcn.0288fac7
jmp 0x158e9b6
Function at 0x40618e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4061b2
xor eax, eax
test eax, eax
je 0x4061c4
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4061c4
xor ecx, ecx
jmp 0x4061c7
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406271
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43e2c4], 0
push esi
jne 0x4062a8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406282
mov dword [ecx*4 + 0x43e2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40627d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4062d9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43e2c0]
xor eax, esi
inc ecx
dec edx
jne 0x4062bb
pop edi
not eax
pop esi
ret 0xc

Function at 0xdce8c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdce8d2
pushal
call 0xdce8d8
pop ebp
sub ebp, 0x10
sub ebp, 0x9ce8c8
jmp 0xdce8ee
mov eax, 0x9ce8c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0xca02be8d
xor byte [eax], dl
inc eax
dec ecx
jne 0xdce905
jmp 0xdce918
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
mov dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp - 0x22b77173]
fucom st(5)
xchg ecx, eax
imul ebp, dword [ebp + ecx*4 - 0x970de1b], 0xffffff8d
mov word [ecx + 0x20b0e5a9], fs
invalid
Function at 0x1015aab
Capabilities:
Get disk information

Disassembly:
push 0x44
mov eax, 0x1018243
call fcn.01011f3e
and dword [ebp - 4], 0
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xff
push 0xb
push 0x183
mov ebx, 0x10076e4
push ebx
mov edi, 0x10076d4
push edi
mov esi, 0x1007688
push esi
call fcn.01012994
lea ecx, [ebp - 0x50]
call fcn.01013ba7
push dword [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
push 0x1007618
sub esp, 0x58
mov dword [ebp - 0x10], esp
xor eax, eax
mov word [ecx], ax
mov ecx, esp
push 0xff
push 0xb
push 0x18b
push ebx
push edi
push esi
mov byte [ebp - 4], 1
call fcn.01012994
lea eax, [ebp - 0x50]
push eax
call fcn.010138f0
add esp, 0x64
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1015b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x64]
lea eax, [ebp + 8]
push 0x1003f80
push dword [ebp + 0x60]
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0x64], esp
push eax
call fcn.010129e0
lea eax, [ebp - 0x50]
push eax
call fcn.010143db
push dword [ebp + 0x68]
push 0x1007590
sub esp, 0x58
mov ecx, esp
mov dword [ebp + 0x64], esp
push 0xff
push 0xb
push 0x193
push ebx
push edi
push esi
call fcn.01012994
lea eax, [ebp - 0x50]
push eax
call fcn.010138f0
add esp, 0x64
lea ecx, [ebp - 0x50]
call fcn.01013c60
lea ecx, [ebp + 8]
call fcn.01012a44
call fcn.0101202a
ret 0x68

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x403ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
test eax, eax
jg 0x403f1b
jl 0x403f0e
test ecx, ecx
jne 0x403f1b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
mov edi, ecx
je 0x403ff4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, ebx
call fcn.00420c40
mov ecx, edx
mov esi, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jl 0x403f8b
jg 0x403f4b
test esi, esi
je 0x403f8b
mov eax, dword [esp + 0xc]
cmp eax, ecx
jg 0x403f5f
jl 0x403f59
cmp edi, esi
jae 0x403f5f
mov esi, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x18]
call fcn.004732a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
sub edi, esi
sbb ecx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x403fae
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403fdd
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
adc ecx, 0xffffffff
add eax, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jg 0x403f32
jl 0x403fe1
test edi, edi
jne 0x403f32
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
sbb edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x404043
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x14], edx
mov eax, dword [eax]
test eax, eax
je 0x40404a
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.004732a0
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x10]
jmp 0x40404d
lea eax, [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x4040b7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404077
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x4040a2
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00479f28
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4040b7
cmp edi, eax
ja 0x404080
test edi, edi
je 0x4040b7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00479f28
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40afa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498ed0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51a900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00471a9a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00470caa
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.00406820
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x5234d8]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x5234dc]
mov dword [ebx], 0
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x414c76
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.00417bc0
cmp eax, 0x3b9aca00
jge 0x414c86
mov dword [esp + 4], eax
jmp fcn.00417bc0
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret
Function at 0x418270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41828d
xorps xmm3, xmm3
mov eax, 6
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00417bc0
cmp eax, 0x3b9aca00
jge 0x4182a4
xorps xmm3, xmm3
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00417bc0
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret
Function at 0x424a90
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x51a900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [0x52356c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x424afa
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x424afa
push 0x50b4d8
push eax
call esi
mov dword [0x52356c], eax
test eax, eax
jne 0x424afa
xor bl, bl
jmp 0x424c17
test edi, edi
je 0x424b35
cmp edi, 0xffffffff
je 0x424b35
push str.NtOpenFile
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
test eax, eax
je 0x424b35
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov cl, byte [eax + 4]
push 0
push 5
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor al, al
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x31], al
lea eax, [ebp + 8]
push eax
call fcn.00422340
mov eax, dword [ebp - 0x20]
push 4
push 0x3000
lea esi, [eax*2 + 2]
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x424bca
cmp dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x30]
push 0
cmova ecx, dword [ebp - 0x30]
push esi
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x424bbb
push 0
push 0
push ebx
push dword [0x52356c]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x424bbb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
sete al
mov byte [ebp - 0x31], al
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x424c00
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x424bf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424c6b
push ecx
push edx
call fcn.00471a87
add esp, 8
mov bl, byte [ebp - 0x31]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x424c4d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x424c43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424c6b
push ecx
push edx
call fcn.00471a87
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471a79
mov esp, ebp
pop ebp
ret
call fcn.0047699f
int3
Function at 0x425da0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x425def
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x425db2
mov eax, dword [esi]
jmp 0x425ed5
cmp eax, 0x4e0
jb 0x425ed5
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x425e10
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x425e60
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret