joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d00c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403655
cmp word [0x40f208], 0xd7b2
jne 0x40361d
cmp dword [0x40f210], 0
jbe 0x40361d
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x710c5f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7109ec
add edx, ecx
inc ecx
add edx, ecx
call fcn.00710c95
sub ecx, edx
inc ecx
xor dword [ebx], eax
mov edx, edx
inc ebx
add ecx, 0xeb68dab2
inc edx
dec edx
cmp ebx, esi
jne fcn.00710c5f
add edx, edx
sub ecx, ecx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5e4c6ab5
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x41720ca5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x404ecc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x404fe4
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x404f4c
sub edx, 4
js 0x404fe4
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x43b7b0]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x43b7b0]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x43b7b0]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + 0x43b7b0]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x404ee4
sub edi, 1
je 0x404fa8
sub edi, 1
jne 0x404fdd
sub edx, 3
js 0x404fe4
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x43b7b0]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x43b7b0]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x43b7b0]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x404fe4
mov byte [esi + 3], 0x3d
jmp 0x404fda
sub edx, 2
js 0x404fe4
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x43b7b0]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x43b7b0]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x404fe4
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x404fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401c94
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401cd3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401cd3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cd3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401cd3
cmp dword [ecx + 0x74], 0xe
jbe 0x401cd3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408bca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4168f4
push 0x4168ec
push str.FlsAlloc
push 0x1f
call fcn.00408aa8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bfe
push dword [ebp + 8]
mov ecx, esi
call dword [0x41512c]
call esi
jmp 0x408c04
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408c48
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416904
push 0x4168fc
push str.FlsGetValue
push 0x21
call fcn.00408aa8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41512c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408c87
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41690c
push 0x416904
push str.FlsSetValue
push 0x22
call fcn.00408aa8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408cc1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41512c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b10f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b15a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b32c
test al, al
jne 0x40b154
sub edx, 2
cmp edx, edi
jne 0x40b13a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b17c
lea eax, [edi + 2]
cmp edx, eax
je 0x40b17c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040b05b
add esp, 0x10
jmp 0x40b276
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b32c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b1bf
push dword [ebp - 0x25c]
jmp 0x40b16c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b1fc
cmp word [ebp - 0x226], 0
je 0x40b21d
cmp word [ebp - 0x226], ax
jne 0x40b1fc
cmp word [ebp - 0x224], 0
je 0x40b21d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040b05b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b269
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b1d6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b251
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b276
push 0x40ae8b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004107f0
add esp, 0x10
jmp 0x40b246
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401494
leave
ret

