joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a090
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46b8a4]
cmp byte [eax + 0xc], 0
je 0x45a1fd
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a1f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46c820], 0
jne 0x45a0e4
push 0x45a204
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45a20c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c820], eax
cmp dword [0x4683b4], 0
jne 0x45a1df
push 0x45a21c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4683b4], eax
cmp dword [0x4683b4], 0
je 0x45a1df
push 0x45a228
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c824], eax
push 0x45a238
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c828], eax
push 0x45a24c
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c82c], eax
push 0x45a264
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c830], eax
push 0x45a27c
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c834], eax
push 0x45a290
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c838], eax
push 0x45a2a8
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c83c], eax
push 0x45a2c0
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c840], eax
push 0x45a2dc
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c844], eax
push 0x45a2e8
mov eax, dword [0x4683b4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x46c848], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a1fd
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45f378
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x45f3da
call fcn.0045f328
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0045b678
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0045b678
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45f458
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x469f9c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45f532
cmp dword [0x469f98], 0
jne 0x45f532
cmp dword [0x46a17c], 0
je 0x45f4ec
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0045f228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45f4d2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0045f228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45f4d2
lea ebx, [ebp - 0x84]
jmp 0x45f4d3
inc ebx
call fcn.0045f414
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x45f56d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x469fa0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0045b678
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x469fa3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x45f56d
cmp dword [0x469f98], 0
je 0x45f54c
cmp dword [0x469f98], 0xffffffff
je 0x45f56d
push esi
call dword [0x469f98]
pop ecx
mov eax, dword [0x469f9c]
test eax, eax
je 0x45f56d
cmp dword [0x469f9c], 0xffffffff
je 0x45f56d
cmp byte [eax], 0
je 0x45f56d
push esi
push eax
call fcn.0045f378
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fd04
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46d0ac], 0
jne 0x45fd85
cmp dword [0x46d0cc], 0
jne 0x45fd34
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46d0cc], eax
test eax, eax
jne 0x45fd34
push str.GetEnvironmentStrings_failed
call fcn.0045f584
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46d0cc]
jmp 0x45fd48
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0045b678
pop ecx
mov edi, eax
test eax, eax
jne 0x45fd40
lea edi, [ebp + 1]
push edi
call fcn.0045af4c
pop ecx
mov ebx, eax
mov dword [0x46d0b0], ebx
test ebx, ebx
jne 0x45fd72
xor eax, eax
jmp 0x45fe48
push edi
mov edx, dword [0x46d0cc]
push edx
push ebx
call fcn.0045b4f8
add esp, 0xc
jmp 0x45fda5
xor esi, esi
mov ebx, dword [0x46d0ac]
jmp 0x45fd9f
push eax
call fcn.0045b678
pop ecx
test eax, eax
jne 0x45fd9b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45fd8f
lea ebx, [esi + 4]
push 4
mov dword [0x46d0b4], ebx
inc ebx
push ebx
call fcn.0045aa24
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45fdc8
xor eax, eax
jmp 0x45fe48
cmp dword [0x46d0ac], 0
jne 0x45fdf9
xor esi, esi
mov ebx, dword [0x46d0b0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45fdea
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0045b678
pop ecx
mov edi, eax
test eax, eax
jne 0x45fde0
jmp 0x45fe2a
xor esi, esi
mov ebx, dword [0x46d0ac]
mov eax, dword [esp]
mov edi, eax
jmp 0x45fe24
push eax
call fcn.0045b678
pop ecx
test eax, eax
je 0x45fe19
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45fe1d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45fe08
mov eax, dword [0x46d0ac]
test eax, eax
je 0x45fe3a
push eax
call fcn.0045af5c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46d0ac], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10003a88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10006108]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImageIOHandler::constructor_void_]
mov dword [esi], vtable.QGifHandler.0
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 0xc], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [sym.imp.QtCore4.dll_struct_QByteArray::Data_QByteArray::shared_null]
mov dword [esi + 0x10], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov ebp, dword [sym.imp.QtGui4.dll_public:_void___thiscall_QImage::constructor_void_]
lea ecx, [esi + 0x14]
mov byte [esp + 0x24], 2
call ebp
or eax, 0xffffffff
push 0x80c8
mov byte [esp + 0x28], 3
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 4
cmp edi, ebx
je 0x100016f7
lea ecx, [edi + 0xc]
call ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x70], ebx
mov byte [edi + 0x80c4], bl
mov byte [edi + 0x74], 1
mov dword [edi + 0x80c0], 0xffffffff
mov dword [edi + 0x38], ebx
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x4c], bl
mov byte [edi], bl
mov byte [edi + 1], bl
jmp 0x100016f9
xor edi, edi
or ecx, 0xffffffff
mov eax, ecx
mov dword [esi + 0x30], eax
mov dword [esi + 8], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10002fba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10006108]
jne 0x10002fc4
repz ret
jmp fcn.10003507
Function at 0x10001b00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10001b0a
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
ret 0xc

