joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b12a0
Capabilities:
Parse pe header

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

Function at 0xa09510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x87f015
lea edi, [esi - 0x47e015]
push edi
or ebp, 0xffffffff
jmp 0xa09532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa09539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa09528
mov eax, 1
add ebx, ebx
jne 0xa0954b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa0955c
jne 0xa0957b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa0957b
dec eax
add ebx, ebx
jne 0xa09568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa09540
add ebx, ebx
jne 0xa09577
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa095cd
xor ecx, ecx
sub eax, 3
jb 0xa09593
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa09602
sar eax, 1
mov ebp, eax
jmp 0xa0959e
add ebx, ebx
jne 0xa0959e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa0956c
inc ecx
add ebx, ebx
jne 0xa095ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa0956c
add ebx, ebx
jne 0xa095b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa095ae
jne 0xa095ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa095ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa095ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa095de
jmp 0xa0952e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa095ec
add edi, ecx
jmp 0xa0952e
pop esi
mov edi, esi
mov ecx, 0x8058
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa0960a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xa0960f
lea edi, [esi + 0x607000]
mov eax, dword [edi]
or eax, eax
je 0xa09677
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x609000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x609078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa09635
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x60907c]
or eax, eax
je 0xa09671
mov dword [ebx], eax
add ebx, 4
jmp 0xa09652
call dword [esi + 0x60908c]
mov ebp, dword [esi + 0x609080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0xa096ab
sub esp, 0xffffff80
jmp 0x424b60
Function at 0x10001040
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov eax, 0xf3cd4
call fcn.1000a2f0
mov eax, dword [0x1000f030]
xor eax, esp
mov dword [esp + 0xf3cd0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
jbe 0x100010bf
xor byte [esp + eax + 0x14], 0x7b
inc eax
cmp eax, esi
jb 0x100010b5
push 0x40
push 0x3000
push 0xf3cc8
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0xf3cc8
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
call fcn.10001cf0
add esp, 0xc
call dword [0x10010ab8]
push 0
push 0
push 1
push 0
mov edi, eax
call ebx
push 0
push 0
push 0x64
push 0
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [0x10010abc]
test eax, eax
je 0x10001136
push 0xffffffffffffffff
push ebx
call dword [0x10010ab4]
test eax, eax
je 0x10001136
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.10002055
add esp, 8
mov ecx, dword [esp + 0xf3cdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001b5e
add esp, 0xf3cd4
ret

Function at 0x10001150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1000f030]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
test eax, eax
je 0x10001194
push ebx
push 0x1000dc09
jmp 0x100011af
lea eax, [esp + 8]
lea edx, [eax + 1]
jmp 0x100011a0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100011a0
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10001550
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.10001b5e
add esp, 0x10c
ret
Function at 0x100011d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1000bdc1
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1000f030]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push esi
push edi
mov eax, dword [0x1000f030]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x74]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
cmp eax, ebx
jle 0x10001241
mov cl, 0x5c
nop
cmp byte [esp + eax + 0x70], cl
je 0x1000123d
dec eax
cmp eax, ebx
jg 0x10001230
jmp 0x10001241
mov byte [esp + eax + 0x71], bl
mov al, 0x74
lea edx, [esp + 0x64]
mov byte [esp + 0x69], al
mov byte [esp + 0x6b], al
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x6c], 0x61
mov byte [esp + 0x6d], 0x64
mov byte [esp + 0x6e], 0x6d
mov byte [esp + 0x6f], 0x65
mov byte [esp + 0x70], 0x2e
mov byte [esp + 0x72], 0x78
mov byte [esp + 0x74], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [esp + 0x10]
call fcn.10001150
push eax
mov edi, 0x1000dc0c
lea esi, [esp + 0x30]
mov dword [esp + 0x184], ebx
call fcn.10001890
push eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x50]
mov byte [esp + 0x188], 1
call fcn.10001890
add esp, 8
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x100012cd
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1000211a
add esp, 4
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x180], 4
cmp dword [esp + 0x28], esi
jb 0x100012f9
mov edx, dword [esp + 0x14]
push edx
call fcn.1000211a
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x60], esi
jae 0x10001313
lea eax, [esp + 0x4c]
push ebx
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x70]
call fcn.10001040
cmp dword [esp + 0x60], esi
jb 0x1000133c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1000211a
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.10001b5e
add esp, 0x174
ret

