joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009efa8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f001
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009efa8
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009efb7
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a4c5a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009f008
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10085e7e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f0a7
add edi, 4
add eax, 2
dec ecx
jne 0x1009efed
call 0x1009f054
loope 0x1009f04a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f0a4
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009f0b5
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009f068
cmp eax, ecx
ja 0x1009f068
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f0f2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f0e8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1008635d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1009efb7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f001
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009efa8
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009efb7
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a4c5a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009f008
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10085e7e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f0a7
add edi, 4
add eax, 2
dec ecx
jne 0x1009efed
call 0x1009f054
loope 0x1009f04a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f0a4
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009f0b5
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009f068
cmp eax, ecx
ja 0x1009f068
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f0f2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f0e8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1008635d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
mov ebx, ecx
add ecx, 0x28
sub esp, 0x3c
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov byte [ebp - 0x1c], 0
mov dword [esp + 4], edi
mov dword [esp], 0x1000
mov dword [ebp - 0x2c], ecx
call fcn.004c7732
mov edx, dword [ebx + 0x28]
push eax
push eax
mov eax, dword [ebx + 0x2c]
sub eax, edx
add edx, esi
sub eax, esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
mov edx, eax
inc eax
jne 0x403e08
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x1c], 0
call fcn.004c7732
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, 0x2733
je 0x403e55
cmp eax, 0x2738
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
je 0x403e3a
mov dword [esp + 4], str.error_while_reading_err
mov dword [esp], 0x569500
call fcn.004c8bb5
mov edi, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004c8d08
mov dword [esp], eax
call fcn.004c8fa3
jmp 0x403e55
test edx, edx
jne 0x403e3a
mov eax, dword [ebx]
mov ecx, edi
mov esi, dword [eax + 0x14]
mov dword [esp], str.peer_closed_connection
call fcn.004c664a
mov ecx, ebx
push edx
mov dword [esp + 4], edi
mov dword [esp], 0
call esi
push ecx
push ecx
mov ecx, edi
call fcn.004c641a
jmp 0x403e55
add esi, edx
mov dword [esp + 4], edi
mov dword [esp], esi
mov byte [ebp - 0x1c], 0
call fcn.004c7732
mov ecx, ebx
push eax
push eax
call fcn.004035da
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40418e
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov ebx, ecx
sub esp, 0x40
cmp dword [ecx + 0x3c], 0xffffffff
je 0x4041dd
mov ecx, dword [ecx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [ebx + 0x3c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x3c], 0xffffffff
push eax
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [ebp - 0x1c]
mov dword [ebx + 0x6c], 0
sub esp, 0xc
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x68], 0
mov dword [ebp - 0x1c], 1
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
je 0x40424e
mov dword [esp + 4], str.could_not_make_socket_broadcast
jmp 0x404286
lea edx, [ebp - 0x18]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov word [ebp - 0x18], 2
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
inc eax
jne 0x40429c
mov dword [esp + 4], str.could_not_bind_socket
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
jmp 0x4042c7
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

Function at 0x4042ce
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x28]
push ebx
mov edi, esi
mov ebx, ecx
mov ecx, 4
sub esp, 0x3c
rep stosd dword es:[edi], eax
or eax, 0xffffffff
cmp byte [ebx + 0x60], 0
mov word [ebp - 0x28], 2
jne 0x404300
imul eax, dword [ebx + 0x64], 0xc
add eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp], 0x5051
call dword [sym.imp.WS2_32.dll_htons]
push edx
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, eax
sub esp, 0x18
mov al, 1
test edx, edx
jg 0x40436c
mov dword [esp + 4], str.sendto_failed
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x404f52
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov eax, 0x805c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004cba40
sub esp, eax
lea ebx, [ebp - 0x8018]
lea eax, [ebp - 0x8034]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], 2
mov dword [ebp - 0x8034], 0x8000
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
test eax, eax
jne 0x4050fc
mov ax, word [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
lea ecx, [ebp - 0x802a]
mov dword [ebp - 0x802a], edx
mov word [ebp - 0x8026], ax
call fcn.004c9fcc
test al, al
jne 0x4050f1
cmp dword [ebx + 0x8c], 0
je 0x4050f1
mov eax, dword [ebx + 4]
mov dword [esp], 0x569500
mov dword [esp + 4], eax
call fcn.004c8c02
mov dword [esp + 4], 0x523289
mov dword [esp], eax
call fcn.004c8bb5
mov edx, dword [ebx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
mov eax, dword [ebx + 0x8c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
xor eax, eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x8030], edx
xor edx, edx
cmp edx, ecx
je 0x405040
shr eax, 1
inc edx
or eax, 0x80000000
jmp 0x405032
mov dword [esp], eax
lea edi, [ebp - 0x8024]
call dword [sym.imp.WS2_32.dll_htonl]
push edx
not eax
or dword [ebp - 0x8030], eax
mov dword [esp + 4], 0x52328c
mov dword [esp], 0x569500
call fcn.004c8bb5
lea edx, [ebp - 0x8030]
mov ecx, edi
mov dword [esp], edx
mov dword [ebp - 0x803c], eax
call fcn.004ca020
mov edx, dword [ebp - 0x8024]
mov eax, dword [ebp - 0x803c]
push ecx
mov ecx, dword [edx]
add edx, 4
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004c8bd2
mov ecx, edi
mov dword [ebp - 0x803c], eax
call fcn.004c641a
mov eax, dword [ebp - 0x803c]
mov dword [esp], eax
call fcn.004c8fa3
mov eax, dword [ebp - 0x802a]
mov dword [esp], edi
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], eax
mov ax, word [ebp - 0x8026]
mov word [ebp - 0x8020], ax
mov eax, dword [ebp - 0x8030]
mov dword [ebp - 0x801c], eax
call fcn.0050d6ec
push edi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404fab
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x40], eax
jne 0x405133
lea eax, [ebp - 0x8024]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], 0xffffffff
mov dword [esp], eax
mov word [ebp - 0x8020], 0xffff
mov dword [ebp - 0x801c], 0xffffffff
call fcn.0050d6ec
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43fea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0x200
jne 0x43ff5c
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x43ff9f
mov eax, dword [esi]
mov dword [esp], eax
call method.IWindow.findWindow_HWND___
mov ebx, eax
test eax, eax
je 0x43ff9f
mov ecx, eax
call method.IWindow.getTopParent__
mov ecx, eax
test eax, eax
je 0x43ff9f
mov eax, dword [eax]
mov dword [esp], 0x68
call dword [eax + 0x5c]
mov dword [ebp - 0x2c], eax
push edx
test eax, eax
je 0x43ff9f
mov eax, dword [esi + 0xc]
lea edi, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call method.Point.Point_long_
push ecx
mov ecx, ebx
mov dword [esp], edi
call method.IWindow.toScreen_Point_const_
mov ecx, dword [ebp - 0x2c]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call method.IWindow.fromScreen_Point_const_
mov ecx, dword [ebp - 0x2c]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [esp], edi
call fcn.0043eb7e
or eax, edx
push edi
je 0x43ff9f
mov ecx, dword [ebp - 0x2c]
call method.IWindow.captureCursor__
jmp 0x43ffe8
and eax, 0xfffffffb
cmp eax, 0x100
jne 0x43ff9f
cmp dword [0x568b50], 0
je 0x43ff9f
mov dword [esp], 0x12
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
push edx
test ax, ax
js 0x43ff9f
mov eax, dword [esi + 8]
cmp eax, 0x73
je 0x43ffd9
ja 0x43ff9a
cmp eax, 2
je 0x43ffd9
cmp eax, 9
je 0x43ffa3
jmp 0x43ff9f
cmp eax, 0x75
je 0x43ffb2
xor eax, eax
jmp 0x43ffea
mov dword [esp], 0x11
call edi
push ebx
test ax, ax
jns 0x43ff9f
mov ecx, dword [0x568b50]
mov dword [esp], 0x10
mov dword [ebp - 0x2c], ecx
call edi
mov ecx, dword [ebp - 0x2c]
push edx
cwde
not eax
shr eax, 0x1f
mov dword [esp], eax
call fcn.0043fdc6
push ecx
jmp 0x43ffe8
test bl, bl
jne 0x43ff9f
mov ecx, dword [0x568b50]
call fcn.0043de84
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402467
Capabilities:
Parse pe header

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

