joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bac0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10089570
mov edi, dword [esp + 0x10]
push str.MAG1
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetPropA]
mov esi, eax
test esi, esi
jne 0x1006bb0a
call fcn.100a0c60
mov ebx, eax
push 0x38
push ebx
call fcn.100a0c80
mov esi, eax
push 0x38
push 0
push esi
call fcn.100a9900
mov dword [esi], ebx
jmp 0x1006bb0c
xor ebx, ebx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x38]
push eax
mov dword [esi + 0x20], edx
push ecx
push 0
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esi + 4], ebp
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [esp + 0x18]
push 0xcf0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov ecx, dword [esi + 0x20]
push 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x24]
sub edx, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push 0xef0000
push eax
push str.GEARMagnifyWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
jne 0x1006bbaf
test ebx, ebx
je 0x1006bbaf
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0xffffe886
push 0xbe
push str.C:_accusoftgear_sourceguiguimag.c
call fcn.10046940
push ebx
call fcn.100a12c0
push esi
push 0
push edi
mov dword [esi + 0x28], edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0xf
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_SetScrollRange]
push 0
push 7
push 1
push edi
call dword [sym.imp.USER32.dll_SetScrollPos]
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.10043990
xor ecx, ecx
push 5
mov eax, dword [esp + 0x28]
push edi
test eax, eax
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x30]
test eax, eax
setl dl
dec edx
and edx, eax
mov dword [esi + 0xc], edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1006bc18
mov dword [eax], edi
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x20
Function at 0x10078940
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push str.GEAR1
push ebx
call dword [sym.imp.USER32.dll_GetPropA]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
cmp ecx, 0x1ead
jne 0x10078a41
mov esi, dword [eax + 0x38]
test esi, esi
je 0x10078a58
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x10078a2c
mov edi, dword [esi + 8]
call ebp
cmp dword [edi + 4], eax
jae 0x10078a2c
test edi, edi
je 0x100789a1
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100789ad
mov edx, dword [esi]
mov dword [esi + 8], edx
mov eax, dword [esi + 8]
test eax, eax
je 0x10078a2c
mov edi, dword [eax]
push edi
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
je 0x100789cb
lea eax, [esp + 0x38]
push eax
push edi
call fcn.10084e50
call ebp
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 8]
add eax, edx
lea edx, [esp + 0x14]
push edx
push edi
mov dword [ecx + 4], eax
call sym.GEAR32PO.OCX_IG_device_rect_get
lea eax, [esp + 0x14]
push 2
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 8]
push edx
call sym.GEAR32PO.OCX_IG_display_image_to_device
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x24]
push 0
push edx
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x1007897c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10078a58
push 0
push ecx
push 0x113
push ebx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x100a7800
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
mov ax, word [edi + 6]
cmp ax, word [esp + 0x28]
jbe 0x100a7914
push esi
push ebp
push ebx
xor ebp, ebp
push edi
xor ebx, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.100a7920
mov esi, eax
mov dword [esp + 0x10], 8
lea ecx, [esi + 0x28]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
cmp eax, ebp
je 0x100a78b1
mov ecx, dword [eax + 0x10]
mov ebp, dword [esp + 0x14]
mov edx, dword [eax + 0x14]
inc ebx
add ebp, ecx
mov ecx, dword [esp + 0x18]
adc ecx, edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x18]
add ebp, ecx
mov ecx, dword [esp + 0x20]
adc ecx, edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x20]
add ebp, ecx
push eax
mov eax, dword [edi]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x2c]
push eax
adc ebp, edx
mov dword [esp + 0x30], ebp
call fcn.100a1010
xor ebp, ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
jne 0x100a784d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
mov ecx, 1
mov dword [esi + 0x20], edx
mov dx, word [esp + 0x34]
sub ecx, ebx
mov dword [esi], 1
mov dword [esi + 0x24], eax
add word [edi + 6], cx
cmp word [edi + 6], dx
ja 0x100a781c
pop ebx
pop ebp
pop esi
pop edi
add esp, 0x1c
ret 8
Function at 0x100a9770
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
ret 0xc

Function at 0x100a97a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
ret 0xc

Function at 0x100a97e0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
lea edx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x100aaca0
Capabilities:
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
xor edx, edx
test eax, eax
setne dl
mov eax, edx
ret 8

Function at 0x100aacd0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100aad17
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
je 0x100aad11
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
mov eax, 1
pop esi
ret 0xc
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
ret 0xc

