joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409100
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x437ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
mov esi, ecx
mov dword [esp + 4], esi
cmp dword [esi + 0x10], 1
jle 0x4092e6
mov al, byte [esp + 0x70]
push ebx
push ebp
push edi
mov byte [esp + 0x1c], al
mov edi, str.MemoryCommitted_Bytes
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebp
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004098d0
test al, al
je 0x40918c
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, str.MemoryCommitted_Bytes
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], ebp
cmp eax, ebp
jne 0x40919d
mov eax, 0x43a714
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00409300
mov esi, dword [esp + 0x7c]
test al, al
je 0x4091d0
mov eax, dword [esp + 0x14]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esi], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4092ad
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, 0xa
mov dword [esp + 0x10], edi
mov dword [esi + 4], edi
call fcn.00419290
mov edx, dword [esp + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x44]
mov ecx, 0xa
mov dword [esi + 8], ebp
call fcn.00419290
mov edx, dword [esp + 0x50]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x4c]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x5c]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x58]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov ecx, 0xa
mov dword [esi + 0x18], ebx
call fcn.00419290
sub edi, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x7c], edi
mov dword [esi + 0x14], eax
fild dword [esp + 0x7c]
sub eax, ebx
mov dword [esi + 0x1c], edi
mov dword [esp + 0x7c], eax
mov dword [esi + 0x28], eax
fidiv dword [esp + 0x10]
xor ebp, ebp
fmul qword [0x43a758]
fstp qword [esi + 0x20]
fild dword [esp + 0x7c]
fidiv dword [esp + 0x18]
fmul qword [0x43a758]
fstp qword [esi + 0x30]
mov ecx, dword [esp + 0x20]
pop edi
cmp ecx, ebp
pop ebp
pop ebx
je 0x4092e6
mov al, byte [ecx - 1]
test al, al
je 0x4092dc
cmp al, 0xff
je 0x4092dc
dec al
pop esi
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
dec ecx
push ecx
call fcn.0042ab78
add esp, 4
mov ecx, dword [esp + 0x60]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x409118
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x437ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
mov esi, ecx
mov dword [esp + 4], esi
cmp dword [esi + 0x10], 1
jle 0x4092e6
mov al, byte [esp + 0x70]
push ebx
push ebp
push edi
mov byte [esp + 0x1c], al
mov edi, str.MemoryCommitted_Bytes
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebp
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004098d0
test al, al
je 0x40918c
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, str.MemoryCommitted_Bytes
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], ebp
cmp eax, ebp
jne 0x40919d
mov eax, 0x43a714
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00409300
mov esi, dword [esp + 0x7c]
test al, al
je 0x4091d0
mov eax, dword [esp + 0x14]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esi], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4092ad
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, 0xa
mov dword [esp + 0x10], edi
mov dword [esi + 4], edi
call fcn.00419290
mov edx, dword [esp + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x44]
mov ecx, 0xa
mov dword [esi + 8], ebp
call fcn.00419290
mov edx, dword [esp + 0x50]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x4c]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x5c]
mov ecx, 0xa
call fcn.00419290
mov edx, dword [esp + 0x58]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov ecx, 0xa
mov dword [esi + 0x18], ebx
call fcn.00419290
sub edi, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x7c], edi
mov dword [esi + 0x14], eax
fild dword [esp + 0x7c]
sub eax, ebx
mov dword [esi + 0x1c], edi
mov dword [esp + 0x7c], eax
mov dword [esi + 0x28], eax
fidiv dword [esp + 0x10]
xor ebp, ebp
fmul qword [0x43a758]
fstp qword [esi + 0x20]
fild dword [esp + 0x7c]
fidiv dword [esp + 0x18]
fmul qword [0x43a758]
fstp qword [esi + 0x30]
mov ecx, dword [esp + 0x20]
pop edi
cmp ecx, ebp
pop ebp
pop ebx
je 0x4092e6
mov al, byte [ecx - 1]
test al, al
je 0x4092dc
cmp al, 0xff
je 0x4092dc
dec al
pop esi
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
dec ecx
push ecx
call fcn.0042ab78
add esp, 4
mov ecx, dword [esp + 0x60]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x40a550
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437f67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x1c], ebp
call fcn.0042c3c4
xor ebx, ebx
lea ecx, [ebp + 0x68]
mov dword [esp + 0x124], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.00401100
mov byte [esp + 0x124], 1
mov dword [ebp], method.CDialog.virtual_0
mov dword [ebp + 0x2b8], ebx
call fcn.00434880
call fcn.00434880
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0xa0
mov dword [ebp + 0x5c], eax
call fcn.0042ab4f
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x124], 2
je 0x40a5f2
mov ecx, eax
call fcn.00408c80
jmp 0x40a5f4
xor eax, eax
mov dword [ebp + 0x60], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x447834
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ftdl.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x2b8], eax
je 0x40a69b
push str.IPDUploadFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44aa94], eax
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x40b090
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ebx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0xc], ecx
jne 0x40b0e5
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [ecx + 0xc]
cmp dword [eax], ebx
je 0x40b15f
push ebp
push esi
mov edx, dword [ebx + eax]
mov ebp, dword [edx]
cmp ebp, 0x100007f
je 0x40b151
mov eax, dword [esp + 0x120]
push 0xc
mov esi, dword [eax + 4]
mov edi, dword [esi + 4]
call fcn.0042ab4f
add esp, 4
mov ecx, esi
test esi, esi
jne 0x40b11a
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x40b122
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x40b136
mov dword [eax], ebp
mov eax, dword [esp + 0x120]
mov ecx, dword [eax + 8]
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xc]
add ebx, 4
cmp dword [ebx + eax], 0
jne 0x40b0ee
pop esi
pop ebp
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x10c
ret 4

