joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401930
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401990
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401a90
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4019c0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a3f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019b0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ab7
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a97
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a38
sub eax, 4
and eax, 0xfffffffb
jne 0x401a46
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x4019ca
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x401f70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x401fc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fbe
test esi, esi
je 0x401fbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fa0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001559
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001594
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001590
lea ebx, [ebx]
cmp esi, eax
jae 0x10001594
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001580
cmp esi, eax
jb 0x1000159a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10004050
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x10028a4c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10037d20]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
mov edi, 1
mov dword [esp + 0x98], edi
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100040bc
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x1c], edi
call fcn.1000cbe1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100040e9
push 0x80004005
call fcn.10001a20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x98], 2
mov edx, dword [esp + 0xa4]
mov ecx, dword [edx - 8]
mov esi, dword [edx - 0xc]
xor eax, eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
mov eax, edi
sub eax, dword [edx - 4]
mov byte [esp + 0x7c], bl
or ecx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
jge 0x1000417a
push ebx
lea ecx, [esp + 0xa8]
call fcn.100019a0
mov edx, dword [esp + 0xa4]
push edx
lea ecx, [esp + 0x28]
push ecx
mov eax, esi
call fcn.10004250
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x28]
call fcn.10004310
xor esi, esi
jmp 0x100041a0
movzx eax, byte [esp + esi + 0x7c]
push eax
lea ecx, [esp + 0x1c]
push str._02x
push ecx
call fcn.10003660
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
mov ecx, ebp
call fcn.10003430
inc esi
cmp esi, 0x10
jl 0x100041a0
lea eax, [edi - 0x10]
mov byte [esp + 0x98], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100041f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], bl
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000421c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1001786c
add esp, 0x88
ret 8
Function at 0x1001786c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10037d20]
jne 0x10017876
repz ret
jmp fcn.1001bacb

Function at 0x10024c19
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001bc43
and dword [ebp - 4], 0
cmp dword [0x1003b83c], 0
mov ebx, eax
jne 0x10024cca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10024d7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002e174
push edi
call esi
test eax, eax
je 0x10024d7b
push eax
call fcn.1001bbd1
mov dword [esp], 0x1002e164
push edi
mov dword [0x1003b83c], eax
call esi
push eax
call fcn.1001bbd1
mov dword [esp], 0x1002e150
push edi
mov dword [0x1003b840], eax
call esi
push eax
call fcn.1001bbd1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003b844], eax
call esi
push eax
call fcn.1001bbd1
pop ecx
mov dword [0x1003b84c], eax
test eax, eax
je 0x10024cca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001bbd1
pop ecx
mov dword [0x1003b848], eax
mov eax, dword [0x1003b848]
cmp eax, ebx
je 0x10024d22
cmp dword [0x1003b84c], ebx
je 0x10024d22
push eax
call fcn.1001bc4c
push dword [0x1003b84c]
mov esi, eax
call fcn.1001bc4c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10024d22
test edi, edi
je 0x10024d22
call esi
test eax, eax
je 0x10024d19
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10024d19
test byte [ebp - 0xc], 1
jne 0x10024d22
or dword [ebp + 0x10], 0x200000
jmp 0x10024d5b
mov eax, dword [0x1003b840]
cmp eax, ebx
je 0x10024d5b
push eax
call fcn.1001bc4c
pop ecx
test eax, eax
je 0x10024d5b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10024d5b
mov eax, dword [0x1003b844]
cmp eax, ebx
je 0x10024d5b
push eax
call fcn.1001bc4c
pop ecx
test eax, eax
je 0x10024d5b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003b83c]
call fcn.1001bc4c
pop ecx
test eax, eax
je 0x10024d7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10024d7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x615335c4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2b5e0f7f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x4eb271
Capabilities:
Encode data using xor

Disassembly:
push cs
jmp 0xc704f172
clc
jmp 0x4eb231
in al, 0xf7
mov eax, 0x347e4bbc
push edx
test al, 0x44
xchg byte [ebx + edi*4 - 0x3bed0761], dh
pushal
jmp 0x4eb263
call 0x4eb271
sal byte [ebp + 0x2f386633], 1
xor esp, dword [esi + 0x38]
das
cli
mov ecx, 0x23735e88
test dword [edi - 0x23], edx
dec eax
inc esi
add dword [edi - 0x78], ebx
jae 0x4eb26a
cmp byte [ebx + 0x2ced1057], 0x1c
mov dh, 0x58
adc al, 0x29
jg 0x4eb2f8
mov esi, 0xe908a9ae
jl 0x4eb220
movsd dword es:[edi], dword [esi]
outsb dx, byte [esi]
sbb ebp, dword [ebp + 0x18]
add esi, 0xffffff70
jmp 0x4eb2c9
jge 0x4eb2e7
les eax, [ebp - 0x1670d9ba]
or eax, dword [esp + ebp + 0x6d]
mov cl, 0xfd
inc eax
scasb al, byte es:[edi]
mov cl, 0xf5
mov bl, 0x8b
mov esi, 0xa8d96c23
daa
pop ebx
pop eax
sbb ch, 0xbd
out 0xfd, al
xor bl, byte [ebx - 0x6ffc17d]
cmp dword [esi], 0
stc
jmp 0x4eb2f5
inc ebx
add esi, edx
sahf
pop ds
cld
jne 0x4eb33d
movsd dword es:[edi], dword [esi]
out dx, al
pop esi
pushfd
in eax, 0xee
je 0x4eb49e
add dword [eax], eax
add byte [edx + 0x1e], dh
jb 0x4eb31b
jmp 0x4eb2a6
mov edi, esi
jmp 0x4eb332
add esi, 4
jmp 0x4eb34b
bound ebx, qword [ebp + 0x2b]
mov dl, 0xbd
imul ebp, ecx, 0xa0181f0f
fstp qword [eax]
inc edi
mov edx, dword [esi]
jmp 0x4eb372
add edx, esi
jmp 0x4eb394
mov eax, dword [esi + 4]
jmp 0x4eb3ba
sub dword [edx], 0x5db8cf06
jmp 0x4eb3d1
add edx, 4
jmp 0x4eb3eb
sub eax, 1
jmp 0x4eb3fe
jne 0x4eb397
jmp 0x4eb419
add esi, 8
jmp 0x4eb442
sub dword [edi], 1
clc
jmp 0x4eb44e
jne 0x4eb335
jmp 0x4eb470
mov ebx, esi
jmp 0x4eb499
call 0x4eb4cf
jmp 0x4eb4b5
popal
jmp 0x4eb4ca
jmp 0x4cb77a

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4f4639c5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x74c85c27
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x6fe815aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
jmp 0x6fe8165f
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [esp], eax
call fcn.6fe814db
cmp dword [ebp + 0xc], eax
jne 0x6fe8165b
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x24]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x6fe8166a
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x6fe81614
cmp dword [ebp - 4], 0
je 0x6fe81686
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x6fe81689
mov eax, dword [ebp - 4]
leave
ret