Function at 0x100aad50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
mov dword [ebx], 0
je 0x100aad6b
mov dword [esi], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100aad9f
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 2
call edi
test esi, esi
mov dword [ebx], eax
je 0x100aad99
push 9
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x100aad99
push 9
call edi
mov dword [esi], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebx
ret 8

Function at 0x100aadb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100aadf4
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
je 0x100aadee
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
mov eax, 1
pop esi
ret 8
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
ret 8
Function at 0x100abe10
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
push esi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
call fcn.100aabf0
test eax, eax
jne 0x100abe41
cmp esi, 6
je 0x100abe41
cmp esi, 5
je 0x100abe41
cmp esi, 2
je 0x100abe41
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x100abee0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 8], 3
jne 0x100abf32
mov ecx, dword [ebp - 0x24]
and ecx, 0xffff
test ecx, ecx
jne 0x100abf32
cmp dword [ebp - 0xc], 0x24a
jne 0x100abf32
mov dword [ebp - 0x28], 0
mov eax, 1
cpuid
test edx, 0x800000
je 0x100abf2d
mov eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
jmp 0x100abf34
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100bc480
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
xor ecx, ecx
mov edi, 0x100
mov eax, ecx
mov esi, 8
test al, 1
je 0x100bc4a1
shr eax, 1
xor eax, 0xedb88320
jmp 0x100bc4a3
shr eax, 1
dec esi
jne 0x100bc494
mov dword [edx], eax
inc ecx
add edx, 4
dec edi
jne 0x100bc48d
pop edi
pop esi
ret

