joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008c40
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x10008c8d
push str.GetFileSizeEx__
push 0x11e
push str..QHImageHlp.c
call fcn.1000b1a0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x10008d24
jg 0x10008cb3
cmp ebx, ecx
jb 0x10008d24
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10008ce9
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.1000b1a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.100076e0
test eax, eax
je 0x10008cdf
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008d0a
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10008d31
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10008d31
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x100095f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1006a1b0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x10009730
cmp dword [esp + 0x28], ebp
je 0x10009730
push ebx
push 0x2800
call fcn.1000f0e1
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10009653
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000d1df
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x10009660
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.10007570
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009706
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.1000e610
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100096f9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x100096f9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.10009390
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x10009710
inc edi
cmp edi, 0x10
jl 0x10009660
push ebx
call fcn.1000e576
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000d1df
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.1000d1df
add esp, 0x1c
ret
Function at 0x100097e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1000981a
cmp dword [esp + 0x34], esi
je 0x1000981a
push 0x200
call fcn.1000f0e1
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10009825
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009984
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x1000991a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000987d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100098f3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100098e8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10009750
cmp edx, edi
jb 0x100098e8
ja 0x100098e2
cmp eax, dword [esp + 0x24]
jbe 0x100098e8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x10009870
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10009930
cmp dword [esp + 0x24], 0
jbe 0x10009984
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.10007570
add esp, 0xc
test eax, eax
jne 0x10009969
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.1000e576
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.10009390
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.1000e576
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1000c740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1001c03b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1006a1b0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x1006d3c8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1000ecf5
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1000c92d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c7de
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1000e610
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1000c430
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1000c845
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x100678c8
push eax
call fcn.1000e967
add esp, 0xc
cmp eax, 1
jne 0x1000c845
mov eax, dword [ebp - 0x14]
mov dword [0x1006d3c8], eax
jmp 0x1000c915
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000c85f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000c873
push ebx
push esi
call fcn.1000cb90
jmp 0x1000c875
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x1006d3c8], eax
test eax, eax
jne 0x1000c897
push 0x100686c8
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1000e0db
push eax
lea edx, [ebp + 0x84]
push 0x100678c8
push edx
mov edi, 1
call fcn.1000edc8
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1000c570
test eax, eax
jne 0x1000c90e
push 0x100686c8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1000e0db
call fcn.1000c610
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x1006d3c8]
test esi, esi
je 0x1000c8ff
call fcn.1000cc70
mov dword [0x1006d3c8], 0
jmp 0x1000c906
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000c90c
ret
mov eax, dword [0x1006d3c8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1000c92d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1006d3c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1000d1df
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1000c960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1006a1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x1006d3c8]
xor edi, edi
cmp ecx, edi
jne 0x1000c9ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c9b8
mov dword [ebp - 0x14], edi
jmp 0x1000c9d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000ca66
mov ecx, dword [0x1006d3c8]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c997
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c997
mov ebx, 0x1006d3c8
mov dword [ebp - 4], edi
call fcn.1000ca80
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000ca0e
push 0x100686c8
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000e0db
mov ecx, dword [0x1006d3c8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000ca28
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000ca52
push 0x100686c8
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000e0db
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000ca49
call fcn.1000cd90
mov eax, 0x1000ca4f
ret
mov eax, dword [0x1006d3c8]
mov eax, dword [eax]
test eax, eax
je 0x1000ca64
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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
Function at 0x1000ca80
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000caad
xor ecx, ecx
jmp 0x1000cab9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000cb6d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000cae0
mov dword [esp + 0xc], esi
jmp 0x1000cb40
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000cb39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000cb2c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000cb40
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cb40
push 0x100678d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000cb40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000cb63
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000cad2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000cb81
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000ccc0
test eax, eax
je 0x1000cb81
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000cb90
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001c00b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006a1b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000e610
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000cc28
push 0x100686c8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000e0db
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000d1df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006a1b0]
jne 0x1000d1e9
repz ret
jmp fcn.1000f54d
Function at 0x1001867d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000f7fa
and dword [ebp - 4], 0
cmp dword [0x1006c280], 0
mov ebx, eax
jne 0x1001872e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100187df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100187df
push eax
call fcn.1000f788
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006c280], eax
call esi
push eax
call fcn.1000f788
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006c284], eax
call esi
push eax
call fcn.1000f788
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1006c288], eax
call esi
push eax
call fcn.1000f788
pop ecx
mov dword [0x1006c290], eax
test eax, eax
je 0x1001872e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f788
pop ecx
mov dword [0x1006c28c], eax
mov eax, dword [0x1006c28c]
cmp eax, ebx
je 0x10018786
cmp dword [0x1006c290], ebx
je 0x10018786
push eax
call fcn.1000f803
push dword [0x1006c290]
mov esi, eax
call fcn.1000f803
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018786
test edi, edi
je 0x10018786
call esi
test eax, eax
je 0x1001877d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001877d
test byte [ebp - 0xc], 1
jne 0x10018786
or dword [ebp + 0x10], 0x200000
jmp 0x100187bf
mov eax, dword [0x1006c284]
cmp eax, ebx
je 0x100187bf
push eax
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187bf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100187bf
mov eax, dword [0x1006c288]
cmp eax, ebx
je 0x100187bf
push eax
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006c280]
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100187e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403850
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], eax
push ebp
test eax, eax
je 0x403a2c
push 0x2800
call fcn.00408b40
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x403a2c
push ebx
xor ebx, ebx
xor ecx, ecx
push esi
mov al, byte [ecx + 0x401008]
mov edx, ecx
mov byte [ebx + ebp], al
inc ecx
inc ebx
test bl, 1
jne 0x4038b3
cmp ecx, 0x2800
cmovae ecx, edx
inc ecx
jmp 0x4038c0
lea eax, [edx + 2]
cmp eax, 0x2800
jae 0x4038c8
lea ecx, [edx + 3]
cmp ecx, 0x2800
jb 0x403895
push ebx
push ebp
mov dword [esp + 0x1c], ebx
call fcn.00406c90
add esp, 8
mov dword [esp + 0xc], 0
test eax, eax
lea esi, [esp + 0x34]
cmovne ebp, eax
mov dword [esp + 0x1c], ebp
nop dword [eax + eax]
xor eax, eax
mov edx, eax
mov cl, al
add cl, byte [esp + 0xc]
and edx, 7
inc eax
xor cl, byte [edx + section..text]
mov byte [esi], cl
inc esi
cmp eax, 0x10
jl 0x4038f2
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, 8
jl 0x4038f0
xor ecx, ecx
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x403a0c
mov eax, 0x10
mov dword [esp + 0x10], ebp
sub eax, ebp
push edi
mov edi, ebp
mov dword [esp + 0x1c], eax
nop word [eax + eax]
add eax, edi
mov esi, 0x10
cmp eax, ebx
jbe 0x40394f
mov esi, ebx
sub esi, ecx
push esi
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [esp + 0x34], xmm0
call fcn.00405680
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0xb8]
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebp, 7
nop word [eax + eax]
mov ecx, dword [edx - 4]
lea edx, [edx - 0x10]
add ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
add eax, dword [esp + 0x2c]
shl ecx, 3
shl eax, 3
xor ecx, eax
mov eax, dword [edx + 0x14]
add eax, dword [esp + 0x34]
xor edi, ecx
mov ecx, dword [edx + 0x18]
add ecx, dword [esp + 0x34]
shl ecx, 3
shl eax, 3
xor ecx, eax
xor ebx, ecx
sub ebp, 1
jns 0x403980
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
push eax
push edi
mov dword [esp + 0x3c], ebx
call fcn.00405680
mov ecx, dword [esp + 0x1c]
add edi, 0x10
mov ebx, dword [esp + 0x24]
add ecx, 0x10
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp ecx, ebx
jb 0x403940
mov ebp, dword [esp + 0x20]
pop edi
nop word [eax + eax]
cmp byte [ebx + ebp - 1], 0x90
jne 0x403a0c
sub ebx, 1
jne 0x403a00
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebx
pop ebp
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00403bab
add esp, 0xac
ret
mov ecx, dword [esp + 0xac]
xor eax, eax
pop ebp
xor ecx, esp
call fcn.00403bab
add esp, 0xac
ret
Function at 0x403f2d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x403f62
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x403f5f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x403f6b
add edx, 0x28
cmp edx, esi
jne 0x403f4d
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x403f68

