joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423278
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423315
push ebx
push esi
call fcn.00423241
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421ec6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4232c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423314
push edi
push eax
call fcn.0041cb10
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4232e2
call fcn.0041c8d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423313
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421ec6
add esp, 0x20
test eax, eax
jne 0x423301
push edi
call fcn.0041c8d9
jmp 0x423309
push ebx
call fcn.0041c8d9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42b4b0
Capabilities:
Parse pe header

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

Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9

Function at 0x430a70b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x430a70c4
pop dword [ebp - 0x20]
mov eax, 0x430a70c4
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3648c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x48661421
sub ecx, 0x4865d1ec
mov edx, eax
mov esi, 0x430ade00
add esi, dword [ebp - 0x20]
mov ebx, 0x4c89cdad
xor dword [ebp - 0x10], 0xaf3730de
mov edi, dword [esi]
xor dword [ebp - 8], edi
xor edi, ebx
add dword [ebp - 0x10], 0xf7c53970
mov dword [edx], edi
sub dword [ebp - 0x1c], 0x815cddf6
add edx, 0x893dde7f
add edx, 0x76c22185
add esi, 4
loop 0x430a710d
add eax, 0xbfc05d75
add eax, 0x40409e32
xor ebx, ebx
add ebx, eax
add eax, 0xa417a968
add eax, 0x5be8569d
mov ecx, 0x138518b4
sub ecx, 0xd07b18b4
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4165e8
push 0x67
push edi
call esi
push 0x64
push 0x416508
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], 0x401370
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 6
mov dword [ebp - 0x30], 0x6d
mov dword [ebp - 0x2c], 0x416508
call esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0x2bc
push 0x438
push 0x80000000
push 0x80000000
push 0xca0000
push 0x4165e8
push 0x416508
push 0
mov dword [0x416500], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x401272
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e4c
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar ecx, 1
mov esi, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar esi, 1
sub esi, ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push 5
cdq
push 0
sub eax, edx
sar ecx, 1
push 0
sar eax, 1
sub eax, ecx
mov dword [ebp - 0x14], esi
push eax
push esi
push 0
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0
push 0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401350
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call ebx
test eax, eax
jne 0x40133c
lea eax, [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x70]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x401320
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x68]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401e4c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40299a
Capabilities:
Parse pe header

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

Function at 0x4070fd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415040]
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 0x407148
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040731a
test al, al
jne 0x407142
sub edx, 2
cmp edx, edi
jne 0x407128
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40716a
lea eax, [edi + 2]
cmp edx, eax
je 0x40716a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407049
add esp, 0x10
jmp 0x407264
push esi
lea ecx, [ebp - 0x255]
call fcn.0040731a
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 0x4071ad
push dword [ebp - 0x25c]
jmp 0x40715a
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 0x4071ea
cmp word [ebp - 0x226], 0
je 0x40720b
cmp word [ebp - 0x226], ax
jne 0x4071ea
cmp word [ebp - 0x224], 0
je 0x40720b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407049
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407257
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4071c4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40723f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407264
push 0x406e79
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409e30
add esp, 0x10
jmp 0x407234
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.00401e4c
leave
ret

Function at 0x40811e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fa8c
push 0x40fa84
push str.FlsAlloc
push 0x1f
call fcn.00408059
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408152
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e1b8]
call esi
jmp 0x408158
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40819c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fa9c
push 0x40fa94
push str.FlsGetValue
push 0x21
call fcn.00408059
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4081db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40faa4
push 0x40fa9c
push str.FlsSetValue
push 0x22
call fcn.00408059
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408215
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e1b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40db50
Capabilities:
Parse pe header

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

Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push 0x4040e6
push 0x4040ad
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100220f6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100220f6
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100220f6
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100220f6
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100220f6
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8

