joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b13
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100c028]
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x10022b4
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x5c3a3f
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov edi, eax
dec eax
dec eax
je 0x1002b60
dec eax
je 0x1002bae
sub eax, 3
je 0x1002b5b
xor edi, edi
jmp 0x1002bae
push 3
pop edi
jmp 0x1002bae
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002b57
push esi
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x1002ba5
cmp dword [ebp - 0x24], 0xb
je 0x1002ba7
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.010062ff
leave
ret 4

Function at 0x1002d78
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x100d060
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x100c4a4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x1002da1
push eax
call esi
and dword [0x100c4a4], 0
mov eax, dword [0x100c020]
cmp eax, 0xffffffff
je 0x1002db5
push eax
call esi
or dword [0x100c020], 0xffffffff
mov esi, dword [0x100c004]
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
mov edi, 0x100c004
jmp 0x1002df9
mov eax, dword [esi + 4]
test eax, eax
je 0x1002df7
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1002df3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x1002df3
cmp eax, 3
je 0x1002df3
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002dc8
mov esi, dword [0x100c00c]
mov edi, 0x100c00c
jmp 0x1002e3b
mov eax, dword [esi + 4]
test eax, eax
je 0x1002e39
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x1002e35
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x1002e35
cmp eax, 3
je 0x1002e35
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002e0a
push 0x100d060
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x1002fe1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x100300d
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100c4c0]
inc ecx
dec edx
jne 0x1002ff5
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10033db
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100d044]
xor ebx, ebx
cmp eax, ebx
je 0x1003455
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003409
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100d044]
call esi
test eax, eax
je 0x1003458
mov ecx, 0x10022ec
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003438
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100d044]
call esi
test eax, eax
pop edi
je 0x1003458
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x100360c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100c044], 0
mov eax, dword [0x100c028]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jne 0x10036fa
push esi
push 0x10023bc
push 0x10023b4
push eax
call fcn.010061f9
test eax, eax
mov esi, 0x104
je 0x1003672
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.010060be
test eax, eax
je 0x1003672
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100d080
jmp 0x1003693
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x10023a4
lea eax, [ebp - 0x310]
push eax
call fcn.01002bc4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [0x100c058], eax
je 0x10036d3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x100238c
push eax
call esi
push 0x1002378
push dword [0x100c058]
mov dword [0x100c044], eax
call esi
mov dword [0x100c040], eax
cmp dword [0x100c044], 0
pop esi
jne 0x10036e7
mov dword [0x100c044], 0x1003602
cmp dword [0x100c040], 0
jne 0x10036fa
mov dword [0x100c040], 0x10035f8
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret 4
Function at 0x10037bf
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push 0x10023d8
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
jne 0x100388a
push esi
mov esi, 0x100d2c0
push esi
push 0x10023c8
push 0x100d080
call fcn.01002bc4
push edi
push 0x4000002
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100c020], edx
je 0x1003889
push ebx
xor eax, eax
mov ebx, 0x100c8c0
push eax
mov ecx, 0xc5
mov edi, ebx
rep stosd dword es:[edi], eax
mov byte [0x100cad0], al
lea eax, [ebp - 4]
push eax
mov edi, 0x314
push edi
push ebx
push edx
mov dword [0x100c8c0], 0x6e776453
mov dword [0x100c8c4], 0x10000
mov dword [0x100c8c8], 0xc0000013
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
pop ebx
je 0x1003876
cmp dword [ebp - 4], edi
jne 0x1003876
push esi
push 0x10023d8
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
jmp 0x1003889
push dword [0x100c020]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [0x100c020], 0xffffffff
pop esi
pop edi
leave
ret