Function at 0x40be34
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40be45
pop esi
ret
push ebx
push edi
push esi
call fcn.0040bdfd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00409379
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40be6d
push ebx
push esi
push edi
call fcn.00402f70
add esp, 0xc
push 0
call fcn.00408955
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40c23d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040be82
Function at 0x413c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44a830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x43000]
push edi
or ebp, 0xffffffff
jmp 0x44a852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44a859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44a848
mov eax, 1
add ebx, ebx
jne 0x44a86b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44a87c
jne 0x44a89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44a89b
dec eax
add ebx, ebx
jne 0x44a888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44a860
add ebx, ebx
jne 0x44a897
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44a8ed
xor ecx, ecx
sub eax, 3
jb 0x44a8b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44a922
sar eax, 1
mov ebp, eax
jmp 0x44a8be
add ebx, ebx
jne 0x44a8be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44a88c
inc ecx
add ebx, ebx
jne 0x44a8cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44a88c
add ebx, ebx
jne 0x44a8d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44a8ce
jne 0x44a8ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44a8ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44a90c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44a8fe
jmp 0x44a84e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44a90c
add edi, ecx
jmp 0x44a84e
pop esi
mov edi, esi
mov ecx, 0x260
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44a92a
cmp byte [edi], 3
jne 0x44a92a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44a92f
lea edi, [esi + 0x47000]
mov eax, dword [edi]
or eax, eax
je 0x44a99e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x759d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x75b28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44a95c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x75b30]
or eax, eax
je 0x44a998
mov dword [ebx], eax
add ebx, 4
jmp 0x44a979
call dword [esi + 0x75b2c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x44a9cf
cmp al, 0xef
ja 0x44a9c2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x44a9a4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x44a9b1
mov ebp, dword [esi + 0x75b34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44aa03
sub esp, 0xffffff80
jmp 0x408a92
Function at 0x458ba4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x503584]
cmp dword [eax + 0x30], 0
je 0x458c4e
cmp dword [ebx + 0x94], 0
jne 0x458c48
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458b34
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458c48
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 0x458c0e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458c48
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.00418e60
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458c1d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459968
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45999d
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.00404914
jmp 0x4599aa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404878
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ad0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ad7a
mov eax, esi
call fcn.0044559c
test al, al
je 0x45ad7a
mov eax, dword [ebx + 0x84]
call fcn.00445240
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ad7a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45ad6e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445240
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043d5b0
jmp 0x45ad7a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045ab48
pop esi
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402a50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402a85
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b68
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402b4a
mov edi, dword [ebp + 8]
nop dword [eax]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ac0
sub ecx, edx
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x402ad3
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, ecx
jne 0x402b35
lea esi, [ebp - 0x108]
sub eax, 4
jb 0x402af6
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x402afb
add edx, 4
add esi, 4
sub eax, 4
jae 0x402ae5
cmp eax, 0xfffffffc
je 0x402b2f
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x402b28
cmp eax, 0xfffffffd
je 0x402b2f
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x402b28
cmp eax, 0xfffffffe
je 0x402b2f
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x402b28
cmp eax, 0xffffffff
je 0x402b2f
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x402b2f
sbb eax, eax
or eax, 1
jmp 0x402b31
xor eax, eax
test eax, eax
je 0x402b64
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ab0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b68
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b68
mov esp, ebp
pop ebp
ret
Function at 0x4030d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40318c
cmp byte [esi + 0x3d], 0
je 0x40318c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40317a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403141
sub eax, 1
je 0x403145
sub eax, 2
jne 0x40317a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b68
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403163
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40317a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b68
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405b68
mov esp, ebp
pop ebp
ret
Function at 0x404920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x404941
jl 0x404937
test esi, esi
jne 0x404941
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404958
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x404994
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x404a08
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x4049bc
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4049f6
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404a08
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4049d0
test ecx, ecx
je 0x404a08
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
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
pop ebp
ret 0xc
Function at 0x404a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x404a45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x404ad7
jg 0x404a6b
test esi, esi
je 0x404ad7
test ecx, ecx
jl 0x404aba
jg 0x404a75
test eax, eax
je 0x404aba
cmp edi, ecx
jg 0x404a85
jl 0x404a7f
cmp esi, eax
jae 0x404a85
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
test edi, edi
jl 0x404ad7
jg 0x404aba
test esi, esi
je 0x404ad7
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x404ad7
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40633a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406379
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406379
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406379
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406379
cmp dword [ecx + 0x74], 0xe
jbe 0x406379
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov eax, dword [0x41a5a8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push esi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 4]
mov esi, eax
push ecx
push esi
mov dword [esp + 0xc], 0x224
call sub.KERNEL32.dll_Module32First
lea esp, [esp]
lea edx, [esp + 0x24]
push edi
push edx
call fcn.004123fb
add esp, 8
test eax, eax
je 0x40107f
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x224
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401040
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004055a3
add esp, 0x228
ret
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.004055a3
add esp, 0x228
ret

Function at 0x4010a0
Capabilities:
Enumerate pe sections

Disassembly:
movzx ecx, word [eax + 0x14]
push esi
push edi
movzx edi, word [eax + 6]
xor esi, esi
test edi, edi
lea ecx, [ecx + eax + 0x18]
jbe 0x4010d5
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4010be
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x4010cb
add edx, eax
cmp ebx, edx
jb 0x4010da
add esi, 1
add ecx, 0x28
cmp esi, edi
jb 0x4010b4
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, dword [esp + 8]
pop esi
ret