joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d028
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00423312
xor ebx, ebx
cmp dword [0x4432c0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42d0fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42d068
xor eax, eax
jmp 0x42d1c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x436c8c
push edi
call esi
cmp eax, ebx
je 0x42d061
push eax
call fcn.004232af
mov dword [esp], 0x436c7c
push edi
mov dword [0x4432c0], eax
call esi
push eax
call fcn.004232af
mov dword [esp], 0x436c68
push edi
mov dword [0x4432c4], eax
call esi
push eax
call fcn.004232af
mov dword [0x4432c8], eax
lea eax, [ebp - 8]
push eax
call fcn.0041ee27
test eax, eax
pop ecx
pop ecx
je 0x42d0cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d5ce
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42d0fd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004232af
cmp eax, ebx
pop ecx
mov dword [0x4432d0], eax
je 0x42d0fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004232af
pop ecx
mov dword [0x4432cc], eax
mov eax, dword [0x4432cc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42d176
cmp dword [0x4432d0], esi
je 0x42d176
push eax
call fcn.0042331b
pop ecx
call eax
cmp eax, ebx
je 0x42d143
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4432d0]
call fcn.0042331b
pop ecx
call eax
test eax, eax
je 0x42d143
test byte [ebp - 0x18], 1
jne 0x42d176
lea eax, [ebp - 0xc]
push eax
call fcn.0041ee5e
test eax, eax
pop ecx
je 0x42d15e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d5ce
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42d16d
or dword [ebp + 0x10], 0x200000
jmp 0x42d1a7
or dword [ebp + 0x10], 0x40000
jmp 0x42d1a7
mov eax, dword [0x4432c4]
cmp eax, esi
je 0x42d1a7
push eax
call fcn.0042331b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d1a7
mov eax, dword [0x4432c8]
cmp eax, esi
je 0x42d1a7
push dword [ebp - 4]
push eax
call fcn.0042331b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4432c0]
call fcn.0042331b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430438
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43f52c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004303cd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041dd30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x430487
cmp dword [ebp - 0x1c], 5
jb 0x43049f
jmp 0x43049b
cmp dword [ebp - 0x10], 1
jne 0x43049f
cmp dword [ebp - 0x1c], 4
ja 0x43049b
jne 0x43049f
cmp dword [ebp - 0x18], 0
jbe 0x43049f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x437480
call fcn.004302be
test eax, eax
jge 0x4304c0
mov byte [0x4409cc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d3a6
add ebp, 0x78
leave
ret
Function at 0x10015c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
push ecx
lea edi, [ebp - 0x38]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
jg 0x10015cc2
jl 0x10015cb9
cmp dword [ebp + 0xc], 0
ja 0x10015cc2
xor eax, eax
xor edx, edx
jmp 0x10015e03
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10015ce4
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 - 4]
call fcn.10015e60
jmp 0x10015e03
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
call fcn.1000fbb0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x10015d53
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.10002d40
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100131d0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.100059e0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 4]
call fcn.100130e0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x10015df4
mov ecx, dword [ebp - 4]
call fcn.10010cf0
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 0xc], 0xfff
jbe 0x10015dc3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10052252
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x30]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x30], 0xfff
je 0x10015dc1
xor eax, eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, eax
mov eax, ecx
jmp 0x10015e03
jmp 0x10015d6f
cmp dword [ebp - 0xc], 0
jbe 0x10015df4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.10052252
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sbb ecx, edx
mov edx, ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x10015e28]
call fcn.1003fe42
pop eax
pop edx
pop edi
add esp, 0x38
cmp ebp, esp
call fcn.1003fe96
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001a3c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b218
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
push edi
push ecx
lea edi, [ebp - 0x98]
mov ecx, 0x23
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100b5100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, esp
push 0
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp esi, esp
call fcn.1003fe96
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x1001a48a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
mov dword [ebp - 0x98], eax
push str.CSocket::CreateListeningSocket__
lea ecx, [ebp - 0x90]
call fcn.10002fe0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1001c8d0
push 0x100ae950
lea edx, [ebp - 0x78]
push edx
call fcn.100453d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.10003880
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001d860
mov dword [ebp - 4], 1
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x3c]
call fcn.1001dab0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001e170
lea ecx, [ebp - 0x24]
call fcn.1001e2a0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1001db90
mov eax, dword [ebp - 0x94]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001a518]
call fcn.1003fe42
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003f9a0
add esp, 0x98
cmp ebp, esp
call fcn.1003fe96
mov esp, ebp
pop ebp
ret 8
Function at 0x1001dcb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b8cd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
push ecx
lea edi, [ebp - 0x74]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100b5100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, 1
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov word [ebp - 0x1a], cx
mov esi, esp
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x80
push 0xffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.1003fe96
cmp eax, 0xffffffff
jne 0x1001dd7a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
mov dword [ebp - 0x74], eax
push str.CSocket::AbortiveClose__
lea ecx, [ebp - 0x70]
call fcn.10002fe0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.1001d9a0
push 0x100b04bc
lea ecx, [ebp - 0x58]
push ecx
call fcn.100453d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10003880
mov ecx, dword [ebp - 0x14]
call fcn.1001dfd0
push edx
mov ecx, ebp
push eax
lea edx, [0x1001ddb8]
call fcn.1003fe42
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003f9a0
add esp, 0x74
cmp ebp, esp
call fcn.1003fe96
mov esp, ebp
pop ebp
ret
Function at 0x1001e170
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ba15
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push esi
push edi
push ecx
lea edi, [ebp - 0x8c]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100b5100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, esp
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.1003fe96
cmp eax, 0xffffffff
jne 0x1001e26d
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.1003fe96
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1001e490
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x84]
push edx
push str.CSocket::Connect_____SOCKET_ERROR
lea eax, [ebp - 0x44]
push eax
call fcn.100026b0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x7c]
call fcn.1001d960
push 0x100b04bc
lea eax, [ebp - 0x7c]
push eax
call fcn.100453d1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10003880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003f9a0
add esp, 0x8c
cmp ebp, esp
call fcn.1003fe96
mov esp, ebp
pop ebp
ret 4

Function at 0x1002e6d6
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 0x1002e6f9
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x1002e6e7
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1003e78e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1006f230
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 0x1003e7cd
sub eax, 1
je 0x1003e7c8
sub eax, 1
je 0x1003e7c4
xor eax, eax
leave
ret
push 3
jmp 0x1003e7cf
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10079430
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6a64
push 0x100a6a5c
push str.FlsAlloc
push 0x1f
call fcn.1007e0bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e423
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009f258]
call esi
jmp 0x1007e429
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007e46d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6a74
push 0x100a6a6c
push str.FlsGetValue
push 0x21
call fcn.1007e0bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e4a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009f258]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1007e4ac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a6a7c
push 0x100a6a74
push str.FlsSetValue
push 0x22
call fcn.1007e0bd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e4e6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1009f258]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1008127b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10041340
mov eax, dword [0x100b5100]
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.1007f680
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100812bd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10081419
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10098ff0
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 + 0x100b7eb0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1008281d
mov ecx, dword [esi*4 + 0x100b7eb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10081412
cmp eax, dword [ecx + edi + 0x24]
jne 0x10081412
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10081412
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008281d
add esp, 0x14
test edx, edx
jl 0x10081412
jg 0x10081388
test eax, eax
jb 0x10081412
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10081412
jl 0x100813a2
cmp dword [ebp - 0x1008], eax
ja 0x10081412
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100813c0
test ebx, ebx
je 0x100813f9
cmp ecx, edi
jae 0x100813f9
mov al, byte [ecx]
cmp al, 0xd
jne 0x100813da
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100813e6
cmp byte [ecx + 1], 0xa
jne 0x100813e6
inc ecx
jmp 0x100813e6
movzx eax, al
movsx eax, byte [eax + 0x100b53d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100813c0
cmp edx, ebx
jne 0x100813c0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10081417
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003f9a0
leave
ret
Function at 0x10081997
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100b7eb0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100819d7
cmp byte [ebx], 0xa
jne 0x100819d7
or byte [edi + eax + 0x28], 4
jmp 0x100819dc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10081adb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10081abe
inc eax
cmp dl, 0xd
je 0x10081a08
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10081a2e
cmp eax, ecx
jae 0x10081a3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100819f0
jmp 0x10081adb
push 0
lea eax, [ebp - 0x10]
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 0x10081ab9
cmp dword [ebp - 0x10], 0
je 0x10081ab9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b7eb0]
test byte [eax + edi + 0x28], 0x48
je 0x10081a93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10081a7e
mov byte [esi], dl
jmp 0x10081a8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b7eb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10081adb
cmp byte [ebp - 1], 0xa
jne 0x10081aa2
cmp esi, ebx
jne 0x10081aa2
mov byte [esi], 0xa
jmp 0x10081ada
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1008283b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10081adb
mov byte [esi], 0xd
jmp 0x10081ada
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b7eb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10081ad8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10081adb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10081ae4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b7eb0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10081b2a
cmp word [ebx], dx
jne 0x10081b2a
or byte [eax + edi + 0x28], 4
jmp 0x10081b2f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10081c92
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10081c72
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10081b70
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10081ba6
cmp eax, edx
jae 0x10081bb4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10081b4b
jmp 0x10081c92
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10081c6d
cmp dword [ebp - 0x18], 0
je 0x10081c6d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b7eb0]
test byte [eax + edi + 0x28], 0x48
je 0x10081c43
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10081c07
mov word [esi], cx
jmp 0x10081c3e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b7eb0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b7eb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b7eb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10081c92
pop eax
cmp word [ebp - 4], ax
jne 0x10081c53
cmp esi, ebx
jne 0x10081c53
mov word [esi], ax
jmp 0x10081c8f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1008283b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10081c92
push 0xd
pop eax
jmp 0x10081c4e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b7eb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10081c8c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10081c92
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10088d7e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100b5100]
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 0x10088dc9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10089150
test al, al
jne 0x10088dc3
sub edx, 2
cmp edx, edi
jne 0x10088da9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10088deb
lea eax, [edi + 2]
cmp edx, eax
je 0x10088deb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10088a45
add esp, 0x10
jmp 0x10088ee5
push esi
lea ecx, [ebp - 0x255]
call fcn.10089150
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 0x10088e2e
push dword [ebp - 0x25c]
jmp 0x10088ddb
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 0x10088e6b
cmp word [ebp - 0x226], 0
je 0x10088e8c
cmp word [ebp - 0x226], ax
jne 0x10088e6b
cmp word [ebp - 0x224], 0
je 0x10088e8c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10088a45
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10088ed8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10088e45
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10088ec0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10088ee5
push 0x10088564
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10093fe0
add esp, 0x10
jmp 0x10088eb5
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.1003f9a0
leave
ret