Function at 0x10001b30
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10001b3a
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
ret 0xc

Function at 0x10009ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call sym.YunImage.fne_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x10009af2
mov dword [esp + 0x2c], 0
jmp 0x10009b0d
mov ecx, ebp
call sym.YunImage.fne_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call sym.YunImage.fne_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call sym.YunImage.fne_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
cmp eax, esi
jae 0x10009b4d
mov ecx, ebp
call sym.YunImage.fne_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
mov dword [esp + 0x10], eax
jmp 0x10009b51
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call sym.YunImage.fne_public:_long_int___thiscall_CxImage::GetTransIndex_void_const
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x10009bbd
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x10009bb8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call sym.YunImage.fne_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x10009bab
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call sym.YunImage.fne_public:_void___thiscall_CxImage::SetPixelIndex_long_int__long_int__unsigned_char_
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x10009b78
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x10009b66
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x1000b850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100942d8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x40]
push esi
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x1000b8d2
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
je 0x1000b8f7
push ebp
push eax
lea ecx, [esp + 0x18]
call sym.YunImage.fne_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x38], 0
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x30], 0xffffffff
call sym.YunImage.fne_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov al, bl
jmp 0x1000b8f9
mov edi, 0x100c5f40
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x1000b9a0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100942f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], sym.YunImage.fne_const_CxImage::vftable
call sym.YunImage.fne_protected:_void___thiscall_CxImage::Startup_unsigned_long_int_
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
call sym.YunImage.fne_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
lea edx, [esp + 8]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x30], 0
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call sym.YunImage.fne_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x1000ba20
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10094318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
call sym.YunImage.fne_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
mov edx, dword [esp + 0x38]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
call sym.YunImage.fne_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov ecx, dword [esp + 0x20]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x1002adc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x1002ae02
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x1002adda
cmp ax, word [esi + 0x14]
jne 0x1002ae02
mov si, word [esi + 0xe]
test si, si
jbe 0x1002ae02
cmp si, 0x9ec
ja 0x1002ae02
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x1003d0c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x1003d129
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x1003d0eb
test byte [eax + 0x230], 1
jne 0x1003d108
movzx si, byte [edx]
cmp si, cx
jbe 0x1003d108
push str.Invalid_background_palette_index
push eax
call fcn.100354c0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.1003bdf0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x1003d1a1
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.1003bdd0
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.1003bdd0
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.1003bdd0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x1003d19a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x1003d19a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.100354c0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x1003d110
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x1003d1d4
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.100354c0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.1003bdd0
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.1003bdf0
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x1003f900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1003f930
push esi
call fcn.1003fec0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x1003f929
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1003f9b3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x1003f99f
mov eax, dword [esi + 8]
test eax, eax
je 0x1003f954
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1003f99b
cmp eax, 2
je 0x1003f99f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003f947
cmp eax, 3
je 0x1003f97a
cmp eax, 1
jne 0x1003f947
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1003f947
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003f947
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.1003f9e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003f9d3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.1003f9e0
add esp, 4
pop esi
ret

Function at 0x10040940
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x100409fa
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x100409fa
cmp byte [eax + 1], 0x64
jne 0x100409fa
cmp byte [eax + 2], 0x6f
jne 0x100409fa
cmp byte [eax + 3], 0x62
jne 0x100409fa
cmp byte [eax + 4], 0x65
jne 0x100409fa
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x10043370
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.1004b490
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.1004b450
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x100433b4
push edi
call fcn.1004b4a0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.100434b0
mov dword [esi + 4], fcn.10043600
mov dword [esi + 8], fcn.100436b0
mov dword [esi + 0xc], fcn.10043760
mov dword [esi + 0x10], 0x10043810
mov dword [esi + 0x14], 0x10043880
mov dword [esi + 0x18], 0x100438f0
mov dword [esi + 0x1c], 0x10043a70
mov dword [esi + 0x20], 0x10043c60
mov dword [esi + 0x24], fcn.10043e50
mov dword [esi + 0x28], 0x10043f50
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x10043416
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x100434a8
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x100434a8
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x10043471
cmp al, 0x4d
jne 0x10043495
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10085540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x10085580
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.10093740
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x100855a1
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100855d8
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.10093740
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x100855f1
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x1008568e
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x10085615
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x10085671
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x10085682
cmp edx, dword [ecx - 0x10]
jne 0x10085682
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x10085611
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret