joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b60
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x408c32
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x408ba0
mov word [ebx + 0x20], 0
mov word [ebx + 0x22], 0
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x24], ax
mov ax, word [ebx + 6]
dec eax
mov word [ebx + 0x26], ax
jmp 0x408ba6
cmp byte [ebx + 0x28], 0
je 0x408c1c
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x24], ax
mov ax, word [ebx + 0x20]
mov word [ebp - 4], ax
mov ax, word [ebx + 0x22]
mov word [ebp - 2], ax
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 4]
push dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_WriteConsoleOutputA
test eax, eax
jne 0x408bf9
lea eax, [ebp - 8]
call fcn.0040878c
mov edx, dword [ebp - 8]
mov eax, dword [0x432af8]
call fcn.00404d28
call fcn.0040341c
call fcn.00402b24
lea eax, [ebx + 0x20]
mov edx, 8
call fcn.00406dac
mov ax, word [ebx + 6]
dec eax
mov word [ebx + 0x22], ax
mov ax, word [ebx + 4]
dec eax
mov word [ebx + 0x20], ax
mov byte [ebx + 0x28], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c39
lea eax, [ebp - 8]
call fcn.004046e4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b94
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a3bd
test al, 0x10
jne 0x40a3c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d0a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d0d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047d4
jmp 0x40d0e2
mov eax, ebx
mov edx, esi
call fcn.00404738
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d0ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d10d
mov al, byte [esp]
jmp 0x40d10f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d794
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d60c
mov eax, dword [0x432c00]
cmp byte [eax], 0
je 0x40d801
mov eax, dword [0x432af8]
call fcn.00403100
call fcn.00402b24
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a86c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d848
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d837
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x432ad0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x433710]
call fcn.00405da4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e524
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e588
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040494c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a000
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e58f
lea eax, [ebp - 0xc]
call fcn.004046e4
ret

Function at 0x423138
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422fbc
dec esi
jne 0x42315a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x423bc8
Capabilities:
Create http request

Disassembly:
cmp byte [0x42fd6c], 0
jne 0x423c2b
mov byte [0x42fd6c], 1
push 0
push 0
push 0
push 0
push 0x423c2c
call sub.wininet.dll_InternetOpenA
mov dword [0x42fd68], eax
push 4
push 0x42fd74
push 6
mov eax, dword [0x42fd68]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
push 0x42fd74
push 5
mov eax, dword [0x42fd68]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
push 0x42fd74
push 2
mov eax, dword [0x42fd68]
push eax
call sub.wininet.dll_InternetSetOptionA
ret
Function at 0x4246e8
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4248c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046e4
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x54], eax
cmp dword [0x42fd68], 0
jne 0x424735
call fcn.00423bc8
cmp dword [0x42fd68], 0
jne 0x42474f
mov eax, esi
mov edx, 0x4248dc
call fcn.00404738
jmp 0x4248a6
cmp dword [0x42fd68], 0
je 0x4248a6
push 0
mov eax, dword [0x42fd70]
push eax
push 0
push 0
mov eax, edi
call fcn.00404b94
push eax
mov eax, dword [0x42fd68]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x424889
xor eax, eax
push ebp
push 0x424882
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, 0x13
mov eax, dword [ebp - 4]
call fcn.00423ce8
test al, al
jne 0x4247af
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc8
je 0x4247e6
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x114]
call fcn.00409f54
mov ecx, dword [ebp - 0x114]
mov eax, esi
mov edx, 0x42490c
call fcn.004049e8
call fcn.0040416c
jmp 0x4248a6
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41ad80]
call fcn.0041e18c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424864
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x42481e
lea edx, [ebp - 0x110]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
add dword [ebx + 0x54], eax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x424841
cmp dword [ebp - 8], 0
jne 0x424807
mov eax, esi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
call fcn.00404738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42486b
mov eax, dword [ebp - 0x10]
call fcn.00403928
ret
lea eax, [ebp - 0x118]
call fcn.00423d28
mov ecx, dword [ebp - 0x118]
mov eax, esi
mov edx, 0x42491c
call fcn.004049e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4248cb
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00404708
ret
Function at 0x42c720
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b84
mov eax, dword [ebp - 0xc]
call fcn.00404b84
xor eax, eax
push ebp
push 0x42c7db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x42c7c0
inc esi
xor ebx, ebx
push 0
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.0042c6ac
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004049e8
mov eax, dword [ebp - 0x10]
call fcn.00404b94
push eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00404b94
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec esi
jne 0x42c76d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c7e2
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404708
ret

