joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40be30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42d9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x10], 0x43064c
mov al, byte [esp + 0x50]
mov dl, byte [esp + 0x54]
mov byte [esi + 0x1c], al
mov al, byte [esp + 0x58]
mov byte [esi + 0x1e], al
mov byte [esi + 0x1d], dl
mov dl, byte [esp + 0x5c]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x44], 0
mov byte [esi + 0x1f], dl
mov dword [esi], 0x430648
call fcn.00422823
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov eax, dword [edi + 4]
test eax, eax
mov dword [esi + 4], eax
je 0x40bec9
mov dword [eax + 8], esi
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], 0
mov dword [edi + 4], esi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x18

Function at 0x40cad0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x48c
push ebp
push esi
push edi
mov edi, dword [esp + 0x49c]
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jne 0x40cb07
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x48c
ret
push ebx
push esi
call fcn.00421131
add esp, 4
mov ebx, eax
push ebx
push esi
push ebp
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbdc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cbdc
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x9c]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
push str.StringFileInfo_04hX_04hXFileVersion
push edx
call fcn.0040f2bc
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4a4]
lea edx, [esp + 0x9c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x4b0]
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40cbb0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4a4]
push ecx
push edx
push str.StringFileInfo040904E4FileVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cbdc
mov edi, dword [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40cbe9
push ebx
call fcn.0042115a
add esp, 4
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x48c
ret
Function at 0x40cc00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40cf60
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x40cf98
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40cf91
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40cfa0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push esi
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x40cfe5
push 0x23
push str.D:OfficeScan_srcCommonSrccmnsrc_UtilsMemMappedFile.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d020
lea ecx, [esp + 4]
push 0x4361a0
push ecx
call fcn.0040f282
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d012
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40d012
mov edx, dword [esp + 0x24]
push eax
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x40d100
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push esi
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x40d145
push 0x4d
push str.D:OfficeScan_srcCommonSrccmnsrc_UtilsMemMappedFile.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d020
lea ecx, [esp + 4]
push 0x4361a0
push ecx
call fcn.0040f282
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d172
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40d172
mov edx, dword [esp + 0x24]
push eax
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x40d180
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42db28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea ecx, [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
xor eax, eax
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push eax
push edi
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call ebp
test eax, eax
jne 0x40d226
mov eax, dword [esp + 0x10]
push eax
call fcn.00421131
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
push 0
push edi
push ebx
mov dword [esp + 0x38], 0
call ebp
mov edi, dword [esp + 0x28]
push esi
mov ecx, edi
call fcn.00421509
test esi, esi
je 0x40d211
push esi
call fcn.0042115a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x28]
push 0x43f2b0
mov ecx, esi
call fcn.00421509
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40d250
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
lea ecx, [esp + 0xc]
xor eax, eax
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
add esp, 0xc
ret
Function at 0x40d460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x224]
xor ebx, ebx
test esi, esi
push edi
je 0x40d497
push esi
call fcn.0040f645
add esp, 4
test eax, eax
jbe 0x40d497
push esi
call fcn.0040d690
mov ebx, eax
add esp, 4
test bx, bx
jne 0x40d680
call fcn.0040d450
test eax, eax
je 0x40d599
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20019
push 0
push str.SoftwareTrendMicroPC_cillinNTCorpCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d680
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40d680
mov ecx, dword [0x43f3ec]
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push ecx
push eax
push 0
push str.Application_Path
push edx
mov dword [esp + 0x28], 0x105
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d581
lea ecx, [esp + 0x18]
push ecx
call fcn.0040f645
add esp, 4
test eax, eax
jle 0x40d581
lea ecx, [esp + eax*2 + 0x18]
sub ecx, 2
dec eax
cmp word [ecx], 0x5c
je 0x40d55f
test eax, eax
jg 0x40d539
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ax, bx
pop esi
pop ebx
add esp, 0x218
ret
test eax, eax
jle 0x40d581
lea edx, [esp + eax*2 + 0x1a]
push 0x43b6f4
push edx
call fcn.004105ca
lea eax, [esp + 0x20]
push eax
call fcn.0040d690
add esp, 0xc
mov ebx, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ax, bx
pop esi
pop ebx
add esp, 0x218
ret
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0x20019
push 0
push str.SOFTWARETrendMicroOfficeScanCorpCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d680
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40d680
mov ax, word [0x43f3e8]
mov ecx, 0x40
mov word [esp + 0x18], ax
xor eax, eax
lea edi, [esp + 0x1a]
mov dword [esp + 0x14], 0x105
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 1
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x43a318
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d675
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40d675
mov al, byte [esp + ecx + 0x17]
dec ecx
cmp al, 0x5c
je 0x40d63c
test ecx, ecx
jg 0x40d62d
jmp 0x40d675
test ecx, ecx
jle 0x40d675
lea edx, [esp + ecx + 0x19]
mov edi, str.pccwin97.dll
or ecx, 0xffffffff
xor eax, eax
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]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d730
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ax, bx
pop esi
pop ebx
add esp, 0x218
ret
Function at 0x40d690
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x40d6bd
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
push esi
call fcn.00421131
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x40d6d7
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40d6fc
push edi
call fcn.0042115a
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d71c
mov ecx, dword [esp + 0x1c]
mov bp, word [ecx]
push edi
call fcn.0042115a
add esp, 4
mov ax, bp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40d730
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jne 0x40d75d
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
push esi
call fcn.00421131
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x40d777
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d79c
push edi
call fcn.0042115a
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d7bc
mov ecx, dword [esp + 0x1c]
mov bp, word [ecx]
push edi
call fcn.0042115a
add esp, 4
mov ax, bp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40d7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x114
push ebx
xor ebx, ebx
test edx, edx
push edi
je 0x40d804
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d804
push edx
call fcn.0040d730
mov ebx, eax
add esp, 4
test bx, bx
jne 0x40d934
mov dword [esp + 8], 0
call fcn.0040d450
test eax, eax
mov eax, 0x43a270
jne 0x40d81f
mov eax, str.SOFTWARETrendMicroOfficeScanCorpCurrentVersion
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d934
mov edx, dword [esp + 8]
test edx, edx
je 0x40d934
mov ax, word [0x43f3e8]
mov ecx, 0x40
mov word [esp + 0x14], ax
xor eax, eax
lea edi, [esp + 0x16]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x105
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x43a318
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d91c
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x40d91c
mov al, 0x5c
mov cl, byte [esp + esi + 0x17]
dec esi
cmp cl, al
je 0x40d8d5
test esi, esi
jg 0x40d8b0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ax, bx
pop edi
pop ebx
add esp, 0x114
ret
test esi, esi
jle 0x40d91c
call fcn.0040d450
test eax, eax
mov edi, str.pccntres.dll
jne 0x40d8ec
mov edi, str.pccwin97.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + esi + 0x19]
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]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d730
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ax, bx
pop edi
pop ebx
add esp, 0x114
ret
mov ax, bx
pop edi
pop ebx
add esp, 0x114
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ed7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f662
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40eda1
test byte [esp + 8], 2
je 0x40eda1
call fcn.0040f6d5
mov dword [eax], 0xd
call fcn.0040f6de
mov dword [eax], 5
jmp 0x40ed7a
xor eax, eax
ret
Function at 0x41e370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040efc0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e43b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41e43b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e3ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e3f9
or bh, 8
and edi, 0x8000000
je 0x41e414
mov eax, dword [0x442c3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41e43b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e83b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e85f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e87a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4227db
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x422813
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00421882
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042185a
jmp 0x42281f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x423d8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x423dd1
call fcn.0042ad81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423dd1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423dc8
xor eax, eax
jmp 0x423dd9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423ddf
pop edi
pop esi
pop ebx
ret 4

Function at 0x42497c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42499e
cmp dword [edi + 0x3c], 0
jne 0x42499e
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042ad81
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004249cb
pop edi
pop esi
pop ebx
ret 8
Function at 0x424d0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42defc
call fcn.00410968
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042ad81
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x424d4a
call fcn.0042ad81
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x424d58
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x424d66
or eax, 0xffffffff
jmp 0x424e4e
mov ecx, esi
call fcn.00424c81
mov dword [ebp - 0x14], eax
call fcn.0042232b
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x424d9d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x424d9d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004222df
push dword [ebp - 0x14]
call fcn.00421e11
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00424a19
cmp eax, edi
je 0x424e10
test byte [esi + 0x24], 0x10
je 0x424dde
push 4
mov ecx, esi
pop ebx
call fcn.00424554
test ah, 1
je 0x424dd6
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00423ee1
cmp dword [esi + 0x1c], edi
je 0x424e10
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042466d
jmp 0x424e10
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x424e24
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x424e3d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x424e3d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00424cbb
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42959d
Capabilities:
Create http request

Disassembly:
mov eax, 0x42e1b0
call fcn.00410968
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4295d5
call fcn.0042ad81
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4295fa
push eax
push dword [esi + 4]
call fcn.0042a2ac
jmp 0x429606
push esi
push eax
mov ecx, 0x441120
call fcn.00429617
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18