joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033ee2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002a9d0
mov eax, dword [0x10073014]
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.10042c61
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10033f24
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10034080
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100547f0
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 + 0x100749c8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100451e1
mov ecx, dword [esi*4 + 0x100749c8]
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 0x10034079
cmp eax, dword [edi + ecx + 0x24]
jne 0x10034079
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 0x10034079
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100451e1
add esp, 0x14
test edx, edx
jl 0x10034079
jg 0x10033fef
test eax, eax
jb 0x10034079
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10034079
jl 0x10034009
cmp dword [ebp - 0x1008], eax
ja 0x10034079
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10034027
test ebx, ebx
je 0x10034060
cmp ecx, edi
jae 0x10034060
mov al, byte [ecx]
cmp al, 0xd
jne 0x10034041
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003404d
cmp byte [ecx + 1], 0xa
jne 0x1003404d
inc ecx
jmp 0x1003404d
movzx eax, al
movsx eax, byte [eax + 0x10073288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10034027
cmp edx, ebx
jne 0x10034027
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003407e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002989d
leave
ret

Function at 0x10042592
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f1a8
push 0x1005f1a0
push str.FlsAlloc
push 0x1e
call fcn.100423ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100425c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005b19c]
call esi
jmp 0x100425cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10042610
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005f1b8
push 0x1005f1b0
push str.FlsGetValue
push 0x20
call fcn.100423ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042647
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005b19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100430b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10042f25