Function at 0x1003892
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10038ae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp dword [0x101d3e0], 0
jne 0x100390f
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002d09
lea eax, [ebp - 0x280]
push eax
call fcn.0100346e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.DLL_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_MessageBoxA]
call fcn.01002d78
test esi, esi
jne 0x1003919
inc esi
cmp dword [0x100c060], 0
je 0x1003934
push 0x100d060
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
and dword [0x100c060], 0
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x1003d02
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c028]
push esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
test eax, eax
je 0x1003d6e
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
test eax, eax
jne 0x1003d75
xor eax, eax
jmp 0x1003e28
push ebx
mov ebx, dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d3e0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003e27
push edi
push dword [0x100d3e0]
call dword [sym.imp.ADVAPI32.DLL_GetLengthSid]
mov edi, eax
push edi
call fcn.01003be7
test eax, eax
pop ecx
mov dword [esi], eax
je 0x1003e04
mov esi, dword [0x100d3e0]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d3e0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003e26
push dword [0x100d3e0]
call dword [sym.imp.ADVAPI32.DLL_GetLengthSid]
mov esi, eax
push esi
call fcn.01003be7
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
jne 0x1003e0b
push 8
call fcn.01003892
mov ecx, esi
mov esi, dword [0x100d3e0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010062ff
leave
ret 0xc
Function at 0x10044ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10044c1
push 0x2e
push esi
call dword [sym.imp.MSVCRT.DLL_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x100452e
push 0x1002504
push edi
call dword [sym.imp.MSVCRT.DLL__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x100452e
xor ebx, ebx
inc ebx
mov eax, dword [0x101d3e8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101d3e8]
push edx
push 0x10024fc
push edi
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10044f1
push esi
push 0x100c004
call fcn.0100447f
jmp 0x1004531
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x10045eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c028]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100460b
sub eax, ecx
lea ecx, [eax + 1]
mov edx, ecx
push edi
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
je 0x1004641
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01004590
test eax, eax
pop esi
pop ebx
je 0x10046a6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10046a6
test al, 0x10
je 0x10046a6
push 0x100245c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x10046a1
push 0x100250c
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x10046a1
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x10046a1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
inc eax
jmp 0x10046a8
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret 0xc
Function at 0x10062ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c028]
jne 0x1006310
test ecx, 0xffff0000
jne 0x1006310
ret
jmp fcn.0100631a

Function at 0x10078d7
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1007914
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10078f1
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007930
dec esi
je 0x1007929
dec esi
jne 0x1007935
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10215e2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.01021661
jae 0x10215ee
xor ecx, ecx
call fcn.01021661
jae 0x1021618
xor eax, eax
call fcn.01021661
jae 0x1021629
mov al, 0x10
call fcn.01021661
adc al, al
jae 0x102160a
jne 0x1021656
stosb byte es:[edi], al
jmp 0x10215ef
call fcn.0102166d
dec ecx
loop 0x1021635
mov eax, ebp
call fcn.0102166b
jmp 0x1021657
lodsb al, byte [esi]
shr eax, 1
je 0x102167d
adc ecx, 2
mov ebp, eax
jmp 0x1021657
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0102166b
cmp eax, 0x7d00
jae 0x1021655
cmp eax, 0x500
jae 0x1021656
cmp eax, 0x7f
ja 0x1021657
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10215ef
pop ebp
ret 8
Function at 0x401160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00437f1d
add esp, 0xc
pop ebp
ret 0xc

Function at 0x4011e0
Capabilities:
Create directory
Get thread local storage value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, 2
push edi
mov edi, ecx
je 0x4012ef
dec eax
jne 0x401388
add edi, 0x118
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00438a8d
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x46adbc]
mov edi, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012c3
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea ecx, [ebp - 0x214]
push ecx
push ebx
mov edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [esi + 0x1c]
and eax, 0x27
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [edx + 0x14]
push eax
call edx
test al, al
je 0x401382
lea eax, [edi + 0x118]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.00438a8d
mov edx, dword [esi + 4]
add esp, 0xc
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00438a8d
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x180
lea edx, [ebp - 0x108]
push 0x8121
push edx
call fcn.004378ae
add esp, 0xc
mov ebx, eax
inc dword [edi + 0x21c]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
Function at 0x401520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0x8000
jl 0x401574
mov ecx, dword [esi + ebx*4 - 0x1fdd4]
mov eax, dword [esi + 0x228]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40154e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x224]
add eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ecx
call fcn.0043d480
add esp, 0xc
add dword [esi + ebx*4 - 0x1fdd4], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ebx
call fcn.00437f1d
add esp, 0xc
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401630
Capabilities:
Extract resource via kernel32 functions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401758
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401758
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [esi + 0x224], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [esi + 8]
push edi
push 0xffffffffffffffff
push 0x4010e0
push 0x4010c0
push 0x401090
push 0x401060
push 0x401030
push 0x401020
push 0x401010
mov dword [esi + 0x228], eax
call dword [sym.imp.Cabinet.dll_FDICreate]
add esp, 0x24
mov dword [esi + 4], eax
test eax, eax
je 0x40173e
mov ecx, dword [0x46adbc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call ebx
mov edx, dword [eax]
push 0
push 0x8020
mov ecx, eax
mov eax, dword [edx]
push 0
call eax
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
push edi
push edx
call dword [sym.imp.Cabinet.dll_FDIIsCabinet]
movzx eax, word [ebp - 0x16]
mov ecx, dword [0x46adbc]
add esp, 0xc
push ecx
mov dword [esi + 0x220], eax
call ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004013a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
pop edi
pop esi
add eax, 0xb000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret 4
Function at 0x4035a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e4db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x468738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00436d08
push 4
mov dword [ebp - 4], 0
call fcn.00438cdc
mov edi, eax
add esp, 4
test edi, edi
je 0x40361c
call fcn.00437018
mov dword [edi], eax
call fcn.00436dd7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00436cc9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403612
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00436cf1
jmp 0x40361e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b6d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x624]
push 0x104
push edx
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x878], ecx
call fcn.004394c3
add esp, 0xc
push 0x4566d0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x874]
push ecx
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x87c], eax
cmp eax, 0xffffffff
jne 0x41b770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
jmp 0x41b8e5
mov ecx, 0x4566dc
lea eax, [ebp - 0x848]
jmp 0x41b780
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b7a6
test dx, dx
je 0x41b7a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b7a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b780
xor eax, eax
jmp 0x41b7ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41b8ad
mov ecx, 0x4566e0
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b7e6
test dx, dx
je 0x41b7e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b7e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b7c0
xor eax, eax
jmp 0x41b7eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41b8ad
push esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.004394c3
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x41c]
push edx
call esi
mov eax, dword [ebp - 0x884]
push eax
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.004394c3
add esp, 0xc
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x214]
push eax
call esi
test byte [ebp - 0x874], 0x10
je 0x41b87d
mov ecx, dword [ebp - 0x878]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
push eax
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
call fcn.0041b6d0
jmp 0x41b8a1
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push ecx
push edx
mov edx, dword [ebp - 0x878]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, edi
call fcn.0041ba80
mov esi, eax
test esi, esi
jne 0x41b8d8
mov esi, dword [ebp - 0x880]
mov eax, dword [ebp - 0x87c]
lea edx, [ebp - 0x874]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b770
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41b8d8
xor esi, esi
mov ecx, dword [ebp - 0x87c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377d1
mov esp, ebp
pop ebp
ret 0x1c