joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fc50
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
push edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x14]
shr eax, 1
mov ecx, 0x40000000
cmp eax, 0x40000000
ja 0x1000fc7b
mov ecx, eax
mov edx, dword [esi + 0xa8]
push 0
lea eax, [esi + 0xa8]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esp + 0x2c]
lea edi, [esi + 8]
mov eax, edi
call fcn.1000d300
test eax, eax
jl 0x1000fd0d
cmp eax, 1
je 0x1000fd0d
mov eax, dword [edi]
test eax, eax
je 0x1000fcce
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
mov edx, ecx
or edx, eax
jne 0x1000fcc0
mov eax, 0x80004005
jmp 0x1000fcf6
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], eax
jmp 0x1000fcf4
mov edi, dword [edi + 4]
test edi, edi
je 0x1000fd08
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
mov ecx, eax
or ecx, edi
jne 0x1000fce8
mov eax, 0x80004005
jmp 0x1000fcf6
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edi
xor eax, eax
test eax, eax
jl 0x1000fd08
cmp eax, 1
je 0x1000fd08
xor eax, eax
pop edi
add esp, 0x24
ret 4
mov eax, 0xe0036006
pop edi
add esp, 0x24
ret 4
Function at 0x10010820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x1001093b
cmp word [esi], 0
je 0x1001093b
mov eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x10010864
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x20000000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x100108a1
call fcn.10002d30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10010885
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
push 0x200
push esi
push ebx
call fcn.100ab490
or eax, edx
je 0x100108e7
mov eax, 0xe00e1001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret 8
push 0
push 0x200
push esi
push ebx
call fcn.100ab3e0
push 0x1ff
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1d]
push 0
push edx
mov dword [esp + 0x1c], eax
mov dword [edi + 0x58], eax
mov byte [esp + 0x24], 0
call fcn.10064e10
add esp, 0xc
lea esi, [esp + 0x18]
mov eax, edi
call fcn.10010960
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.10062448
mov esp, ebp
pop ebp
ret 8
Function at 0x10012e20
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp esi, edi
je 0x10012f00
mov dword [esi], edi
cmp dword [esp + 0x14], edi
jne 0x10012e6c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, edi
je 0x10012ef6
push str..wmt
push eax
call fcn.10063c24
add esp, 8
test eax, eax
jne 0x10012ef6
pop edi
mov dword [esi], 8
pop esi
ret 0x10
mov ecx, dword [esp + 0x10]
push edi
push edi
push 3
push edi
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10012e96
call fcn.10002d30
pop edi
pop esi
ret 0x10
push edi
lea edx, [esp + 0x18]
push edx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012ecd
call fcn.10002d30
lea esi, [esp + 0x10]
mov edi, eax
call fcn.1000fee0
mov eax, edi
pop edi
pop esi
ret 0x10
cmp dword [esp + 0x18], 0x5120372
jne 0x10012eed
mov dword [esi], 8
lea esi, [esp + 0x10]
call fcn.1000fee0
pop edi
xor eax, eax
pop esi
ret 0x10
lea esi, [esp + 0x10]
call fcn.1000fee0
pop edi
mov eax, 0xe00e1001
pop esi
ret 0x10
pop edi
mov eax, 0x80070057
pop esi
ret 0x10

Function at 0x10013c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100e1aa8]
dec ecx
inc edx
test ecx, ecx
jne 0x10013c24
not eax
pop esi
ret