Function at 0x40bdd0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438321
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x40bdfc
xor al, al
jmp 0x40bef9
mov eax, dword [0x4480fc]
push ebp
push esi
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x168]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x164], 0
call fcn.0042af97
mov ecx, dword [edi + 0x64]
add ecx, 4
push ecx
lea ecx, [esp + 0x10]
call fcn.0042b13e
push 0x447ce4
lea ecx, [esp + 0x10]
call fcn.0042b102
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc]
push edx
push 0
call fcn.0042b156
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [0x4480fc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
mov byte [esp + 0x160], 2
je 0x40bebf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
lea ecx, [esp + 0x18]
call fcn.0042af97
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.0042b102
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x1c]
call fcn.0042b156
push eax
mov ecx, edi
call fcn.0040bf20
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
jne 0x40be7b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.0042ae0e
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.0042ae0e
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.0042ae0e
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x150]
pop edi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x40bf20
Capabilities:
Delete file

Disassembly:
mov edx, dword [ecx + 0x64]
push esi
test edx, edx
je 0x40bf67
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 2
jb 0x40bf67
mov eax, dword [edx + 0xc]
lea ecx, [edx + 0xc]
cmp dword [eax - 8], 0xa
jl 0x40bf67
mov eax, dword [0x44aa94]
test eax, eax
jne 0x40bf6d
push 1
push str.Error_LoadLibrary_:_ftdl.dll
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
xor al, al
pop esi
ret 8
mov edx, dword [esp + 0xc]
push 0
push edx
push esi
push 0
call fcn.0042b156
push eax
call dword [0x44aa94]
add esp, 0x10
test eax, eax
jne 0x40bf67
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop esi
ret 8

Function at 0x42049b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x449b98
cmp edx, dword [eax]
je 0x4204bd
add eax, 8
inc ecx
cmp eax, 0x449c28
jl 0x4204ae
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x449b98]
jne 0x4205eb
mov eax, dword [0x44cb40]
cmp eax, 1
je 0x4205c5
test eax, eax
jne 0x4204ee
cmp dword [0x449034], 1
je 0x4205c5
cmp edx, 0xfc
je 0x4205eb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420525
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c4e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420568
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c4e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43da40
push edi
call fcn.00419110
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004208a0
lea eax, [ebp - 0xa0]
push 0x43da20
push eax
call fcn.004208a0
push dword [esi + 0x449b9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004208a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004220f8
add esp, 0x2c
pop edi
jmp 0x4205eb
lea eax, [ebp + 8]
lea esi, [esi + 0x449b9c]
push 0
push eax
push dword [esi]
call fcn.0041c4e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x428d80
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.00418360
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x428e4b
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 0x428e4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x428dfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x428e09
or bh, 8
and edi, 0x8000000
je 0x428e24
mov eax, dword [0x44e75c]
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 0x428e4b
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 0x429220
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 0x42924b
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 0x42926f
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 0x42928a
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 0x42c0ed
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 0x42c10f
cmp dword [edi + 0x3c], 0
jne 0x42c10f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00434880
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.0042c13c
pop edi
pop esi
pop ebx
ret 8

Function at 0x42c487
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4389d0
call fcn.0041a174
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.00434880
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42c4c6
call fcn.00434880
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 0x42c4d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42c4e2
or eax, 0xffffffff
jmp 0x42c5ca
mov ecx, esi
call fcn.0042c3fd
mov dword [ebp - 0x14], eax
call fcn.0042d293
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x42c519
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42c519
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.0042d247
push dword [ebp - 0x14]
call fcn.0042cd95
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0042c18a
cmp eax, edi
je 0x42c58c
test byte [esi + 0x24], 0x10
je 0x42c55a
push 4
mov ecx, esi
pop ebx
call fcn.0042f364
test ah, 1
je 0x42c552
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042eda1
cmp dword [esi + 0x1c], edi
je 0x42c58c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042f44a
jmp 0x42c58c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x42c5a0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42c5b9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42c5b9
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.0042c437
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 0x42ec4f
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 0x42ec91
call fcn.00434880
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42ec91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42ec88
xor eax, eax
jmp 0x42ec99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042ec9f
pop edi
pop esi
pop ebx
ret 4

Function at 0x432f50
Capabilities:
Create http request

Disassembly:
mov eax, 0x4386f8
call fcn.0041a174
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 0x432f88
call fcn.00434880
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 0x432fad
push eax
push dword [esi + 4]
call fcn.00433bac
jmp 0x432fb9
push esi
push eax
mov ecx, 0x44ab58
call fcn.00432fca
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x433297
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x438757
call fcn.0041a174
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0042f7e4
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4480fc]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0042af97
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0042af97
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4351df
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43520d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43522b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00435145
jmp 0x43522b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43522b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00435145
test edi, edi
mov eax, edi
jne 0x435215
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8