joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5775a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590d62
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 2
test eax, eax
je 0x5775f6
add eax, 0xc
jmp 0x5775fb
mov eax, 0x616ba8
lea edx, [ebp - 0x124]
push edx
mov ebx, 1
push ebx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x577672
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], 0x104
test eax, eax
je 0x577632
add eax, 0xc
jmp 0x577637
mov eax, 0x616ba8
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x124]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x577672
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.0056cdab
jmp 0x577680
push 0xffffffffffffffff
push 0x616ba8
mov ecx, esi
call fcn.0056cdab
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x118], ebx
mov byte [ebp - 4], bl
call fcn.0056bf07
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
call fcn.0056bf07
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00546bde
mov esp, ebp
pop ebp
ret

Function at 0x5776c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590da0
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x577700
add eax, 0xc
jmp 0x577705
mov eax, 0x616ba8
lea edx, [ebp - 0x11c]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x577788
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x120], 0x104
cmp eax, ebx
je 0x57773a
add eax, 0xc
jmp 0x57773f
mov eax, 0x616ba8
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x577788
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0056bf07
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0056bf07
mov eax, 1
jmp 0x5777a4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0056bf07
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0056bf07
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00546bde
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [ebp - 0x30]
push edx
push str.SeshutdownPrivilege
push 0x406128
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push 0x10
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
push 0x406128
push 0x406128
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00401091
mov esp, ebp
pop ebp
ret
Function at 0x4030cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00402026
and dword [ebp - 0x14], 0
cmp dword [0x409744], 0
mov dword [ebp - 0x18], eax
jne 0x40317e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403226
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403226
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x409744], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x409748], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40974c], eax
call edi
push eax
call esi
mov dword [0x409754], eax
test eax, eax
je 0x40317e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x409750], eax
mov eax, dword [0x409750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4031d7
cmp dword [0x409754], ecx
je 0x4031d7
push eax
call esi
push dword [0x409754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4031d7
test ebx, ebx
je 0x4031d7
call edi
test eax, eax
je 0x4031ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4031ce
test byte [ebp - 8], 1
jne 0x4031d7
or dword [ebp + 0x10], 0x200000
jmp 0x40320a
mov eax, dword [0x409748]
cmp eax, dword [ebp - 0x18]
je 0x40320a
push eax
call esi
test eax, eax
je 0x40320a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40320a
mov eax, dword [0x40974c]
cmp eax, dword [ebp - 0x18]
je 0x40320a
push eax
call esi
test eax, eax
je 0x40320a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x409744]
call esi
test eax, eax
je 0x403226
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403228
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401091
leave
ret
Function at 0x401e30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x440054]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0x48]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004027c0
lea eax, [esp + 0x30]
push eax
call fcn.00403f30
add esp, 4
lea ecx, [esp + 0x30]
push 0x43c420
call fcn.00401630
lea eax, [esp + 0x30]
push eax
call fcn.00403ec0
add esp, 4
test al, al
jne 0x401eab
lea eax, [esp + 0x30]
push eax
call fcn.00403ee0
add esp, 4
push str.downloader.log
lea ecx, [esp + 0x34]
call fcn.00401630
sub esp, 0x18
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.004023a0
call fcn.004027e0
push str._r_n_r_n_start_
push 0x23
push str.wWinMain
call fcn.00402730
add esp, 0x24
push edi
push str.cmd:_s
push 0x24
push str.wWinMain
call fcn.00402730
add esp, 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x401f5c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401f4b
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x14]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call ebx
test eax, eax
jne 0x401f26
mov edx, dword [esp + 0x44]
cmp edx, 8
jb 0x401f94
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401faf
push edx
push ecx
call fcn.0040e6ec
add esp, 8
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e398
mov esp, ebp
pop ebp
ret 0x10
call fcn.004164c8
int3

Function at 0x403f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x440054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.004100b0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x228]
call fcn.004013a0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401350
mov ecx, dword [ebp - 0x22c]
or ecx, 1
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x228]
call fcn.004012f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e398
mov esp, ebp
pop ebp
ret
Function at 0x404390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4043b0
jl 0x4043a7
cmp dword [ebp + 0xc], 0
ja 0x4043b0
xor eax, eax
xor edx, edx
jmp 0x4044e7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4043d2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004085a0
jmp 0x4044e7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00408460
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x404441
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004012a0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00408880
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00401b80
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00408490
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4044d8
mov ecx, dword [ebp - 8]
call fcn.00405360
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4044b1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00417c4a
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4044af
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4044e7
jmp 0x40445d
cmp dword [ebp - 4], 0
jbe 0x4044d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00417c4a
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d30d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x440054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004016b0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040abb0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ac30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040aa90
mov dword [ebp - 0x20], 0x40ac70
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00407d80
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.00418368
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x40a5ef
lea ecx, [ebp - 0x14]
call fcn.0040aa60
jmp 0x40a600
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.0040d5ce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aa90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e531
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432344
push 0x43233c
push str.FlsAlloc
push 0x1e
call fcn.0041e3da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e565
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1b8]
call esi
jmp 0x41e56b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e5af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432354
push 0x43234c
push str.FlsGetValue
push 0x20
call fcn.0041e3da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e5e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eeaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ed1b
Function at 0x4203c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f300
mov eax, dword [0x440054]
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.0041d75d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42040b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420567
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c380
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 + 0x441f50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ff5e
mov ecx, dword [esi*4 + 0x441f50]
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 0x420560
cmp eax, dword [edi + ecx + 0x24]
jne 0x420560
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 0x420560
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ff5e
add esp, 0x14
test edx, edx
jl 0x420560
jg 0x4204d6
test eax, eax
jb 0x420560
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420560
jl 0x4204f0
cmp dword [ebp - 0x1008], eax
ja 0x420560
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42050e
test ebx, ebx
je 0x420547
cmp ecx, edi
jae 0x420547
mov al, byte [ecx]
cmp al, 0xd
jne 0x420528
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420534
cmp byte [ecx + 1], 0xa
jne 0x420534
inc ecx
jmp 0x420534
movzx eax, al
movsx eax, byte [eax + 0x4402e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42050e
cmp edx, ebx
jne 0x42050e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420565
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e398
leave
ret
Function at 0x420606
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 + 0x441f50]
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 0x420646
cmp byte [ebx], 0xa
jne 0x420646
or byte [eax + edi + 0x28], 4
jmp 0x42064b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420749
mov al, byte [edx]
cmp al, 0x1a
je 0x42072b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42067a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42069f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4206a9
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 0x42065c
jmp 0x420749
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 0x420726
cmp dword [ebp - 0xc], 0
je 0x420726
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x441f50]
test byte [eax + edi + 0x28], 0x48
je 0x420700
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4206eb
mov byte [esi], dl
jmp 0x4206fc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x441f50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420749
cmp byte [ebp - 1], 0xa
jne 0x42070f
cmp esi, ebx
jne 0x42070f
mov byte [esi], 0xa
jmp 0x420748
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ff7c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420749
mov byte [esi], 0xd
jmp 0x420748
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x441f50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420745
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420749
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420752
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 + 0x441f50]
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 0x420795
cmp word [esi], dx
jne 0x420795
or byte [edi + eax + 0x28], 4
jmp 0x42079a
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 0x4208ed
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 0x4208cd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4207dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420812
cmp eax, edx
jae 0x42081e
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 0x4207b4
jmp 0x4208ed
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 0x4208c9
cmp dword [ebp - 0x14], 0
je 0x4208c9
mov eax, dword [ebx*4 + 0x441f50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4208a1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42086a
mov word [esi], cx
jmp 0x42089d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x441f50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x441f50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x441f50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4208ed
pop ebx
cmp word [ebp - 4], bx
jne 0x4208b2
cmp esi, dword [ebp + 0xc]
jne 0x4208b2
mov word [esi], bx
jmp 0x4208ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ff7c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4208ed
push 0xd
jmp 0x4208e6
mov ecx, dword [ebx*4 + 0x441f50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4208e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4208ed
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 0x424816
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x440054]
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 0x424861
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004249b5
test al, al
jne 0x42485b
sub edx, 2
cmp edx, edi
jne 0x424841
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x424883
lea eax, [edi + 2]
cmp edx, eax
je 0x424883
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00424762
add esp, 0x10
jmp 0x42497d
push esi
lea ecx, [ebp - 0x255]
call fcn.004249b5
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 0x4248c6
push dword [ebp - 0x25c]
jmp 0x424873
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 0x424903
cmp word [ebp - 0x226], 0
je 0x424924
cmp word [ebp - 0x226], ax
jne 0x424903
cmp word [ebp - 0x224], 0
je 0x424924
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00424762
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x424970
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4248dd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x424958
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42497d
push 0x424592
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042af80
add esp, 0x10
jmp 0x42494d
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.0040e398
leave
ret