Function at 0x100220f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10022105
pop dword [ebp - 0x18]
mov eax, 0x865a8596
sub eax, 0x76586491
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xdff6d5f8
sub dword [ebp - 0x28], 0x91a490ad
mov dword [ebp - 0x24], 0x220e8c90
add dword [ebp - 0x24], 0x1024bfb5
mov dword [ebp - 0x20], 0x76223345
sub dword [ebp - 0x20], 0x29d5ef17
mov dword [ebp - 0x1c], 0x766cc338
sub dword [ebp - 0x1c], 0x766cc338
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa514c292
add dword [ebp - 0x28], 0xcf5da6c4
mov dword [ebp - 0x24], 0xf11d817e
sub dword [ebp - 0x24], 0xafb12009
mov dword [ebp - 0x20], 0xba4354bb
sub dword [ebp - 0x20], 0x56d3e84f
mov dword [ebp - 0x1c], 0x838157f8
add dword [ebp - 0x1c], 0x7c7ea808
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38e82
push 0
call eax
mov ecx, 0xddff6b40
sub ecx, 0xddff2d3e
xor ebx, ebx
add ebx, eax
mov edi, 0x10030c00
add edi, dword [ebp - 0x18]
mov edx, 0x9029497c
sub edx, 0xa93b48e9
xor dword [ebp - 8], ecx
mov esi, dword [edi]
mov dword [ebp - 4], 0xafd203be
add esi, edx
sub dword [ebp - 4], eax
mov dword [ebx], esi
add ebx, 4
add edi, 0x6489f953
add edi, 0x9b7606b1
loop 0x10022219
add eax, 0x4c67b049
sub eax, 0x4c66c56e
mov ebx, eax
add eax, 0x7325419e
sub eax, 0x73254199
mov ecx, 0x20cad039
sub ecx, 0x10cad039
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4016d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x467674], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x401741
push str.ADVAPI32.DLL
mov dword [0x467688], 0xc
mov dword [0x467690], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401737
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401737
push 0
push 0x46768c
push 1
push 0x4296b8
call ebx
mov dword [0x467674], eax
jmp 0x401741
mov dword [0x46768c], 0
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
push dword [esi + 4]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 4
push 0x467688
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x401823
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401823
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401823
mov ecx, dword [esi + 0xc]
xor edi, edi
test ecx, ecx
jle 0x4017eb
mov edx, dword [esi + 8]
lea ebx, [edi + 1]
mov eax, dword [esi + 0x1c]
imul edx, ebx
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
xor ecx, ecx
cmp edi, eax
cmovne ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx - 4], ecx
test edi, edi
jne 0x4017d8
mov edi, dword [esi + 0xc]
lea eax, [edi - 1]
mov edi, ebx
imul eax, dword [esi + 8]
mov dword [edx - 8], eax
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jl 0x4017b0
mov eax, dword [esi + 8]
imul eax, ecx
xor ecx, ecx
add eax, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], ecx
jle 0x401810
nop
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [esi + 0x10]
jl 0x401800
mov eax, dword [esi + 0x14]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401830
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, eax
mov dword [esi + 0x18], edx
test edx, edx
je 0x401879
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx*4]
push eax
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401879
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0x14], ecx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401f80
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x430100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40217a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x20c]
push 0x103
push esi
push eax
call ebx
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402179
push edi
push esi
call fcn.004022e0
add esp, 8
lea eax, [ebp - 0x20c]
push 0x4297b4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x402172
nop dword [eax]
lea ecx, [ebp - 0x34c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402166
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
test byte [ebp - 0x34c], 0x10
je 0x402125
add esp, 0xc
lea eax, [ebp - 0x320]
mov ecx, 0x4297b8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402084
test dl, dl
je 0x402080
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402084
add eax, 2
add ecx, 2
test dl, dl
jne 0x402064
xor eax, eax
jmp 0x402089
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
mov eax, 0x4297bc
lea ecx, [ebp - 0x320]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4020c0
test dl, dl
je 0x4020bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4020c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4020a0
xor eax, eax
jmp 0x4020c5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
push edi
mov edx, fcn.004022e0
lea ecx, [ebp - 0x108]
call fcn.00401f80
mov eax, dword [ebp - 0x350]
add esp, 0xc
jmp 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
mov eax, dword [ebp - 0x350]
add esp, 8
jmp 0x402020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422656
mov esp, ebp
pop ebp
ret