Function at 0x4043aa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4043e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4043e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4043e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4043e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4043e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40df6d
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 0x40e00a
push ebx
push esi
call fcn.0040df36
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.0040decc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40dfb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e009
push edi
push eax
call fcn.0040ad90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40dfd7
call fcn.0040a340
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e008
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040decc
add esp, 0x20
test eax, eax
jne 0x40dff6
push edi
call fcn.0040a340
jmp 0x40dffe
push ebx
call fcn.0040a340
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 0x4125eb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x412605
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41261c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x412674
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040e6a6
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x412674
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x412674
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x412674
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41266e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x412670
xor bl, bl
mov al, bl
jmp 0x412676
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x416360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41638d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41638d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401224
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x14], eax
mov esi, dword [eax + 0x78]
add esi, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0x10], eax
add ecx, ebx
mov eax, dword [esi + 0x24]
add eax, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x18], eax
jbe 0x4012c4
push edi
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.0040112b
xor eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 8], edi
jbe 0x4012b4
mov ecx, dword [ebp - 8]
cmp dword [ecx + edi*4], eax
je 0x401285
inc edi
cmp edi, dword [ebp + 8]
jb 0x401278
jmp 0x4012b4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, esi
jb 0x4012ae
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x7c]
add eax, esi
cmp ecx, eax
jae 0x4012ae
call fcn.00401192
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + edi*4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x18]
jb 0x401261
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4012cd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x4012f0
mov ecx, dword [esi + 0x30]
call fcn.00401161
cmp eax, ebx
je 0x4012fa
mov esi, dword [esi]
cmp esi, edi
jne 0x4012e2
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x4012f6

Function at 0x4012ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x40130a
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00401224