Function at 0x100bc4c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x100bc4f9
push edi
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + ebp]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edi + edx*4]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x100bc4da
pop ebx
pop ebp
pop edi
pop esi
ret
Function at 0x100e4360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1b4
lea eax, [esp]
push esi
push edi
push eax
call fcn.100e3510
mov eax, dword [esp + 8]
test eax, eax
je 0x100e4483
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add eax, 0xc6
push str.Windows_TWAIN_32_bit_Application
push eax
call esi
lea ecx, [esp + 0x30]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xc]
push str.TWAIN_32.DLL
push edx
call esi
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x2f], 0x5c
je 0x100e43d4
lea eax, [esp + 0x30]
push 0x10122edc
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x30]
push ecx
push edx
call esi
lea ecx, [esp + 0x134]
push 0x4000
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [eax + 0x48], 0
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x100e446b
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 8]
mov dword [ecx + 0x48], eax
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x48]
test eax, eax
je 0x100e445b
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 8]
mov dword [ecx + 0x44], eax
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x44]
test eax, eax
jne 0x100e4450
push 1
push 0
push 0xfffff055
push 0x428
jmp 0x100e4479
xor eax, eax
pop edi
pop esi
add esp, 0x1b4
ret
push 3
push 0
push 0xfffff055
push 0x432
jmp 0x100e4479
push 4
push 0
push 0xfffff055
push 0x435
push str.C:_accusoftgear_sourceSCANNERTWAIN_twain.c
call fcn.10046940
pop edi
mov eax, 1
pop esi
add esp, 0x1b4
ret
Function at 0x100ee690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x60]
push esi
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x100ee6c1
push eax
push esi
push 0xffffffffffffffff
push 0xb48
push str.C:_accusoftgear_sourceDISPLAYwipes.c
call fcn.10046940
call fcn.10046b40
pop esi
add esp, 0x54
ret 0x14
push edi
mov edi, dword [esp + 0x6c]
push ebp
cmp edi, 0xe
push ebx
jge 0x100ee6d2
mov edi, 0xe
mov ebx, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.100ab330
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.100aa350
mov ebp, dword [esp + 0x30]
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub ebp, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x10]
inc ebp
push edx
push 0
inc eax
push ebp
push eax
push ecx
mov dword [esp + 0x88], ebp
call fcn.100ab490
mov edx, eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
or eax, 0xffffffff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
push edx
push esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], ecx
call sym.GEAR32PO.OCX_IG_display_image
lea edx, [esp + 0x1c]
push edx
call fcn.100ab480
cmp edi, 1
mov dword [esp + 0x6c], 1
jl 0x100ee83e
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jl 0x100ee814
mov eax, dword [esp + 0x6c]
mov ebx, edi
sub eax, edi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.100ab260
lea ecx, [ebp - 1]
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx - 1]
cmp ecx, eax
jl 0x100ee7ab
mov ecx, eax
mov edx, dword [esp + 0x30]
lea eax, [ebx - 1]
dec edx
cmp edx, eax
jge 0x100ee7b9
mov eax, edx
mov ebp, dword [esp + 0x44]
push 0xcc0020
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], ebp
mov ebp, dword [esp + 0x70]
mov dword [edx + 4], esi
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x78]
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.100abbd0
add esi, edi
add ebx, edi
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x74]
cmp esi, eax
jle 0x100ee78b
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
push edx
push edi
push eax
push ecx
call fcn.100ea340
mov eax, dword [esp + 0x6c]
inc eax
cmp eax, edi
mov dword [esp + 0x6c], eax
jle 0x100ee771
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.100ab610
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call fcn.100ab360
call fcn.10046b40
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x54
ret 0x14
Function at 0x100ee870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push ebp
mov ebp, dword [esp + 0x60]
push ebp
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x100ee8a1
push eax
push ebp
push 0xffffffffffffffff
push 0xb9d
push str.C:_accusoftgear_sourceDISPLAYwipes.c
call fcn.10046940
call fcn.10046b40
pop ebp
add esp, 0x54
ret 0x14
push edi
mov edi, dword [esp + 0x6c]
push esi
cmp edi, 0xe
push ebx
jge 0x100ee8b2
mov edi, 0xe
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.100ab330
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.100aa350
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub ebx, edx
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x6c]
inc ebx
push edx
inc eax
push 0
push eax
push ebx
push ecx
mov dword [esp + 0x2c], ebx
call fcn.100ab490
mov edx, eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
push edx
push ebp
mov dword [esp + 0x7c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ecx
call sym.GEAR32PO.OCX_IG_display_image
lea edx, [esp + 0x1c]
push edx
call fcn.100ab480
mov ebp, 1
cmp edi, ebp
jl 0x100eea22
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jl 0x100eea04
mov eax, ebp
dec ebx
sub eax, edi
mov dword [esp + 0x14], ebx
mov ebx, edi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.100ab260
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
lea eax, [edx + ebx - 1]
cmp ecx, eax
jl 0x100ee98e
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x2c]
lea eax, [ebx - 1]
dec ecx
cmp ecx, eax
jl 0x100ee99c
mov ecx, eax
push 0xcc0020
mov eax, ecx
sub esp, 0x10
sub eax, ebp
mov edx, esp
inc eax
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x64]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x98]
push ecx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x94]
push edx
call fcn.100abb80
add esi, edi
add ebx, edi
cmp esi, dword [esp + 0x2c]
jle 0x100ee967
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
push ebp
push edi
push eax
push ecx
call fcn.100ea340
inc ebp
cmp ebp, edi
jle 0x100ee94a
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.100ab610
mov ecx, dword [esp + 0x6c]
push ecx
push esi
call fcn.100ab360
call fcn.10046b40
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x54
ret 0x14
Function at 0x40600a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x422764], 0
jne 0x406048
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40601e
mov dword [ecx*4 + 0x422760], eax
inc ecx
cmp ecx, 0x100
jl 0x406019
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406075
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406056
not eax
pop ebp
ret 0xc
Function at 0x403080
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40310b
cmp ax, 9
je 0x4030f8
cmp ax, 0x20
je 0x4030f8
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x403160
cmp ax, 0x22
je 0x403170
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40310b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4030b0
test edi, 1
jne 0x4030b0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4030f8
cmp ax, 0x20
je 0x4030f8
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x403188
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x4030cb
and dword [ebp - 0x54], 1
jne 0x4030c4
xor edi, 1
jmp 0x4030cb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x403124

Function at 0x4031a0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4041d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x431860]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x431860]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x404324
cmp byte [ebx + 0x45], 0
je 0x404324
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404230
xor al, al
jmp 0x404326
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x404270
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4042b1
dec eax
je 0x4042b5
sub eax, 2
je 0x40430b
xor bl, bl
jmp 0x40430d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4042ec
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040e603
add esp, 0x10
cmp esi, eax
jne 0x4042ad
cmp byte [ebx + 0x45], 0
je 0x40430b
test esi, esi
jne 0x404270
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403cc0
jmp 0x404270
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x404320
push dword [esp + 0x18]
call fcn.0040e428
add esp, 4
mov al, bl
jmp 0x404326
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040d0ff
mov esp, ebp
pop ebp
ret