Function at 0x10013d80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
cmp dword [esi + 0x500], 0
push ebx
push edi
jne 0x10013de3
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea edi, [esi + 0x50c]
push edi
mov dword [esi + 0x510], 1
call ebx
test eax, eax
jne 0x10013dc4
push 8
push 1
push eax
push eax
push edi
call ebx
test eax, eax
jne 0x10013dc4
mov dword [esi + 0x510], eax
mov eax, esi
call fcn.10013f80
mov ecx, esi
call fcn.10014230
mov eax, esi
call fcn.10013f80
mov dword [esi + 0x500], 1
pop edi
pop ebx
pop ecx
ret
Function at 0x100144d0
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
sub esp, 0x120
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
lea ebx, [eax + 1]
mov dword [esp + 0x10], 0xa
xor ebp, ebp
jmp 0x10014506
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov ecx, 0x10
mov esi, 0x100bfbd0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x280
mov ecx, eax
call fcn.10016fe0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.100170e0
add esp, 0x10
xor eax, eax
mov edi, edi
movzx ecx, byte [esp + eax + 0xe8]
movzx edx, byte [esp + eax + 0xe9]
xor byte [ebx + eax - 1], cl
xor byte [ebx + eax], dl
movzx ecx, byte [esp + eax + 0xea]
movzx edx, byte [esp + eax + 0xeb]
xor byte [ebx + eax + 1], cl
xor byte [ebx + eax + 2], dl
add eax, 4
cmp eax, 0x40
jl 0x10014550
add ebx, 0x40
sub dword [esp + 0x10], 1
jne 0x10014502
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10062448
add esp, 0x120
ret 4
Function at 0x10014930
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x11c]
mov cl, byte [esp + 0x124]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
push 0x40
push eax
lea edx, [esp + 0xa0]
mov dword [esp + 0x1c], 0
push edx
mov byte [esp + 0x23], cl
call fcn.10064ea0
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0x44
lea ecx, [esp + 0x9c]
push ecx
push edx
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], eax
call fcn.100145b0
mov ecx, 0x10
lea esi, [esp + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
lea eax, [esp + 0x68]
add esp, 0x10
sub esi, eax
mov edi, 0x3e7
jmp 0x100149d0
mov edx, dword [esp + 0x128]
push 0x40
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
lea ecx, [esp + 0x68]
call fcn.100145b0
add esp, 0x10
xor eax, eax
mov edi, edi
mov dl, byte [esp + eax + 0x58]
lea ecx, [esp + eax + 0x58]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x40
jl 0x100149f0
sub edi, 1
jne 0x100149d0
lea edx, [esp + 0x18]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x10014a17
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x10014a20
lea edx, [esp + 0x58]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x10014a36
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x10014a40
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10062448
add esp, 0x110
ret
Function at 0x10018190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100acc5a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor esi, esi
cmp ebp, esi
jne 0x100181cb
mov eax, 0x80070057
jmp 0x10018338
push 0x100e33b4
push 0x3e8
call fcn.100628bb
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], esi
cmp ebx, esi
je 0x1001825c
push 0x3e8
push esi
push ebx
call fcn.10064e10
add esp, 0xc
push 0x100e33b4
push 0x48
call fcn.1006304e
add esp, 8
mov dword [esp + 0x34], eax
mov byte [esp + 0x28], 1
cmp eax, esi
je 0x10018240
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x7c]
sub edx, dword [ecx + 0x78]
mov esi, eax
test edx, 0xfffffffc
sete cl
xor edx, edx
test cl, cl
sete dl
push edx
call fcn.1001a110
mov edx, eax
mov dword [esp + 0x34], edx
jmp 0x10018246
mov dword [esp + 0x34], esi
mov edx, esi
mov byte [esp + 0x28], 0
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x10018266
push ebx
call fcn.100628c6
add esp, 4
mov eax, 0x8007000e
jmp 0x10018338
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
add esi, 0x6c
test eax, 0xfffffffc
jne 0x100182b1
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
call fcn.1001ad00
mov edi, eax
test edi, edi
jge 0x100182b1
mov esi, dword [esp + 0x34]
push esi
call fcn.1001a140
push esi
call fcn.1006243d
add esp, 4
lea esi, [esp + 0x18]
call fcn.10008990
mov eax, edi
jmp 0x10018338
lea edx, [esp + 0x1c]
push edx
mov edi, esi
call fcn.100193e0
lea ecx, [ecx]
push 0x3e8
push 0
push ebx
call fcn.10064e10
add esp, 0xc
mov ecx, ebx
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x10018302
inc ebp
cmp al, 0xa
je 0x100182fc
mov byte [ecx], al
inc edx
inc ecx
cmp edx, 0x3e7
jb 0x100182d4
lea esi, [esp + 0x18]
call fcn.10008990
mov eax, 0x80004005
jmp 0x10018338
cmp byte [ebp], 0
jne 0x10018304
xor ebp, ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.10018350
mov edi, eax
test edi, edi
jl 0x100182a1
cmp edi, 1
je 0x100182a1
test ebp, ebp
jne 0x100182c0
lea esi, [esp + 0x18]
call fcn.10008990
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x1001b780
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1001b8fd
cmp word [edi], 0
je 0x1001b8fd
test ebx, ebx
je 0x1001b8fd
cmp eax, 5
je 0x1001b7bb
cmp eax, 6
jne 0x1001b8fd
cmp dword [esp + 0x24], 0
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x28], eax
push 0
je 0x1001b7ea
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1001b873
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x20000000
push 3
push 0
push 1
push 0xc0000000
push edi
call ebp
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
mov edx, edi
mov dword [ebx], 0
mov dword [esi + 0x2c], 0
call fcn.1000a1d0
cmp dword [esi + 8], 0xffffffff
jne 0x1001b883
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1001b861
cmp eax, 0x20
je 0x1001b861
cmp eax, 0xa7
je 0x1001b861
cmp eax, 0x21
je 0x1001b861
cmp eax, 0x13
je 0x1001b861
test eax, eax
jle 0x1001b902
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call ebp
mov dword [esi + 0x2c], 1
mov dword [ebx], 1
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x1001b89a
call fcn.10002d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001b88b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x200
push edx
push eax
call fcn.100ab490
or eax, edx
je 0x1001b8dc
mov eax, 0xe003300c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x28], 5
jne 0x1001b8f1
call fcn.1001b910
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14

