joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x1009428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], 0x2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x82c], 0
and dword [ebp - 0x828], 0
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x824]
push eax
push 0x21
push edi
call ebx
test eax, eax
jle 0x1004a1b
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x82c], eax
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1e
push edi
call ebx
test eax, eax
jle 0x1004a3f
lea eax, [ebp - 0x824]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.0100262c
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1d
push edi
call ebx
test eax, eax
jle 0x1004a63
lea eax, [ebp - 0x824]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
call fcn.0100262c
movzx eax, word [esi + 2]
mov edi, dword [ebp + 8]
test ax, ax
je 0x1004ad3
mov ecx, dword [ebp - 0x82c]
sub ecx, 0
je 0x1004aaa
dec ecx
je 0x1004a95
dec ecx
jne 0x1004ad3
movzx ecx, word [esi + 6]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi]
jmp 0x1004abe
movzx ecx, word [esi]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi + 6]
jmp 0x1004abe
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx ecx, word [esi + 6]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push eax
push 0x10014d8
push edi
call fcn.010029a4
add esp, 0x1c
mov dword [ebp - 0x828], eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 8]
push eax
push 0x100149c
push edi
call fcn.010029a4
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x828]
add esp, 0x1c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100741c
leave
ret 8
Function at 0x1007384
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10079e8
call fcn.01007394
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10097c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007199
cmp eax, esi
jne 0x100718c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100719c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1007173
xor esi, esi
inc esi
mov eax, dword [0x10097c4]
cmp eax, esi
jne 0x10071af
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10071ea
mov eax, dword [0x10097c4]
test eax, eax
jne 0x10071e4
mov dword [0x10097c4], esi
push 0x10011e8
push 0x10011dc
call fcn.010070f0
pop ecx
pop ecx
test eax, eax
je 0x10071ea
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10072b4
mov dword [0x1009488], esi
mov eax, dword [0x10097c4]
cmp eax, esi
jne 0x100720e
push 0x10011d8
push 0x10011d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10097c4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100721b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10097cc], ebx
je 0x100723c
push 0x10097cc
call fcn.010075a9
pop ecx
test eax, eax
je 0x100723c
push ebx
push 2
push ebx
call dword [0x10097cc]
push dword [0x1009470]
push dword [0x1009474]
push dword [0x100946c]
call fcn.010067f5
add esp, 0xc
mov dword [0x1009484], eax
cmp dword [0x1009478], ebx
jne 0x100729a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1009488], ebx
jne 0x10072a8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009484]
call fcn.010073d9
ret
call fcn.010076f6
jmp 0x1007151
Function at 0x1001d39
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1001d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x10012b8
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
jmp 0x1001dcd
push 0x100119c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
lea eax, [ebp + eax*2 - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1001dda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 8]
push 0x1001290
call sub.ntdll.dll_DbgPrint
add esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
call fcn.01001ccb
jmp 0x1001e50
push edi
mov esi, 0x1001280
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1001e17
push ebx
call edi
mov ebx, eax
push ebx
push dword [ebp + 8]
push esi
push 0x1001250
call sub.ntdll.dll_DbgPrint
mov eax, dword [ebp + 0x10]
add esp, 0x10
push ebx
push dword [eax]
call fcn.01001ccb
pop ebx
jmp 0x1001e24
push 0x1005478
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x1001e4f
call edi
push eax
push dword [ebp + 8]
push 0x100122c
call sub.ntdll.dll_DbgPrint
add esp, 0xc
pop edi
pop esi
leave
ret 0xc
Function at 0x1001ef8
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x1001380
call fcn.01002bd4
mov edi, 0x94
mov eax, edi
call fcn.01002c20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10052bc], ecx
mov eax, dword [esi + 4]
mov dword [0x10052c8], eax
mov edx, dword [esi + 8]
mov dword [0x10052cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10052c0], esi
cmp ecx, 2
je 0x1001f58
or esi, 0x8000
mov dword [0x10052c0], esi
shl eax, 8
add eax, edx
mov dword [0x10052c4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001f91
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f91
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001fa9
cmp eax, 0x20b
je 0x1001f96
mov dword [ebp - 0x1c], edi
jmp 0x1001fbd
cmp dword [ecx + 0x84], 0xe
jbe 0x1001f91
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001fb7
cmp dword [ecx + 0x74], 0xe
jbe 0x1001f91
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.01002b82
pop ecx
test eax, eax
jne 0x1001fe9
cmp dword [0x10052ac], 2
je 0x1001fd6
call fcn.010023ff
push 0x1c
call fcn.01002236
push 0xff
call fcn.010020b7
pop ecx
pop ecx
mov dword [ebp - 4], edi
call fcn.010029bd
test eax, eax
jge 0x1001ffd
push 0x1b
call fcn.01001ed3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1005814], eax
call fcn.01002897
mov dword [0x10052a4], eax
call fcn.010027f5
test eax, eax
jge 0x1002023
push 8
call fcn.01001ed3
pop ecx
call fcn.010025a9
test eax, eax
jge 0x1002034
push 9
call fcn.01001ed3
pop ecx
call fcn.010020e7
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1002047
push eax
call fcn.01001ed3
pop ecx
mov eax, dword [0x10052dc]
mov dword [0x10052e0], eax
push eax
push dword [0x10052d4]
push dword [0x10052d0]
call fcn.01001c6c
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002076
push esi
call fcn.010021f6
call fcn.01002218
jmp 0x10020a8
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01002c0d
ret
Function at 0x1002236
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1005040]
je 0x1002256
inc eax
cmp eax, 0x12
jb 0x1002247
shl eax, 3
cmp edx, dword [eax + 0x1005040]
mov dword [ebp + 8], eax
jne 0x10023f4
mov ecx, dword [0x10052ac]
cmp ecx, 1
je 0x10023c9
test ecx, ecx
jne 0x1002288
cmp dword [0x100503c], 1
je 0x10023c9
cmp edx, 0xfc
je 0x10023f4
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10022c3
push 5
pop ecx
mov esi, 0x10016f4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022d2
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100230a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022ea
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10016f0
push ebx
call fcn.01002d60
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100230f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1005044]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002326
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01002c20
mov edx, esp
push 6
pop ecx
mov esi, 0x10016d4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002352
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100235e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002377
mov eax, dword [ebp + 8]
mov esi, 0x10016d0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1005044]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002392
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100239e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10016a8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01002c5d
add esp, 0xc
jmp 0x10023f4
mov ecx, dword [eax + 0x1005044]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10023d4
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002c5d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1005414], ebx
push esi
push edi
jne 0x1002cdd
push 0x1001770
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1002d18
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001764
push edi
call esi
test eax, eax
mov dword [0x1005414], eax
je 0x1002d18
push 0x1001754
push edi
call esi
push 0x1001740
push edi
mov dword [0x1005418], eax
call esi
cmp dword [0x10052bc], 2
mov dword [0x100541c], eax
jne 0x1002cdd
push 0x1001724
push edi
call esi
test eax, eax
mov dword [0x1005424], eax
je 0x1002cdd
push 0x100170c
push edi
call esi
mov dword [0x1005420], eax
mov eax, dword [0x1005420]
test eax, eax
je 0x1002d22
call eax
test eax, eax
je 0x1002d09
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1005424]
test eax, eax
je 0x1002d09
test byte [ebp - 8], 1
jne 0x1002d22
cmp dword [0x10052c8], 4
jb 0x1002d1c
or byte [ebp + 0x12], 0x20
jmp 0x1002d41
xor eax, eax
jmp 0x1002d51
or byte [ebp + 0x12], 4
jmp 0x1002d41
mov eax, dword [0x1005418]
test eax, eax
je 0x1002d41
call eax
mov ebx, eax
test ebx, ebx
je 0x1002d41
mov eax, dword [0x100541c]
test eax, eax
je 0x1002d41
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1005414]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10047e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002c20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004879
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10052bc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1004879
cmp eax, 1
je 0x1004891
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004879
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100484e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1004875
xor eax, eax
inc eax
jmp 0x10048ad
cmp esi, ebx
jae 0x100487d
xor eax, eax
jmp 0x10048ad
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10052bc]
jmp 0x1004893
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x47bf40]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47bf40], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407aac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407aac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407aac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407aac
cmp dword [ecx + 0x74], 0xe
jbe 0x407aac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

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

Function at 0x416f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416da7
Function at 0x4185ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407be0
mov eax, dword [0x42d040]
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.004149e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41862e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41878a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
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 + 0x47bb38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a12
mov ecx, dword [esi*4 + 0x47bb38]
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 0x418783
cmp eax, dword [edi + ecx + 0x24]
jne 0x418783
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 0x418783
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a12
add esp, 0x14
test edx, edx
jl 0x418783
jg 0x4186f9
test eax, eax
jb 0x418783
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418783
jl 0x418713
cmp dword [ebp - 0x1008], eax
ja 0x418783
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418731
test ebx, ebx
je 0x41876a
cmp ecx, edi
jae 0x41876a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41874b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418757
cmp byte [ecx + 1], 0xa
jne 0x418757
inc ecx
jmp 0x418757
movzx eax, al
movsx eax, byte [eax + 0x42d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418731
cmp edx, ebx
jne 0x418731
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418788
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406ca2
leave
ret
Function at 0x41ed7c
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 + 0x47bb38]
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 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
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 0x41edd2
jmp 0x41eebf
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 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47bb38]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47bb38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47bb38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
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 + 0x47bb38]
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 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
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 0x41f063
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 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
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 0x41ef2a
jmp 0x41f063
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 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x47bb38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47bb38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47bb38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47bb38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x47bb38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
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