joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf82d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf82d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf82d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf82d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf82d94
push eax
push esi
call fcn.00f8520b
add esp, 8
pop esi
ret 0x10

Function at 0xf82da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf82e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf82e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf9b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f84dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf82dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf82e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf82ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf82eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf9b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f84dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf82eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf82e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf83000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf83131
push esi
call fcn.00f86145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f75080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf83131
push 0
push ebp
call fcn.00f753a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f75260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf8308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f752f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf83121
push 0xf9b918
push edi
call fcn.00f843f0
push eax
push ebx
push esi
call fcn.00f82f60
push 0xf9b8f8
push edi
call fcn.00f843f0
push eax
push ebx
push esi
call fcn.00f82f60
push 0xf9b8d8
push edi
call fcn.00f843f0
push eax
push ebx
push esi
call fcn.00f82f60
push 0xf9b8c0
push edi
call fcn.00f843f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f82f60
push 0xf9b8a0
push edi
call fcn.00f843f0
push eax
push ebx
push esi
call fcn.00f82f60
push 0xf9b888
push edi
call fcn.00f843f0
push eax
push ebx
push esi
call fcn.00f82f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf841b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f84140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f84140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f84140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f84140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf84bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf84c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf9687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf84c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf84c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40b37b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420a14], 0
jne 0x40b3b3
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a4af
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040a54e
pop ecx
test esi, esi
pop esi
jmp 0x40b3c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x40b3c7
mov al, 1
jmp 0x40b3c9
xor al, al
leave
ret 8

Function at 0x40b3cd
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420a14], 0
jne 0x40b401
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a4af
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040a54e
pop ecx
test esi, esi
pop esi
jmp 0x40b40c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40b412
mov al, 1
jmp 0x40b414
xor al, al
leave
ret 4

Function at 0x40b418
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420a14], 0
jne 0x40b44f
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a4af
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040a54e
pop ecx
test esi, esi
pop esi
jmp 0x40b45c
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x40b462
mov al, 1
jmp 0x40b464
xor al, al
leave
ret 4

Function at 0x40b5b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x41a9bc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x44
push ebx
xor ebx, ebx
cmp byte [0x420a14], bl
jne 0x40b5ef
push esi
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.0040a4af
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0040a54e
pop ecx
cmp esi, ebx
pop esi
jmp 0x40b5fb
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x40b601
mov al, 1
jmp 0x40b648
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40b612
xor al, al
jmp 0x40b648
lea ecx, [ebp - 0x50]
call fcn.0040bfea
lea ecx, [ebp - 0x28]
call fcn.00409edc
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040c055
test al, al
je 0x40b63d
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0040a54e
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b661
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040c00d
cmp eax, 0xffffffff
je 0x40b68b
test al, 0x10
jne 0x40b68b
test al, 1
je 0x40b68b
and al, 0xfe
push eax
push esi
call fcn.0040b37b
test al, al
je 0x40b6c3
cmp byte [0x420a14], 0
push esi
jne 0x40b6b5
lea eax, [ebp - 0xc]
push eax
call fcn.0040a4af
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040a54e
pop ecx
test esi, esi
jmp 0x40b6bd
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x40b6c3
mov al, 1
jmp 0x40b6c5
xor al, al
pop esi
leave
ret 4

Function at 0x40b87c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420a14], 0
jne 0x40b8b3
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a4af
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.0040a54e
pop ecx
mov al, bl
pop ebx
jmp 0x40b8c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4

Function at 0x40b8c6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41aa08
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x320
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x420a14], bl
jne 0x40b92e
lea eax, [ebp - 0x120]
mov byte [ebp - 0x120], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a501
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a021
push dword [ebp - 0x18]
call fcn.0040a54e
pop ecx
jmp 0x40b957
lea eax, [ebp - 0x32c]
mov word [ebp - 0x32c], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x32c]
push eax
mov ecx, esi
call fcn.00409fbd
cmp edi, ebx
jbe 0x40b968
cmp edi, 0x104
ja 0x40b968
push 1
pop eax
jmp 0x40b96a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b9cd
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41aa1c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x320
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x420a14], bl
jne 0x40ba35
lea eax, [ebp - 0x120]
mov byte [ebp - 0x120], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a501
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a021
push dword [ebp - 0x18]
call fcn.0040a54e
pop ecx
jmp 0x40ba5e
lea eax, [ebp - 0x32c]
mov word [ebp - 0x32c], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x32c]
push eax
mov ecx, esi
call fcn.00409fbd
cmp edi, ebx
jbe 0x40ba6f
cmp edi, 0x104
ja 0x40ba6f
push 1
pop eax
jmp 0x40ba71
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420a14], 0
jne 0x40c041
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040a4af
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040a54e
pop ecx
mov eax, esi
pop esi
jmp 0x40c051
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c051
or eax, eax
leave
ret 4