Function at 0x1001e250
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x214]
test eax, eax
je 0x1001e26d
push eax
call fcn.100628c6
add esp, 4
mov dword [esi + 0x214], 0
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
je 0x1001e293
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
push eax
mov dword [esi + 0x210], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
test eax, eax
je 0x1001e2a8
push eax
call fcn.100628c6
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
ret
Function at 0x1001e2b0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp eax, 0xa00000
jbe 0x1001e2ee
mov eax, 0x80004005
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10062448
add esp, 0x20c
ret 4
mov dword [esi + 0x218], ecx
xor ecx, ecx
mov dword [esi + 0x21c], eax
mov edx, 4
mul edx
seto cl
push 0x100e33b4
neg ecx
or ecx, eax
push ecx
call fcn.100628bb
add esp, 8
mov dword [esi + 0x214], eax
test eax, eax
jne 0x1001e33e
mov eax, 0x8007000e
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10062448
add esp, 0x20c
ret 4
mov ecx, dword [esi + 0x21c]
add ecx, ecx
add ecx, ecx
push ecx
push 0xff
push eax
call fcn.10064e10
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.10064e10
add esp, 0x18
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1001e3b8
cmp eax, 0x104
ja 0x1001e3b8
push str.WMCache_
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001e3d4
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001e3d4
call fcn.10002d30
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10062448
add esp, 0x20c
ret 4
push edi
lea edi, [esi + 8]
push edi
push 0
push 0x100d0a20
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001e413
push 0
push 0x20000000
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1001e430
call fcn.10002d30
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10062448
add esp, 0x20c
ret 4
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10062448
add esp, 0x20c
ret 4

Function at 0x1001e650
Capabilities:
Encode data using xor

Disassembly:
test edi, edi
je 0x1001e68c
test esi, esi
je 0x1001e68c
mov edx, dword [ecx]
test edx, edx
je 0x1001e68c
xor ecx, ecx
test esi, esi
jbe 0x1001e68e
push ebx
push ebp
jmp 0x1001e670
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [edx + ebx*4]
inc ecx
cmp ecx, esi
jb 0x1001e670
pop ebp
pop ebx
ret
xor eax, eax
ret
Function at 0x1001e690
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x1001e6a5
push eax
call fcn.100628c6
add esp, 4
mov dword [esi], 0
push 0x100e33b4
push 0x400
call fcn.100628bb
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1001e75c
push 0x400
push 0
push eax
call fcn.10064e10
add esp, 0xc
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x1001e6e1
xor eax, 0xedb88320
test al, 1
je 0x1001e6ee
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e6f0
shr eax, 1
test al, 1
je 0x1001e6fd
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e6ff
shr eax, 1
test al, 1
je 0x1001e70c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e70e
shr eax, 1
test al, 1
je 0x1001e71b
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e71d
shr eax, 1
test al, 1
je 0x1001e72a
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e72c
shr eax, 1
test al, 1
je 0x1001e739
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e73b
shr eax, 1
test al, 1
je 0x1001e748
shr eax, 1
xor eax, 0xedb88320
jmp 0x1001e74a
shr eax, 1
mov edx, dword [esi]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x100
jl 0x1001e6d3
ret
Function at 0x10023020
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10023053
call fcn.10002d30
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0x100e33b4
push 0x80000
call fcn.100628bb
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002307e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
pop ecx
ret
push 0x80000
push 0
push edi
call fcn.10064e10
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x80000
push edi
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100230cd
call fcn.10002d30
push edi
mov ebx, eax
call fcn.100628c6
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
mov esi, edi
jbe 0x10023105
lea ecx, [ecx]
cmp dword [esp + 0x10], 4
jae 0x100230eb
xor eax, eax
jmp 0x100230f6
push ebx
mov eax, esi
call fcn.10022d20
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x1002310c
inc esi
sub dword [esp + 0x10], 1
jne 0x100230e0
mov dword [ebp], 0
push edi
call fcn.100628c6
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100263e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
mov ecx, esi
call fcn.1002fc70
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 1
je 0x10026404
push esi
call ebx
cmp eax, 0xffffffff
jne 0x1002647b
test edi, edi
je 0x10026478
push 8
call fcn.1006387a
lea edx, [esp + 0x10]
push edx
xor ecx, ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 3
mov word [eax], cx
call fcn.1002fd50
add esp, 0xc
test al, al
je 0x1002646b
cmp dword [esp + 0x10], 0
jne 0x10026450
cmp edi, 1
jne 0x1002646b
push esi
lea edi, [esp + 0x10]
call fcn.100259b0
mov esi, dword [esp + 0xc]
push esi
call ebx
push esi
mov edi, eax
call fcn.100628c6
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.100628c6
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1002eb70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
xor edi, edi
push 0x98
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
call fcn.100626bf
add esp, 4
cmp eax, edi
je 0x1002ebad
mov esi, eax
call fcn.10027120
mov edi, eax
test edi, edi
je 0x1002ebad
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov edx, dword [esp + 0x44]
push 8
mov dword [edi + 0x90], edx
call fcn.1006387a
mov esi, eax
add esp, 4
xor eax, eax
push 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 3
mov word [esi], ax
call fcn.1006387a
xor ecx, ecx
add esp, 4
mov word [eax], cx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 3
cmp dword [ebp + 0x30], ecx
jne 0x1002ec2f
cmp byte [ebp + 0x44], cl
jne 0x1002ec2f
mov eax, dword [ebp + 0x48]
lea edx, [esp + 0x20]
push edx
lea esi, [esp + 0x18]
call fcn.100309e0
add esp, 4
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.10027210
mov esi, dword [esp + 0x14]
jmp 0x1002ec3f
mov edx, dword [ebp + 0x48]
mov ecx, dword [edi + 8]
lea eax, [edi + 8]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
push ebp
push ebx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], edi
call fcn.1002e2d0
mov cl, byte [edi + 0x8c]
mov ebp, eax
mov byte [ebx + 0x21], cl
test ebp, ebp
je 0x1002ec85
mov edx, dword [esp + 0x20]
push edx
call fcn.100628c6
add esp, 4
push esi
call fcn.100628c6
mov eax, dword [edi]
mov ecx, dword [eax + 8]
add esp, 4
push edi
call ecx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [edi + 0x78], eax
jbe 0x1002ed41
jmp 0x1002eca0
mov edx, dword [edi + 0x74]
cmp byte [eax + edx], 0
je 0x1002ed33
mov ecx, dword [edi + 0x68]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
lea esi, [esp + 0x3c]
call fcn.10025810
push 0xc
lea ebp, [ebx + 0xc]
call fcn.100626bf
add esp, 4
test eax, eax
je 0x1002ecea
mov edx, esi
push edx
mov esi, eax
call fcn.10025960
mov dword [esp + 0x3c], eax
jmp 0x1002ecf2
mov dword [esp + 0x3c], 0
mov esi, ebp
call fcn.10025070
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x3c]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x2c]
inc dword [ebp + 4]
push eax
call fcn.100628c6
mov eax, dword [edi + 0x80]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + ecx*8]
mov esi, dword [esp + 0x18]
add esp, 4
add dword [ebx + 0x18], edx
mov eax, dword [eax + ecx*8 + 4]
adc dword [ebx + 0x1c], eax
mov eax, ecx
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [edi + 0x78]
jb 0x1002eca0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100628c6
add esp, 4
push esi
call fcn.100628c6
mov edx, dword [edi]
mov eax, dword [edx + 8]
add esp, 4
push edi
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0xc