Function at 0x6ff49bb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6ff4a700
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6ff4a700
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6ff49c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6ffe507c]
test esi, esi
jle 0x6ff49d30
mov eax, dword [0x6ffe5080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6ff49c44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6ff49cc7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6ff49c30
mov dword [esp], ebx
call fcn.6ff4a400
mov edi, eax
test eax, eax
je 0x6ff49d57
mov eax, dword [0x6ffe5080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6ff4a540
mov edx, dword [0x6ffe5080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6ff49d37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6ff49cc0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6ff49cd0
add dword [0x6ffe507c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6ffe5080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6ff49cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6ff49bb0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6ff49c4e
mov eax, dword [0x6ffe5080]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6ff49bb0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6ff49bb0
lea esi, [esi]
nop

Function at 0x6ff4a070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6ffe508c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6ffe5084]
sub esp, 4
test ebx, ebx
je 0x6ff4a0c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6ff4a0be
test esi, esi
je 0x6ff4a0be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ff4a0a0
mov dword [esp], 0x6ffe508c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6ff4a400
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6fe80000], 0x5a4d
jne 0x6ff4a425
mov ecx, dword [0x6fe8003c]
cmp dword [ecx + 0x6fe80000], 0x4550
lea edx, [ecx + 0x6fe80000]
je 0x6ff4a430
ret
cmp word [ecx + 0x6fe80018], 0x10b
jne 0x6ff4a425
push esi
movzx eax, word [ecx + 0x6fe80014]
push ebx
movzx esi, word [ecx + 0x6fe80006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6fe80000
test si, si
je 0x6ff4a478
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6ff4a46e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6ff4a47a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6ff4a460
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000404d
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x10040434
call fcn.1002bcb4
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1002b345
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x10004097
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x10004083
mov dword [esi + 0x10], edi
jmp 0x10004099
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x1000408f
push esi
jmp 0x10004090
push edi
call dword [eax]
mov dword [esi + 0x10], eax
jmp 0x10004099
xor esi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push 0x100040d9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.1001ea79
mov eax, edi
jmp 0x100040d3
call fcn.1002bd59
ret
Function at 0x10005574
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10053060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, ecx
call fcn.1000549f
lea ecx, [ebp - 0x80]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x100055ef
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.1002d190
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
jmp 0x100055f4
push 0x1004792c
call fcn.10002214
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002ada2
add ebp, 0x190
leave
ret

Function at 0x1000780a
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x1004485a
call fcn.1002bc81
push 0xb8
call fcn.1002b345
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000784d
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.10007181
jmp 0x1000784f
xor eax, eax
push esi
push esi
push eax
push 0x10007283
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1002bd59
ret 0x20
Function at 0x1000cca3
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x10053060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x1000cea4
test eax, eax
jne 0x1000ccf3
test ecx, ecx
je 0x1000cea4
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x1000cd4e
cmp ax, 0x5c
je 0x1000cd4e
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.1002d190
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000cea4
test al, 0x10
je 0x1000cea4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x10048224
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x1000cea4
mov dword [esp + 0x10], 1
push 0x10048228
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000ce73
push 0x1004822c
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000ce73
cmp dword [esp + 0x28], 0xffffffff
je 0x1000ce73
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x1000ce58
cmp dword [esp + 0x14], 0
je 0x1000ce25
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x1000ce8c
cmp dword [ebp + 0xc], 0
je 0x1000ce73
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.1000cca3
push 2
pop ecx
cmp eax, ecx
jne 0x1000ce73
mov dword [esp + 0x10], ecx
jmp 0x1000ce94
cmp dword [esp + 0x18], 0
je 0x1000ce73
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1000ce8c
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000cdae
jmp 0x1000ce94
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1000cea6
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002ada2
mov esp, ebp
pop ebp
ret 0x18