Function at 0x40c5a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c5cd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40c5cd
xor al, al
jmp 0x40c5ed
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00419d50
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40cdf5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41aaf0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x320
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x420a14], bl
jne 0x40ce5d
lea eax, [ebp - 0x120]
mov byte [ebp - 0x120], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a501
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a021
push dword [ebp - 0x18]
call fcn.0040a54e
pop ecx
jmp 0x40ce86
lea eax, [ebp - 0x32c]
mov word [ebp - 0x32c], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x32c]
push eax
mov ecx, esi
call fcn.00409fbd
cmp edi, ebx
jbe 0x40ce97
cmp edi, 0x104
ja 0x40ce97
push 1
pop eax
jmp 0x40ce99
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x412bdd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov esi, dword [eax]
and esi, 7
cmp dword [ebp + 0xc], 5
jae 0x412bfa
xor eax, eax
jmp 0x412d19
sub dword [ebp + 0xc], 4
add dword [ebp + 0x10], 5
push ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [edi + eax]
lea ebx, [eax + ecx]
cmp edx, ebx
jae 0x412c20
mov cl, byte [edx]
and cl, 0xfe
cmp cl, 0xe8
je 0x412c20
inc edx
jmp 0x412c0f
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x412d04
cmp ecx, 2
jbe 0x412c3b
xor esi, esi
jmp 0x412c64
shr esi, cl
test esi, esi
je 0x412c64
cmp esi, 4
ja 0x412cf9
cmp esi, 3
je 0x412cf9
mov eax, esi
shr eax, 1
mov al, byte [eax + edx + 1]
inc eax
test al, 0xfe
je 0x412cf9
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x412cf9
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], ecx
je 0x412ca5
add eax, ecx
jmp 0x412ca7
sub eax, ecx
test esi, esi
je 0x412cd7
and esi, 6
mov ebx, eax
shl esi, 2
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x412cd5
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x412cd2
add eax, dword [ebp - 4]
jmp 0x412cd5
sub eax, dword [ebp - 4]
xor esi, esi
mov ecx, eax
mov byte [edx + 1], al
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
and al, 1
shr ecx, 0x10
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x412c03
or esi, 8
shr esi, 1
inc edi
jmp 0x412c03
push 2
pop eax
pop ebx
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x4168a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 1
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
pop eax
xor edi, edi
push 0x20
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
pop ebp
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, ebp
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x41690d
mov eax, ebp
mov dword [esi + 0x54], eax
mov eax, dword [esi]
cmp eax, dword [esi + 0x20]
mov dword [esi + 0x58], edi
je 0x416948
lea ebx, [esi + 0xc8]
cmp dword [ebx + 8], edi
je 0x41692b
push ebx
call fcn.004165d5
add ebx, 0x28
dec ebp
jne 0x416920
mov ecx, dword [esi + 0x5c]
cmp ecx, edi
je 0x416943
mov eax, dword [esi + 0x14]
push ecx
push eax
call dword [eax + 4]
mov dword [esi + 0x5c], edi
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0041652c
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea ecx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + ecx*8]
push ebp
call fcn.004169e5
mov ebx, eax
cmp ebx, edi
jne 0x4169ac
lea eax, [ebp + 0x20]
push eax
call fcn.004174b7
mov ebx, eax
cmp ebx, edi
jne 0x4169ac
lea eax, [ebp + 0x1c]
push eax
call fcn.004174b7
mov ebx, eax
cmp ebx, edi
jne 0x4169ac
push ebp
call fcn.00416a41
mov ebx, eax
cmp ebx, edi
je 0x4169c1
push esi
mov dword [esi + 0x44], edi
call fcn.00416a21
cmp ebx, edi
jle 0x4169bc
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x4169c1
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x4169d3
cmp dword [esi + 0x40], edi
jne 0x4169d3
cmp dword [esi + 0x3c], edi
jne 0x4169d3
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret 4

Function at 0x41747d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004174a7
pop ebp
ret 0xc
Function at 0x418169
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x41b342
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00409edc
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.004114fd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4181c3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41b375
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.00410da5
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0041154f
push dword [esi + 0x24]
call fcn.0040a54e
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040972b
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004185a7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x419493
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x41b540
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419525
push edi
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41951d
cmp edi, ebx
jne 0x4194ec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x41951d
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x419516
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00419541
mov byte [ebp - 0xd], al
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp + 8]
call fcn.0040a54e
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4020ed
Capabilities:
Parse pe header

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

Function at 0x409d59
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41a004]
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 0x409da4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00409f76
test al, al
jne 0x409d9e
sub edx, 2
cmp edx, edi
jne 0x409d84
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x409dc6
lea eax, [edi + 2]
cmp edx, eax
je 0x409dc6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00409ca5
add esp, 0x10
jmp 0x409ec0
push esi
lea ecx, [ebp - 0x255]
call fcn.00409f76
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 0x409e09
push dword [ebp - 0x25c]
jmp 0x409db6
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 0x409e46
cmp word [ebp - 0x226], 0
je 0x409e67
cmp word [ebp - 0x226], ax
jne 0x409e46
cmp word [ebp - 0x224], 0
je 0x409e67
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00409ca5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x409eb3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x409e20
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x409e9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x409ec0
push 0x409ad5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040e570
add esp, 0x10
jmp 0x409e90
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.00401891
leave
ret

Function at 0x40b7b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4154cc
push 0x4154c4
push str.FlsAlloc
push 0x1f
call fcn.0040b6ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b7e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x413150]
call esi
jmp 0x40b7ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4