joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14f9a68
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.014e706b
xor ebx, ebx
cmp dword [0x15a5c94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x14f9b3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x14f9c1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x15235b8
push edi
call esi
cmp eax, ebx
je 0x14f9c1e
push eax
call fcn.014e6ffd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x15a5c94], eax
call esi
push eax
call fcn.014e6ffd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x15a5c98], eax
call esi
push eax
call fcn.014e6ffd
mov dword [0x15a5c9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.014eb3ab
test eax, eax
pop ecx
pop ecx
je 0x14f9b0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.014e5273
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x14f9b3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.014e6ffd
cmp eax, ebx
pop ecx
mov dword [0x15a5ca4], eax
je 0x14f9b3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.014e6ffd
pop ecx
mov dword [0x15a5ca0], eax
mov eax, dword [0x15a5ca0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x14f9bc3
cmp dword [0x15a5ca4], ecx
je 0x14f9bc3
push eax
call fcn.014e7074
push dword [0x15a5ca4]
mov esi, eax
call fcn.014e7074
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x14f9bc3
cmp edi, ebx
je 0x14f9bc3
call esi
cmp eax, ebx
je 0x14f9b90
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x14f9b90
test byte [ebp - 0x18], 1
jne 0x14f9bc3
lea eax, [ebp - 0x10]
push eax
call fcn.014eb45a
test eax, eax
pop ecx
je 0x14f9bab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.014e5273
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x14f9bba
or dword [ebp + 0x10], 0x200000
jmp 0x14f9bfe
or dword [ebp + 0x10], 0x40000
jmp 0x14f9bfe
mov eax, dword [0x15a5c98]
cmp eax, dword [ebp - 8]
je 0x14f9bfe
push eax
call fcn.014e7074
cmp eax, ebx
pop ecx
je 0x14f9bfe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x14f9bfe
mov eax, dword [0x15a5c9c]
cmp eax, dword [ebp - 8]
je 0x14f9bfe
push eax
call fcn.014e7074
cmp eax, ebx
pop ecx
je 0x14f9bfe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x15a5c94]
call fcn.014e7074
cmp eax, ebx
pop ecx
je 0x14f9c1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x14f9c20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x4ca194c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x7a5231bd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x407450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4248d6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi], vtable.CVolObject.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 1
mov dword [esi], vtable.CVolMem.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0x40
mov dword [ebp - 4], 0
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], 1
test eax, eax
jne 0x4074f1
cmp dword [edx + 0x24], eax
je 0x407601
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x407601
cmp word [eax], 0
je 0x407601
push 0x42c7a0
push eax
call fcn.00415ce8
mov edi, eax
add esp, 8
test edi, edi
je 0x4075c8
push 2
push 0
push edi
call fcn.004133d4
push edi
call fcn.00416726
push 0
push 0
push edi
mov ebx, eax
call fcn.004133d4
add esp, 0x1c
test ebx, ebx
jle 0x4075bf
cmp dword [esi + 0xc], 0
je 0x40754a
push ebx
mov ecx, esi
call fcn.0040d460
jmp 0x407593
mov ecx, dword [esi + 0x18]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, ebx
cdq
idiv ecx
mov eax, dword [esi]
sub ecx, edx
add ecx, ebx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
push ecx
cmp eax, method.CWString.virtual_0
jne 0x407583
mov ecx, 0x432c98
call fcn.0040df00
test eax, eax
je 0x407617
jmp 0x407587
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
push edi
push ebx
push 1
push eax
call fcn.00416053
push edi
mov ebx, eax
call fcn.004167eb
add esp, 0x14
test eax, eax
jne 0x4075bf
push ebx
mov ecx, esi
call fcn.0040d460
push edi
call fcn.00412bbd
add esp, 4
jmp 0x407601
push edi
call fcn.00412bbd
add esp, 4
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4075ec
mov eax, dword [esi]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x4075e8
mov ecx, 0x432c98
call fcn.0040dff0
jmp 0x4075ec
mov ecx, esi
call eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.00412354
int3
Function at 0x40b3d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42549b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x43100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x432c90], 0x42c6ec
mov dword [0x432c98], 0x42c854
push 0
mov dword [ebp - 0x14], 0x432c90
mov dword [0x432cac], 1
mov dword [0x432ca8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x40b67e
lea eax, [ecx + 0x400000]
mov dword [0x432ca4], ecx
mov dword [0x432ca0], eax
mov edx, 0x1555
mov eax, dword [0x432ca8]
mov dword [0x432c9c], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x432ca8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x432ca8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x432ca8]
add ecx, eax
sub edx, 1
jne 0x40b464
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x432cb0
mov dword [ebp - 0x18], 0x432cb0
mov dword [ebp - 0x1c], 0x432cb0
mov dword [0x432cb0], 0x42bec0
mov dword [0x432cb4], edx
mov dword [0x432cb8], edx
mov byte [ebp - 4], 1
mov dword [0x432cb0], 0x42be5c
mov dword [0x432cbc], edx
mov dword [0x432cc4], edx
mov dword [0x432cc0], edx
mov dword [0x432cc8], 0x40
mov byte [ebp - 4], 2
mov dword [0x432cc8], 0x80
mov byte [ebp - 4], 5
mov dword [0x432ccc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x432ce0
mov dword [ebp - 0x20], 0x432ce0
call esi
mov byte [ebp - 4], 7
mov dword [0x432cf8], 0
mov byte [ebp - 4], 8
push 0x432d04
mov dword [ebp - 0x24], 0x432d04
call esi
mov byte [ebp - 4], 9
mov dword [0x432d1c], 0x3e8
mov dword [ebp - 0x28], 0x432d30
mov dword [ebp - 0x2c], 0x432d30
mov dword [0x432d30], 0x42bec0
mov dword [0x432d34], 0
mov dword [0x432d38], 0
mov byte [ebp - 4], 0xa
mov dword [0x432d30], 0x42be5c
mov dword [0x432d3c], 0
mov dword [0x432d44], 0
mov dword [0x432d40], 0
mov dword [0x432d48], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x432d48], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x432d24], 0x3e80
mov dword [0x432d28], 1
mov dword [0x432d2c], 0
lea eax, [eax*2 + 2]
mov dword [0x432d20], eax
mov byte [ebp - 4], 0xe
push 0x432d4c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x432d64
call fcn.0040aba0
mov byte [ebp - 4], 0x10
mov dword [0x432cd0], 0
mov dword [0x432d8c], 0
movsd xmm0, qword [0x42c8a8]
movsd qword [0x432cd8], xmm0
xorps xmm0, xmm0
mov dword [0x432d90], 0
mov dword [0x432d94], 0
mov dword [0x432d98], 0
mov dword [0x432cd4], 0
movq qword [0x432cfc], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x432c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00412354
int3
Function at 0x40c0d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x40c0ef
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40c1c5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40c1c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40c1bc
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x40c1a0
cmp edi, 1
jne 0x40c165
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x40c1b7
cmp edi, 2
jne 0x40c178
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x40c1b7
cmp edi, 4
jne 0x40c189
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x40c1b7
cmp edi, 8
jne 0x40c1a0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x40c1b7
test edi, edi
jle 0x40c1b7
push edi
mov ecx, esi
call fcn.0040d460
push edi
push ebx
push eax
call fcn.004119f0
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4256ed
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x43100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x40cb02
cmp word [ecx], 0
je 0x40cb02
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x7c], 0x44
test eax, eax
js 0x40c9e9
or dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], method.CWString.virtual_0
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040d510
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40ca6f
xor esi, esi
jmp 0x40ca92
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40cacd
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x40cac8
mov ecx, 0x432c98
call fcn.0040dff0
jmp 0x40cacd
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41651f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423740
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004185d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416561
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4166bd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423690
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4326d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418f99
mov ecx, dword [esi*4 + 0x4326d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4166b6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4166b6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4166b6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418f99
add esp, 0x14
test edx, edx
jl 0x4166b6
jg 0x41662c
test eax, eax
jb 0x4166b6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4166b6
jl 0x416646
cmp dword [ebp - 0x1008], eax
ja 0x4166b6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416664
test ebx, ebx
je 0x41669d
cmp ecx, edi
jae 0x41669d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41667e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41668a
cmp byte [ecx + 1], 0xa
jne 0x41668a
inc ecx
jmp 0x41668a
movzx eax, al
movsx eax, byte [eax + 0x431210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416664
cmp edx, ebx
jne 0x416664
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4166bb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ed8e
leave
ret
Function at 0x41b30e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4326d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b34e
cmp byte [ebx], 0xa
jne 0x41b34e
or byte [eax + edi + 0x28], 4
jmp 0x41b353
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b451
mov al, byte [edx]
cmp al, 0x1a
je 0x41b433
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b382
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b3a7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b3b1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b364
jmp 0x41b451
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b42e
cmp dword [ebp - 0xc], 0
je 0x41b42e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4326d8]
test byte [eax + edi + 0x28], 0x48
je 0x41b408
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b3f3
mov byte [esi], dl
jmp 0x41b404
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4326d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b451
cmp byte [ebp - 1], 0xa
jne 0x41b417
cmp esi, ebx
jne 0x41b417
mov byte [esi], 0xa
jmp 0x41b450
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418fb7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b451
mov byte [esi], 0xd
jmp 0x41b450
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4326d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b44d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b451
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b45a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4326d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b49d
cmp word [esi], dx
jne 0x41b49d
or byte [edi + eax + 0x28], 4
jmp 0x41b4a2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b5db
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b5bb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b4e4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b51a
cmp eax, edx
jae 0x41b526
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b4bc
jmp 0x41b5db
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b5b7
cmp dword [ebp - 0x14], 0
je 0x41b5b7
mov eax, dword [ebx*4 + 0x4326d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b58f
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41b5d5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4326d8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4326d8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4326d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41b5d8
pop ebx
cmp word [ebp - 4], bx
jne 0x41b5a0
cmp esi, dword [ebp + 0xc]
jne 0x41b5a0
mov word [esi], bx
jmp 0x41b5d8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418fb7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b5db
push 0xd
jmp 0x41b5d4
mov ecx, dword [ebx*4 + 0x4326d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b5d2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b5db
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bdfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bc6d

Function at 0x41c02f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428f54
push 0x428f4c
push str.FlsAlloc
push 0x1e
call fcn.0041bf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c063
push dword [ebp + 8]
mov ecx, esi
call dword [0x426274]
call esi
jmp 0x41c069
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c0ad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428f64
push 0x428f5c
push str.FlsGetValue
push 0x20
call fcn.0041bf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c0e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x426274]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c567
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43100c]
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 0x41c5b2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041c706
test al, al
jne 0x41c5ac
sub edx, 2
cmp edx, edi
jne 0x41c592
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41c5d4
lea eax, [edi + 2]
cmp edx, eax
je 0x41c5d4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041c4b3
add esp, 0x10
jmp 0x41c6ce
push esi
lea ecx, [ebp - 0x255]
call fcn.0041c706
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 0x41c617
push dword [ebp - 0x25c]
jmp 0x41c5c4
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 0x41c654
cmp word [ebp - 0x226], 0
je 0x41c675
cmp word [ebp - 0x226], ax
jne 0x41c654
cmp word [ebp - 0x224], 0
je 0x41c675
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041c4b3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41c6c1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41c62e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41c6a9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c6ce
push 0x41c2e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00413410
add esp, 0x10
jmp 0x41c69e
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.0040ed8e
leave
ret