Function at 0x10001b5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f030]
jne 0x10001b68
repz ret
jmp fcn.100024c1
Function at 0x1000829e
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.100044cb
and dword [ebp - 4], 0
cmp dword [0x100109d8], 0
mov ebx, eax
jne 0x1000834f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10008400
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10008400
push eax
call fcn.10004459
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100109d8], eax
call esi
push eax
call fcn.10004459
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100109dc], eax
call esi
push eax
call fcn.10004459
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100109e0], eax
call esi
push eax
call fcn.10004459
pop ecx
mov dword [0x100109e8], eax
test eax, eax
je 0x1000834f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004459
pop ecx
mov dword [0x100109e4], eax
mov eax, dword [0x100109e4]
cmp eax, ebx
je 0x100083a7
cmp dword [0x100109e8], ebx
je 0x100083a7
push eax
call fcn.100044d4
push dword [0x100109e8]
mov esi, eax
call fcn.100044d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100083a7
test edi, edi
je 0x100083a7
call esi
test eax, eax
je 0x1000839e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000839e
test byte [ebp - 0xc], 1
jne 0x100083a7
or dword [ebp + 0x10], 0x200000
jmp 0x100083e0
mov eax, dword [0x100109dc]
cmp eax, ebx
je 0x100083e0
push eax
call fcn.100044d4
pop ecx
test eax, eax
je 0x100083e0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100083e0
mov eax, dword [0x100109e0]
cmp eax, ebx
je 0x100083e0
push eax
call fcn.100044d4
pop ecx
test eax, eax
je 0x100083e0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100109d8]
call fcn.100044d4
pop ecx
test eax, eax
je 0x10008400
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10008402
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x407b95
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 0x407bb6
jl 0x407bad
test edi, edi
jne 0x407bb6
xor eax, eax
xor edx, edx
jmp 0x407c77
cmp dword [ebx + 0x38], 0
je 0x407bcb
push eax
push edi
push dword [ebp + 8]
call fcn.00407c7d
jmp 0x407c77
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407c12
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407c12
cmp eax, edi
jb 0x407bec
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042aca0
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 0x407c18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407c6c
mov ecx, ebx
call fcn.00407252
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407c57
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00455cf5
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 0x407c6c
jmp 0x407c2a
test edx, edx
je 0x407c6c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00455cf5
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 0x419fb5
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 0x419fd8
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x419fc6
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x428aa7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00458a83
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 0x428ae6
sub eax, 1
je 0x428ae1
sub eax, 1
je 0x428add
xor eax, eax
leave
ret
push 3
jmp 0x428ae8
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42a31e
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48a9e4
push 0x48a9dc
push str.FlsAlloc
push 0x1e
call fcn.004681af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468513
push dword [ebp + 8]
mov ecx, esi
call dword [0x4851f8]
call esi
jmp 0x468519
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46855d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48a9f4
push 0x48a9ec
push str.FlsGetValue
push 0x20
call fcn.004681af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468594
push dword [ebp + 8]
mov ecx, esi
call dword [0x4851f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46cfa2
Capabilities:
Read file on windows

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

Function at 0x46cfad
Capabilities:
Read file on windows

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

Function at 0x46d4d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042a4a0
mov eax, dword [0x497040]
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.00469fc7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46d512
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46d66e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047f8b0
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 + 0x4e6388]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046ea63
mov ecx, dword [esi*4 + 0x4e6388]
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 0x46d667
cmp eax, dword [edi + ecx + 0x24]
jne 0x46d667
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 0x46d667
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046ea63
add esp, 0x14
test edx, edx
jl 0x46d667
jg 0x46d5dd
test eax, eax
jb 0x46d667
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46d667
jl 0x46d5f7
cmp dword [ebp - 0x1008], eax
ja 0x46d667
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46d615
test ebx, ebx
je 0x46d64e
cmp ecx, edi
jae 0x46d64e
mov al, byte [ecx]
cmp al, 0xd
jne 0x46d62f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46d63b
cmp byte [ecx + 1], 0xa
jne 0x46d63b
inc ecx
jmp 0x46d63b
movzx eax, al
movsx eax, byte [eax + 0x497320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46d615
cmp edx, ebx
jne 0x46d615
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46d66c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042904c
leave
ret
Function at 0x46dbec
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 + 0x4e6388]
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 0x46dc2c
cmp byte [ebx], 0xa
jne 0x46dc2c
or byte [eax + edi + 0x28], 4
jmp 0x46dc31
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46dd2f
mov al, byte [edx]
cmp al, 0x1a
je 0x46dd11
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46dc60
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46dc85
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46dc8f
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 0x46dc42
jmp 0x46dd2f
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 0x46dd0c
cmp dword [ebp - 0xc], 0
je 0x46dd0c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e6388]
test byte [eax + edi + 0x28], 0x48
je 0x46dce6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46dcd1
mov byte [esi], dl
jmp 0x46dce2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e6388]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46dd2f
cmp byte [ebp - 1], 0xa
jne 0x46dcf5
cmp esi, ebx
jne 0x46dcf5
mov byte [esi], 0xa
jmp 0x46dd2e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046ea81
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46dd2f
mov byte [esi], 0xd
jmp 0x46dd2e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e6388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46dd2b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46dd2f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46dd38
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 + 0x4e6388]
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 0x46dd7b
cmp word [esi], dx
jne 0x46dd7b
or byte [edi + eax + 0x28], 4
jmp 0x46dd80
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 0x46ded3
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 0x46deb3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46ddc2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46ddf8
cmp eax, edx
jae 0x46de04
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 0x46dd9a
jmp 0x46ded3
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 0x46deaf
cmp dword [ebp - 0x14], 0
je 0x46deaf
mov eax, dword [ebx*4 + 0x4e6388]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46de87
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46de50
mov word [esi], cx
jmp 0x46de83
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e6388]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e6388]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e6388]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46ded3
pop ebx
cmp word [ebp - 4], bx
jne 0x46de98
cmp esi, dword [ebp + 0xc]
jne 0x46de98
mov word [esi], bx
jmp 0x46ded0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046ea81
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46ded3
push 0xd
jmp 0x46decc
mov ecx, dword [ebx*4 + 0x4e6388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46deca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46ded3
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 0x470dcb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470c9f
Function at 0x471608
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x497040]
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 0x471653
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004719e2
test al, al
jne 0x47164d
sub edx, 2
cmp edx, edi
jne 0x471633
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x471675
lea eax, [edi + 2]
cmp edx, eax
je 0x471675
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004712cf
add esp, 0x10
jmp 0x47176f
push esi
lea ecx, [ebp - 0x255]
call fcn.004719e2
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 0x4716b8
push dword [ebp - 0x25c]
jmp 0x471665
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 0x4716f5
cmp word [ebp - 0x226], 0
je 0x471716
cmp word [ebp - 0x226], ax
jne 0x4716f5
cmp word [ebp - 0x224], 0
je 0x471716
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004712cf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x471762
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4716cf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47174a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47176f
push 0x470dee
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047c130
add esp, 0x10
jmp 0x47173f
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.0042904c
leave
ret