Function at 0x42d0b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42d1cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100c]
mov edx, 0x1000
call fcn.00406dac
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
call sub.psapi.dll_EnumProcesses
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebp - 4], eax
lea edx, [ebp - 0x1014]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x1014]
lea edx, [ebp - 0x1010]
call fcn.0040a6d0
mov eax, dword [ebp - 0x1010]
lea edx, [ebp - 0xc]
call fcn.00409c7c
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x42d19e
inc esi
lea ebx, [ebp - 0x100c]
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0042b04c
mov edx, dword [ebp - 8]
mov eax, 0x42d1e4
call fcn.00404c7c
test eax, eax
jg 0x42d198
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 8]
call fcn.0040a6d0
mov edx, dword [ebp - 0x1018]
lea eax, [ebp - 8]
call fcn.0040477c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404ae0
jne 0x42d198
mov bl, 1
jmp 0x42d1a0
add ebx, 4
dec esi
jne 0x42d150
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d1d2
lea eax, [ebp - 0x1018]
mov edx, 3
call fcn.00404708
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404708
ret
Function at 0x42d598
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b84
xor eax, eax
push ebp
push 0x42d6d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004046e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b94
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d6b3
mov eax, dword [ebp - 0xc]
call fcn.00409c20
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x42d6e4
push ebx
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x42d704
call fcn.0040ae8c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d718
push dword [ebp - 8]
push 0x42d730
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404a5c
mov eax, dword [ebp - 0x2c]
call fcn.00404b94
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x42d688
mov eax, edi
mov edx, dword [ebp - 0x14]
call fcn.004048d4
jmp 0x42d6a9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42d740
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x42d6a9
mov eax, edi
mov edx, dword [ebp - 0x14]
call fcn.004048d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00402994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d6dd
lea eax, [ebp - 0x2c]
call fcn.004046e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404708
ret
Function at 0x42ebd0
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x42ed0b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402ce4
dec eax
jl 0x42ecf0
lea edx, [ebp - 8]
mov eax, 1
call fcn.00402d44
mov eax, dword [ebp - 8]
mov edx, 0x42ed20
call fcn.00404ae0
jne 0x42ec1d
push 0x3e8
call sub.kernel32.dll_Sleep_1
call fcn.00402ce4
cmp eax, 2
jl 0x42ecf0
lea edx, [ebp - 0xc]
mov eax, 2
call fcn.00402d44
mov eax, dword [ebp - 0xc]
mov edx, 0x42ed2c
call fcn.00404ae0
jne 0x42ecf0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0042eb4c
cmp dword [ebp - 4], 0
je 0x42ec82
lea eax, [ebp - 0x14]
mov ecx, 0x42ed38
mov edx, dword [ebp - 4]
call fcn.004049e8
mov eax, dword [ebp - 0x14]
call fcn.0040a394
test al, al
jne 0x42ec87
call fcn.00404570
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x42ed4c
mov edx, dword [ebp - 4]
call fcn.004049e8
mov eax, dword [ebp - 0x18]
call fcn.00404b94
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402d44
mov eax, dword [ebp - 0x1c]
call fcn.00404b94
push eax
call sub.kernel32.dll_CopyFileA
push 0x64
call sub.kernel32.dll_Sleep_1
push 1
push 0x42ed64
push dword [ebp - 4]
push 0x42ed70
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404a5c
mov eax, dword [ebp - 0x20]
call fcn.00404b94
push eax
call sub.kernel32.dll_WinExec
call fcn.00404570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ed12
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404708
ret
Function at 0x42eea8
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [0x432c00]
mov byte [eax], 1
mov eax, 0x42eda8
call fcn.00406a30
xor eax, eax
push ebp
push 0x42ef16
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x42ef28
call sub.kernel32.dll_SetConsoleTitleA
call fcn.0042ebd0
mov dl, 1
mov eax, dword [0x42b1cc]
call fcn.0042d940
mov edx, dword [0x432b2c]
mov dword [edx], eax
mov eax, dword [0x432b2c]
mov eax, dword [eax]
call fcn.0042de1c
mov eax, dword [0x432b2c]
mov eax, dword [eax]
call fcn.00403928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42ef20
pop edi
pop esi
pop ebx
call fcn.00404570
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add cl, byte [ebp + 0x13320040]
mov eax, eax
add al, byte [eax]
mov eax, eax
add byte [ebp - 0x72ffffc0], cl
inc eax
add byte [eax], al
lea eax, [eax]
add dword [ebp + 0x40], ecx
add byte [eax], al
add byte [eax], al
add byte [eax], al
adc byte [ecx], ah
inc eax
add byte [eax + 0x14004022], ah
inc eax
add byte [eax], al
retf
Function at 0x4109a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.004103c0
Function at 0x1003edd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003ee2e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003ee2e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1003ee1a
cmp esi, edx
jae 0x1003ee2e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1003ee08
cmp esi, edx
jae 0x1003ee2e
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x1003fde0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bc7b2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101d32d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x1000170c
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x6c], 0
push 1
mov byte [ebp - 4], 6
push 0x10
mov dword [ebx + 0x70], 1
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1003fef1
mov dword [edi + 4], 0
mov dword [edi + 8], 0x1000168c
mov dword [edi + 0xc], 0
mov dword [edi], 0x100016a8
mov dword [edi + 8], 0x100016a4
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101d83dc]
call esi
jmp 0x1003fef3
xor edi, edi
mov dword [edi + 4], ebx
mov dword [ebx + 8], edi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101d83dc]
call esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101d83dc]
call esi
xor eax, eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x5c], eax
mov eax, ebx
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 0x10047d60
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bcd5d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101d32d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp + 8]
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x101d83dc]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x28]
mov edi, dword [edi + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101d83dc]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x28]
push 1
mov edi, dword [eax + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call dword [0x101d83dc]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
mov dword [edi + 0x2c], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 0x34], ecx
mov eax, dword [eax + 0xc]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10047bb0
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push ebx
push 0
call fcn.100f9bd0
mov ebx, dword [edi + 0x10]
push esi
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x101d83dc]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x101d83dc]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x28]
call fcn.10047a70
test esi, esi
je 0x10047e7e
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101d83dc]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b9e50
mov esp, ebp
pop ebp
ret 4