Function at 0x1004417e
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 + 0x100749c8]
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 0x100441be
cmp byte [ebx], 0xa
jne 0x100441be
or byte [eax + edi + 0x28], 4
jmp 0x100441c3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100442c1
mov al, byte [edx]
cmp al, 0x1a
je 0x100442a3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100441f2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10044217
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10044221
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 0x100441d4
jmp 0x100442c1
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 0x1004429e
cmp dword [ebp - 0xc], 0
je 0x1004429e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100749c8]
test byte [eax + edi + 0x28], 0x48
je 0x10044278
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10044263
mov byte [esi], dl
jmp 0x10044274
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100749c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100442c1
cmp byte [ebp - 1], 0xa
jne 0x10044287
cmp esi, ebx
jne 0x10044287
mov byte [esi], 0xa
jmp 0x100442c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100451ff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100442c1
mov byte [esi], 0xd
jmp 0x100442c0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100749c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100442bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100442c1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100442ca
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 + 0x100749c8]
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 0x1004430d
cmp word [esi], dx
jne 0x1004430d
or byte [edi + eax + 0x28], 4
jmp 0x10044312
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 0x1004444b
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 0x1004442b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10044354
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004438a
cmp eax, edx
jae 0x10044396
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 0x1004432c
jmp 0x1004444b
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 0x10044427
cmp dword [ebp - 0x14], 0
je 0x10044427
mov eax, dword [ebx*4 + 0x100749c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100443ff
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10044445
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100749c8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100749c8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100749c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10044448
pop ebx
cmp word [ebp - 4], bx
jne 0x10044410
cmp esi, dword [ebp + 0xc]
jne 0x10044410
mov word [esi], bx
jmp 0x10044448
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100451ff
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1004444b
push 0xd
jmp 0x10044444
mov ecx, dword [ebx*4 + 0x100749c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10044442
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004444b
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 0x1004d139
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004d1d6
push ebx
push esi
call fcn.1004d102
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10049759
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004d183
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004d1d5
push edi
push eax
call fcn.100430bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004d1a3
call fcn.10042124
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004d1d4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10049759
add esp, 0x20
test eax, eax
jne 0x1004d1c2
push edi
call fcn.10042124
jmp 0x1004d1ca
push ebx
call fcn.10042124
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1004d1d9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004d1ea
pop esi
ret
push ebx
push edi
push esi
call fcn.1004d102
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100430bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004d212
push ebx
push esi
push edi
call fcn.1002b570
add esp, 0xc
push 0
call fcn.10042124
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004d95e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004d485
Function at 0x10052139
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100520b5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100522b1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100522b1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10052260
jg 0x10052192
test eax, eax
je 0x10052256
push 1
push 0x1000
call fcn.100420c7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100521b8
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1005224d
push 0x8000
push ebx
call fcn.10051fe6
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100521e4
jg 0x100521df
cmp ecx, 0x1000
jb 0x100521e4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10045c69
add esp, 0x10
cmp eax, 0xffffffff
je 0x10052229
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100521df
jl 0x10052210
test ecx, ecx
jne 0x100521d1
push dword [ebp - 0xc]
push ebx
call fcn.10051fe6
push esi
call fcn.10042124
add esp, 0xc
xor edi, edi
jmp 0x100522c2
cmp byte [edi + 0x24], 0
je 0x10052240
cmp dword [edi + 0x20], 5
jne 0x10052240
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005224b
mov edi, dword [edi + 0x18]
jmp 0x1005224d
xor edi, edi
push esi
call fcn.10042124
pop ecx
jmp 0x100522c2
test ecx, ecx
jg 0x10052222
jl 0x10052260
test eax, eax
jae 0x10052222
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100451ff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10052283
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10052222
jmp 0x100522ba
push ebx
call fcn.100505a1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10052222
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100522c2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100522bf
mov edi, dword [edi + 0x18]
jmp 0x100522c2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100451ff
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10054710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005473d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005473d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f562
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f568
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00416000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00416000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00416000
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.00416000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.00416000
mov edx, dword [esp]
push dword [0x46d924]
push edx
call fcn.0042bb20
lea eax, [0x46ccd0]
push eax
call fcn.0042baa0
mov edx, dword [esp + 4]
push dword [0x46d924]
push edx
call fcn.0042bb20
lea eax, [0x46cdd8]
push eax
call fcn.0042baa0
mov edx, dword [esp + 8]
push dword [0x46d924]
push edx
call fcn.0042bb20
lea eax, [0x46cccc]
push eax
call fcn.0042baa0
mov edx, dword [esp + 0xc]
push dword [0x46d924]
push edx
call fcn.0042bb20
lea eax, [0x46ccec]
push eax
call fcn.0042baa0
mov edx, dword [esp + 0x10]
push dword [0x46d924]
push edx
call fcn.0042bb20
lea eax, [0x46cd18]
push eax
call fcn.0042baa0
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [esp + 0x14], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
lea eax, [0x4141c7]
push eax
push 5
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x46cc90], eax
push dword [0x46d924]
push 0x26
push dword [0x46d924]
push dword [0x46d924]
push 0x5dc
call fcn.00428500
add dword [0x46d924], 2
push dword [0x46d924]
push dword [0x46d924]
push 0x5dc
call fcn.00428500
add dword [0x46d924], 2
push dword [esp + 0x34]
mov edx, dword [0x4699d0]
add dword [esp + 4], edx
mov edx, dword [0x4699d0]
add dword [esp + 8], edx
call sub.USER32.DLL_MessageBoxW
pop dword [0x46d924]
jmp 0x40f6e1
push dword [esp]
call fcn.0042bb80
push dword [esp + 8]
call fcn.0042bb80
push dword [esp + 0xc]
call fcn.0042bb80
push dword [esp + 0x10]
call fcn.0042bb80
push dword [esp + 4]
call fcn.0042bb80
add esp, 0x1c
pop ebx
ret 0x18
Function at 0x419f6a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x419fbf
push dword [esp + 0x10]
push 0x419ee9
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x46d070]
test esi, esi
je 0x41a018
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x419fb7
cmp byte [esi + 0x10], 0
je 0x419fb7
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x419f93
jmp 0x41a018
mov esi, dword [0x46d070]
test esi, esi
je 0x41a018
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41a011
cmp byte [esi + 0x11], 0
je 0x419fed
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41a004
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x46d070
call fcn.0042a0d6
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x419fcc
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x41a0bb
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x46d93c]
call fcn.00429903
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41a1bb
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41a111
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41a109
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41a151
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41a193
push 0x22
pop edx
cmp cx, dx
je 0x41a143
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41a133
xor ecx, ecx
cmp word [eax], cx
je 0x41a193
mov ecx, eax
add eax, 2
jmp 0x41a195
test dx, dx
je 0x41a19b
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41a143
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41a189
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41a193
cmp cx, dx
je 0x41a186
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41a176
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41a15b
jmp 0x41a143
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41a19d
xor edx, edx
cmp dword [ebp], ebx
jne 0x41a1a6
test edi, edi
jne 0x41a1c3
test edx, edx
je 0x41a1ab
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41a0ff
test edi, edi
jne 0x41a1d4
mov eax, ebx
jmp 0x41a1d8
test esi, esi
je 0x41a1d4
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41a1d8
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41a9ac
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x41aa5b
cmp dword [esp + 0x24], 2
je 0x41aa5b
push 0x2000
push edi
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41aa2e
cmp dword [esp + 0x18], 2
jne 0x41aa46
test ebx, ebx
jne 0x41aa17
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41aa46
cmp ax, 0xd
je 0x41aa2e
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41a9ee
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0044f3d0
jmp 0x41aae1
push eax
push 0
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41aaad
cmp dword [esp + 0x18], 1
jne 0x41aac5
test ebx, ebx
jne 0x41aa9c
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41aac5
cmp al, 0xd
je 0x41aaad
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41aa74
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41aadc
call fcn.0044f420
jmp 0x41aae1
call fcn.0044f5d0
push esi
push 0
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41aefa
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x41af5c
cmp word [esi], di
je 0x41af5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0043ace0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.0043af90
add esp, 0x10
test eax, eax
jne 0x41af5b
push 0x24
push 8
push dword [0x46cc58]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x41be77
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x41bfbf
xor ecx, ecx
cmp word [eax], cx
je 0x41bfbf
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x41bed0
cmp eax, 3
jne 0x41bf0a
cmp word [esp + 0xa], 0x3a
jne 0x41bf0a
cmp eax, 2
jne 0x41beee
lea eax, [esp + 8]
push 0x4510dc
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41bfbf
push 0xfffffffffffffffe
pop edi
jmp 0x41bfbf
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x41bf1f
cmp ax, bx
jne 0x41bf29
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x41bf12
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41bf68
test byte [esp + 0x21c], 0x10
je 0x41bf4f
push 0xfffffffffffffffe
pop edi
jmp 0x41bf5f
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41bfbd
cmp word [esp + 0x10], bp
jne 0x41bf76
cmp word [esp + 0x12], bp
je 0x41bf95
cmp word [esp + 0x10], bx
jne 0x41bf84
cmp word [esp + 0x12], bx
je 0x41bf95
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41bfbd
cmp word [esp + 0x12], ax
jne 0x41bfbd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41bfaa
test al, 0x10
je 0x41bfbd
jmp 0x41bfba
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41bfbd
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4