joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
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
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4dfad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
jmp 0x4dfaea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4dfaf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfae0
mov eax, 1
add ebx, ebx
jne 0x4dfb03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dfb14
jne 0x4dfb33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfb33
dec eax
add ebx, ebx
jne 0x4dfb20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4dfaf8
add ebx, ebx
jne 0x4dfb2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dfb85
xor ecx, ecx
sub eax, 3
jb 0x4dfb4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dfbba
sar eax, 1
mov ebp, eax
jmp 0x4dfb56
add ebx, ebx
jne 0x4dfb56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfb24
inc ecx
add ebx, ebx
jne 0x4dfb64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfb24
add ebx, ebx
jne 0x4dfb71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dfb66
jne 0x4dfb82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dfb66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dfba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dfb96
jmp 0x4dfae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dfba4
add edi, ecx
jmp 0x4dfae6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dfbc2
cmp byte [edi], 0x11
jne 0x4dfbc2
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 0x4dfbc7
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4dfc3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe15a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe174c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dfbf4
mov ecx, edi
jns 0x4dfc23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe1754]
or eax, eax
je 0x4dfc39
mov dword [ebx], eax
add ebx, 4
jmp 0x4dfc11
call dword [esi + 0xe1750]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4dfc70
cmp al, 0xef
ja 0x4dfc63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4dfc45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4dfc52
mov ebp, dword [esi + 0xe1758]
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 0x4dfca4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x73ef54ca
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x49162915
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x510024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add al, byte [eax]
add byte [eax], al
cld
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
invalid
stc
jb 0x51002e
pop ds
xor esi, dword [ecx - 0x49]
jno 0x50ffe2
cwde
leave
jmp 0x51008f
pushal
jmp 0x510034
call 0x51003f
dec ecx
stc
mov dl, 0xed
pop ecx
pop ebx
jb 0x510049
jne 0x50ffd9
jge 0x510029
sbb dword [edx - 0x383c7edc], 0xffffffff
invalid
add ebx, 0xffffffc7
jmp 0x510058
cmp dword [ebx], 0
stc
jmp 0x510067
je 0x5100ed
jmp 0x510076
mov ecx, ebx
jmp 0x510081
add ebx, 4
jmp 0x510089
mov edx, dword [ebx]
jmp 0x510097
and eax, 0x8ced9cec
in eax, dx
cmp ebp, dword [ebx + 3]
sar ecx, cl
add edx, ebx
stc
jb 0x5100a3
mov ah, 0xb1
mov ebx, 0xc91a740d
mov eax, dword [ebx + 4]
jmp 0x5100ac
sub dword [edx], 0x3c62176a
jmp 0x5100b6
add edx, 4
jmp 0x5100bf
sub eax, 1
jmp 0x5100c6
jne 0x5100a6
jmp 0x5100d0
add ebx, 8
jmp 0x5100d7
sub dword [ecx], 1
stc
jb 0x5100de
and ecx, dword [edi]
test dword [eax + 0x72ffffff], esp
add dh, byte [ecx + 0xee83b]
add byte [eax], al
jne 0x510084
jb 0x5100e8
mov cl, 0x3b
call 0x5100fb
jmp 0x5100f1
popal
jmp 0x5100f6
jmp 0x50ed00
Function at 0xf4e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f4e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf4e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf4e06a
add dl, dl
jne 0xf4e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf4e0dc
xor eax, eax
add dl, dl
jne 0xf4e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf4e17d
add dl, dl
jne 0xf4e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf4e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf4e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf4e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf4e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf4e075
mov eax, 1
add dl, dl
jne 0xf4e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf4e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf4e0e1
sub eax, ebx
mov ebx, 1
jne 0xf4e128
mov ecx, 1
add dl, dl
jne 0xf4e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf4e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf4e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf4e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf4e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf4e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf4e136
cmp eax, 0x7d00
jae 0xf4e16d
cmp eax, 0x500
jb 0xf4e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf4e075
cmp eax, 0x7f
ja 0xf4e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf4e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf4e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf4e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1578150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 0x3c]
xor eax, eax
cmp dword [esi + edx + 0x74], 0
je 0x1578232
mov edx, dword [esi + edx + 0x78]
mov ecx, dword [esi + edx + 0x18]
test ecx, ecx
je 0x1578232
mov eax, dword [esp + 0x30]
mov ebx, dword [esi + edx + 0x20]
add ebx, esi
mov edi, dword [esi + edx + 0x1c]
add edi, esi
mov dword [esp + 0xc], edi
mov edx, dword [esi + edx + 0x24]
add edx, esi
mov dword [esp + 8], edx
movzx edx, byte [eax]
xor ebp, ebp
mov dword [esp + 4], ebx
mov byte [esp + 3], dl
mov dword [esp + 0x14], ecx
mov edx, ecx
sub edx, ebp
mov edi, edx
shr edi, 1
mov dword [esp + 0x10], ebp
add edi, ebp
mov eax, dword [ebx + edi*4]
movzx ecx, byte [esi + eax]
mov bh, cl
mov ch, byte [esp + 3]
or bh, ch
je 0x1578221
add eax, esi
mov ebp, 1
mov bh, ch
nop word cs:[eax + eax]
cmp cl, bh
jne 0x1578200
movzx ecx, byte [eax + ebp]
mov ebx, dword [esp + 0x30]
mov bh, byte [ebx + ebp]
inc ebp
mov bl, cl
or bl, bh
jne 0x15781e0
jmp 0x1578221
xor eax, eax
cmp edx, 2
jb 0x1578232
cmp cl, bh
mov ecx, dword [esp + 0x14]
cmovge ecx, edi
mov ebp, dword [esp + 0x10]
cmovl ebp, edi
cmp ebp, ecx
mov ebx, dword [esp + 4]
jne 0x15781a6
jmp 0x1578232
mov eax, dword [esp + 8]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 0xc]
add esi, dword [ecx + eax*4]
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x15782f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 0x14]
add edx, 0x14
xor eax, eax
cmp ecx, edx
je 0x15784ee
mov eax, dword [esp + 0x34]
movzx edi, word [eax]
lea ebx, [edi - 0x41]
lea esi, [edi + 0x20]
cmp bx, 0x1a
cmovae esi, edi
movdqu xmm0, xmmword [eax + 2]
movd ebx, xmm0
lea edi, [ebx + 0x20]
movdqa xmm1, xmmword [section..text]
paddw xmm1, xmm0
psubusw xmm1, xmmword [0x1578010]
pxor xmm2, xmm2
pcmpeqw xmm2, xmm1
packsswb xmm2, xmm2
pmovmskb eax, xmm2
test al, 1
cmove edi, ebx
mov dword [esp + 0x1c], edi
pextrw ebp, xmm0, 1
lea edi, [ebp + 0x20]
test al, 2
cmove edi, ebp
mov dword [esp + 0x18], edi
pextrw ebp, xmm0, 2
lea edi, [ebp + 0x20]
test al, 4
cmove edi, ebp
mov dword [esp + 0x14], edi
pextrw ebp, xmm0, 3
lea edi, [ebp + 0x20]
test al, 8
cmove edi, ebp
mov dword [esp + 0x10], edi
pextrw ebp, xmm0, 4
test al, 0x10
lea edi, [ebp + 0x20]
cmove edi, ebp
mov dword [esp + 0xc], edi
pextrw ebp, xmm0, 5
test al, 0x20
lea edi, [ebp + 0x20]
cmove edi, ebp
mov dword [esp + 8], edi
test al, 0x40
pextrw ebp, xmm0, 6
lea edi, [ebp + 0x20]
cmove edi, ebp
mov dword [esp + 4], edi
pextrw ebp, xmm0, 7
test al, 0x80
lea eax, [ebp + 0x20]
cmove eax, ebp
mov dword [esp], eax
jmp 0x15783ea
mov ecx, dword [ecx]
cmp ecx, edx
je 0x15784ec
movzx eax, word [ecx + 0x24]
test ax, ax
je 0x15783e0
add eax, 0xffffffec
cmp ax, 0xfffe
jb 0x15783e0
mov eax, dword [ecx + 0x28]
movzx ebp, word [eax]
lea ebx, [ebp - 0x41]
lea edi, [ebp + 0x20]
cmp bx, 0x1a
cmovae edi, ebp
cmp si, di
jne 0x15783e0
movzx edi, word [eax + 2]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 0x1c], bp
jne 0x15783e0
movzx edi, word [eax + 4]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 0x18], bp
jne 0x15783e0
movzx edi, word [eax + 6]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 0x14], bp
jne 0x15783e0
movzx edi, word [eax + 8]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 0x10], bp
jne 0x15783e0
movzx edi, word [eax + 0xa]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 0xc], bp
jne 0x15783e0
movzx edi, word [eax + 0xc]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 8], bp
jne 0x15783e0
movzx edi, word [eax + 0xe]
lea ebx, [edi - 0x41]
lea ebp, [edi + 0x20]
cmp bx, 0x1a
cmovae ebp, edi
cmp word [esp + 4], bp
jne 0x15783e0
movzx eax, word [eax + 0x10]
lea edi, [eax - 0x41]
lea ebx, [eax + 0x20]
cmp di, 0x1a
cmovae ebx, eax
cmp word [esp], bx
jne 0x15783e0
mov eax, dword [ecx + 0x10]
jmp 0x15784ee
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041d520
Function at 0x406f30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x60dfd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ecx]
cmp dword [edi - 0xc], 0x104
jg 0x407026
mov esi, dword [edx]
cmp dword [esi - 0xc], 0x104
jg 0x407026
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0056eeb0
push 0x20c
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0056eeb0
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0057580b
add esp, 0x24
test eax, eax
jne 0x407026
push esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0057580b
add esp, 0xc
test eax, eax
jne 0x407026
mov dword [ebp - 0x43c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x422], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x430], eax
mov eax, 0x614
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x43c]
push eax
movlpd qword [ebp - 0x42a], xmm0
mov dword [ebp - 0x438], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret
Function at 0x4081a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x60dfd4]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
push 0x250
push 0
push eax
mov edi, ecx
call fcn.0056eeb0
push 0x208
lea eax, [esp + 0x270]
push 0
push eax
call fcn.0056eeb0
push 0x208
lea eax, [esp + 0x484]
push 0
push eax
call fcn.0056eeb0
push ebx
lea eax, [esp + 0x490]
push 0x104
push eax
call fcn.0057580b
push 0x5ea0d8
lea eax, [esp + 0x49c]
push 0x104
push eax
call fcn.00575aeb
push ebx
lea eax, [esp + 0x2a0]
push 0x104
push eax
call fcn.0057580b
add esp, 0x48
lea eax, [esp + 0x260]
push 0x5eaa84
push 0x104
push eax
call fcn.00575aeb
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4083b8
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0057580b
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4083d1
mov ecx, 0x5ea0e0
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082d6
test dx, dx
je 0x4082d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4082b0
xor eax, eax
jmp 0x4082db
sbb eax, eax
or eax, 1
test eax, eax
je 0x408290
mov eax, 0x5ea0e4
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40830e
test dx, dx
je 0x40830a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40830e
add ecx, 4
add eax, 4
test dx, dx
jne 0x4082e8
xor eax, eax
jmp 0x408313
sbb eax, eax
or eax, 1
test eax, eax
je 0x408290
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.00575aeb
mov eax, dword [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x408372
lea eax, [esp + 0x260]
mov ecx, edi
push eax
call fcn.004081a0
test eax, eax
je 0x4083b1
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
jmp 0x408282
test al, 1
je 0x40838b
lea eax, [esp + 0x260]
push 0x80
push eax
call fcn.00575a79
add esp, 8
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4083b1
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
jmp 0x408282
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x4083b2
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret 4
Function at 0x4103f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4104cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4104cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4104cc
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x410464
cmp esi, ecx
jae 0x4104cc
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x410452
cmp esi, ecx
jae 0x4104cc
movzx eax, word [esi]
test ax, ax
je 0x4104cc
lfence
mov edx, dword [ebx]
mov edi, eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x410495
push edi
mov ecx, ebx
lfence
call fcn.00403b40
mov edx, dword [ebx]
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0057586f
add esp, 0x10
mov ecx, eax
call fcn.00410360
mov ecx, dword [ebx]
cmp edi, dword [ecx - 8]
jg 0x4104d7
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00403ba0
int3