joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bd5
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.0040ec10
mov eax, dword [0x283d82c]
mov ecx, dword [0x283d2b8]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403ca9
mov edi, ecx
mov ebx, eax
cmp dword [0x283d82c], 0x959
jne 0x403c99
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403770
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x40378c
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0x4037a4
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1800]
push eax
push esi
push 0x4037c8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.00403a67
add edi, 8
dec ebx
jne 0x403c01
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f62
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1404
call fcn.0040ec10
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0x986
jge 0x403fa3
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x4f4c8ec
jg 0x403fc5
inc edi
cmp edi, 0x3455969
jl 0x403f7f
cmp dword [0x283d82c], 0x400
jne 0x4040d2
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
lea eax, [esp + 0x414]
push eax
push esi
push 0x403940
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0xc18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x14]
push eax
push 0x403954
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x403970
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call fcn.004047da
pop ecx
push esi
call fcn.00404664
pop ecx
push esi
push esi
call fcn.0040479a
push esi
push esi
call fcn.00404a96
push esi
call fcn.00404ec9
add esp, 0x14
push esi
call fcn.004050ea
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404140
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404220
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404970
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404350
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404bc0
fstp st(0)
push esi
push esi
call fcn.00404d14
push esi
call fcn.0040515e
add esp, 0x14
push esi
push esi
call fcn.0040469e
push esi
push esi
call fcn.004045f4
push esi
call fcn.00404f2e
add esp, 0x14
xor edi, edi
cmp edi, 0x16d2a
jge 0x4040e3
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x404101
inc edi
cmp edi, 0x3011b
jl 0x4040d4
mov eax, dword [0x445c84]
mov dword [0x283d82c], eax
call fcn.00403cae
mov edi, 0x2ec37
cmp dword [0x283d82c], 0x51f
jne 0x40412d
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x404115
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407588
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4421f8]
jne 0x407592
repz ret
jmp fcn.0040c860
Function at 0x40ce9e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4421f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409703
and dword [ebp - 0x14], 0
cmp dword [0x45a80c], 0
mov dword [ebp - 0x18], eax
jne 0x40cf51
push 0x402e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cff9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402e28
push ebx
call edi
test eax, eax
je 0x40cff9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402e18
push ebx
mov dword [0x45a80c], eax
call edi
push eax
call esi
push 0x402e04
push ebx
mov dword [0x45a810], eax
call edi
push eax
call esi
push 0x402de8
push ebx
mov dword [0x45a814], eax
call edi
push eax
call esi
mov dword [0x45a81c], eax
test eax, eax
je 0x40cf51
push 0x402dd0
push ebx
call edi
push eax
call esi
mov dword [0x45a818], eax
mov eax, dword [0x45a818]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cfaa
cmp dword [0x45a81c], ecx
je 0x40cfaa
push eax
call esi
push dword [0x45a81c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cfaa
test ebx, ebx
je 0x40cfaa
call edi
test eax, eax
je 0x40cfa1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cfa1
test byte [ebp - 8], 1
jne 0x40cfaa
or dword [ebp + 0x10], 0x200000
jmp 0x40cfdd
mov eax, dword [0x45a810]
cmp eax, dword [ebp - 0x18]
je 0x40cfdd
push eax
call esi
test eax, eax
je 0x40cfdd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cfdd
mov eax, dword [0x45a814]
cmp eax, dword [ebp - 0x18]
je 0x40cfdd
push eax
call esi
test eax, eax
je 0x40cfdd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45a80c]
call esi
test eax, eax
je 0x40cff9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cffb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407588
leave
ret
Function at 0x101120d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101122bd
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc4000]
push edi
jmp 0x101120fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10112101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101120f0
mov eax, 1
add ebx, ebx
jne 0x10112113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10112124
jne 0x10112143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10112143
dec eax
add ebx, ebx
jne 0x10112130
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10112108
add ebx, ebx
jne 0x1011213f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10112195
xor ecx, ecx
sub eax, 3
jb 0x1011215b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101121ca
sar eax, 1
mov ebp, eax
jmp 0x10112166
add ebx, ebx
jne 0x10112166
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10112134
inc ecx
add ebx, ebx
jne 0x10112174
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10112134
add ebx, ebx
jne 0x10112181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10112176
jne 0x10112192
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10112176
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101121b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101121a6
jmp 0x101120f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101121b4
add edi, ecx
jmp 0x101120f6
pop esi
mov edi, esi
mov ecx, 0x4b1e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101121d2
cmp byte [edi], 0x22
jne 0x101121d2
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 0x101121d7
lea edi, [esi + 0x10b000]
mov eax, dword [edi]
or eax, eax
je 0x1011224f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x112ebc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x112fc0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10112204
mov ecx, edi
jns 0x10112233
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 + 0x112fc4]
or eax, eax
je 0x10112249
mov dword [ebx], eax
add ebx, 4
jmp 0x10112221
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10112280
cmp al, 0xef
ja 0x10112273
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10112255
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10112262
mov ebp, dword [esi + 0x112fc8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x101122b4
sub esp, 0xffffff80
jmp 0x10091645
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x509a7a4d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x7d1e15a6
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d1a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40d1ca
jl 0x40d1c1
test edi, edi
jne 0x40d1ca
xor eax, eax
xor edx, edx
jmp 0x40d28b
cmp dword [ebx + 0x38], 0
je 0x40d1df
push eax
push edi
push dword [ebp + 8]
call fcn.0040d291
jmp 0x40d28b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40d226
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d226
cmp eax, edi
jb 0x40d200
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00430110
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40d22c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40d280
mov ecx, ebx
call fcn.0040c866
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40d26b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0045b0fb
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40d280
jmp 0x40d23e
test edx, edx
je 0x40d280
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0045b0fb
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41f585
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41f5a8
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41f596
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42ddbd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045e0f3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42ddfc
sub eax, 1
je 0x42ddf7
sub eax, 1
je 0x42ddf3
xor eax, eax
leave
ret
push 3
jmp 0x42ddfe
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42f623
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f662
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f662
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f662
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f662
cmp dword [ecx + 0x74], 0xe
jbe 0x42f662
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46df7b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48ea6c
push 0x48ea64
push str.FlsAlloc
push 0x1e
call fcn.0046dc4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46dfaf
push dword [ebp + 8]
mov ecx, esi
call dword [0x48920c]
call esi
jmp 0x46dfb5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46dff9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48ea7c
push 0x48ea74
push str.FlsGetValue
push 0x20
call fcn.0046dc4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46e030
push dword [ebp + 8]
mov ecx, esi
call dword [0x48920c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x47238f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471f76

Function at 0x47239a
Capabilities:
Read file on windows

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

Function at 0x4728bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f8d0
mov eax, dword [0x49c100]
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.0046fa63
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4728ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472a5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00484ca0
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 + 0x4ec738]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00473e50
mov ecx, dword [esi*4 + 0x4ec738]
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 0x472a54
cmp eax, dword [edi + ecx + 0x24]
jne 0x472a54
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 0x472a54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00473e50
add esp, 0x14
test edx, edx
jl 0x472a54
jg 0x4729ca
test eax, eax
jb 0x472a54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472a54
jl 0x4729e4
cmp dword [ebp - 0x1008], eax
ja 0x472a54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x472a02
test ebx, ebx
je 0x472a3b
cmp ecx, edi
jae 0x472a3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x472a1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472a28
cmp byte [ecx + 1], 0xa
jne 0x472a28
inc ecx
jmp 0x472a28
movzx eax, al
movsx eax, byte [eax + 0x49c3e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x472a02
cmp edx, ebx
jne 0x472a02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472a59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e35c
leave
ret
Function at 0x472fd9
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 + 0x4ec738]
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 0x473019
cmp byte [ebx], 0xa
jne 0x473019
or byte [eax + edi + 0x28], 4
jmp 0x47301e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47311c
mov al, byte [edx]
cmp al, 0x1a
je 0x4730fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47304d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x473072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47307c
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 0x47302f
jmp 0x47311c
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 0x4730f9
cmp dword [ebp - 0xc], 0
je 0x4730f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec738]
test byte [eax + edi + 0x28], 0x48
je 0x4730d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4730be
mov byte [esi], dl
jmp 0x4730cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec738]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47311c
cmp byte [ebp - 1], 0xa
jne 0x4730e2
cmp esi, ebx
jne 0x4730e2
mov byte [esi], 0xa
jmp 0x47311b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00473e6e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47311c
mov byte [esi], 0xd
jmp 0x47311b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec738]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47311c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473125
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 + 0x4ec738]
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 0x473168
cmp word [esi], dx
jne 0x473168
or byte [edi + eax + 0x28], 4
jmp 0x47316d
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 0x4732c0
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 0x4732a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4731af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4731e5
cmp eax, edx
jae 0x4731f1
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 0x473187
jmp 0x4732c0
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 0x47329c
cmp dword [ebp - 0x14], 0
je 0x47329c
mov eax, dword [ebx*4 + 0x4ec738]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x473274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47323d
mov word [esi], cx
jmp 0x473270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec738]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ec738]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec738]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4732c0
pop ebx
cmp word [ebp - 4], bx
jne 0x473285
cmp esi, dword [ebp + 0xc]
jne 0x473285
mov word [esi], bx
jmp 0x4732bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00473e6e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4732c0
push 0xd
jmp 0x4732b9
mov ecx, dword [ebx*4 + 0x4ec738]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4732b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4732c0
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 0x4766a6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49c100]
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 0x4766f1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00476a80
test al, al
jne 0x4766eb
sub edx, 2
cmp edx, edi
jne 0x4766d1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x476713
lea eax, [edi + 2]
cmp edx, eax
je 0x476713
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047636d
add esp, 0x10
jmp 0x47680d
push esi
lea ecx, [ebp - 0x255]
call fcn.00476a80
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 0x476756
push dword [ebp - 0x25c]
jmp 0x476703
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 0x476793
cmp word [ebp - 0x226], 0
je 0x4767b4
cmp word [ebp - 0x226], ax
jne 0x476793
cmp word [ebp - 0x224], 0
je 0x4767b4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047636d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x476800
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47676d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4767e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47680d
push 0x475e8c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004814b0
add esp, 0x10
jmp 0x4767dd
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.0042e35c
leave
ret