Function at 0x407204
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416040]
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 0x40724f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040741f
test al, al
jne 0x407249
sub edx, 2
cmp edx, edi
jne 0x40722f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407271
lea eax, [edi + 2]
cmp edx, eax
je 0x407271
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407150
add esp, 0x10
jmp 0x407369
push esi
lea ecx, [ebp - 0x255]
call fcn.0040741f
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4072b2
push dword [ebp - 0x25c]
jmp 0x407261
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 0x4072ef
cmp word [ebp - 0x226], 0
je 0x407310
cmp word [ebp - 0x226], ax
jne 0x4072ef
cmp word [ebp - 0x224], 0
je 0x407310
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407150
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40735c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4072c9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x407344
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407369
push 0x406f80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a3a0
add esp, 0x10
jmp 0x407339
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.00401ebe
leave
ret
Function at 0x10019fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x1001bf78]
xor eax, edx
dec ecx
jne 0x10019fd9
ret

Function at 0xd47d68
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd47d72
pushal
call 0xd47d78
pop ebp
sub ebp, 0x10
sub ebp, 0x947d68
jmp 0xd47d8e
mov eax, 0x947d68
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0x93f8b505
xor byte [eax], dl
inc eax
dec ecx
jne 0xd47da5
jmp 0xd47db8
mov cs, eax
mov cs, word [ecx + edi - 0x7bfafafb]
invalid
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10048b4c
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], 0xa4a8ec4a
call fcn.10045be2
inc eax
invalid
Function at 0x4064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4da720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x406547
test ebx, ebx
je 0x406547
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x406547
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x406547
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x406541
push esi
push ebx
push edi
call fcn.00469b30
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x406541
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f213
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f213
mov esp, ebp
pop ebp
ret

Function at 0x406560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4065b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4065aa
cmp esi, edx
jae 0x4065b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406598
cmp esi, edx
jae 0x4065b9
cmp word [esi], 0
je 0x4065b9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x409240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6818
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4da720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0045ef1f
mov edi, eax
add esp, 4
test edi, edi
je 0x4092e3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042ecbe
add esp, 4
mov dword [edi + 4], eax
jmp 0x4092e5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403510
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x409345
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x409345
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x409369
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40938b
cmp byte [ebp + 0xc], 0
je 0x409378
push esi
call fcn.0042f1e5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x409397
mov esi, str.ios_base::badbit_set
jmp 0x4093a7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004093d0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004041b0
push 0x4ccb10
lea eax, [ebp - 0x30]
push eax
call fcn.0046970f
int3
Function at 0x40bcf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x40bd13
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x40bd31
nop
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x40bd20
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x40bd6a
cmp ecx, eax
jne 0x40bd62
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esi + edx + 4], ecx
jmp 0x40bd72
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x40bd72
cmp ecx, eax
jne 0x40bd72
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
lea ecx, [ebx + 4]
mov edi, dword [eax]
push eax
mov dword [edx], edi
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
dec dword [ecx + 4]
call fcn.00419fa0
mov eax, dword [ebp - 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8