joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x5c6480], 1
mov dword [0x5c6484], 1
mov dword [0x5c6488], 1
mov dword [0x5c6474], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40141d
mov eax, 0
jmp 0x4014b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401440
mov eax, 0
jmp 0x4014b7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401462
cmp eax, 0x20b
je 0x401487
jmp 0x4014b2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401474
mov eax, 0
jmp 0x4014b7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40149f
mov eax, 0
jmp 0x4014b7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b7
mov eax, 0
leave
ret
Function at 0x5862a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push ebp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0x1c
cmp byte [0x5c63f8], 0
je 0x586318
mov dword [esp + 4], 0x5ad2e2
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x586430
mov ebp, dword [0x5c63f4]
jmp 0x5862dc
lea ebp, [edx + eax + 4]
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebp
mov ebx, eax
call sub.msvcrt.dll_strlen
lea edx, [ebp + eax + 1]
mov eax, dword [edx]
test ebx, ebx
jne 0x5862d8
movzx ecx, word [edx + 4]
add esp, 0x1c
mov eax, edi
add edx, 6
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00584670
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
mov ebp, dword [eax]
sub esp, 4
mov dword [0x5c63f4], ecx
test edx, edx
je 0x586416
lea ebx, [eax + edx + 8]
mov edx, 0xffffffff
lea esi, [esi]
nop
movzx eax, byte [ecx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add ecx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
cmp ebx, ecx
jne 0x586380
not edx
cmp ebp, edx
jne 0x5864b6
mov byte [0x5c63f8], 1
jmp 0x5862b4
cmp byte [0x5c63f0], 0
jne 0x5862cc
mov ebx, dword [sym.imp.python39.dll_PyDict_New]
mov ebp, 0xfffffffb
call ebx
mov dword [0x5c641c], eax
call ebx
mov dword [0x5c6418], eax
call ebx
mov dword [0x5c6414], eax
call ebx
mov dword [0x5c6434], eax
call ebx
mov dword [0x5c6430], eax
call ebx
mov dword [0x5c642c], eax
call ebx
mov dword [0x5c6424], eax
call ebx
mov ebx, dword [sym.imp.python39.dll_PyLong_FromLong]
mov dword [0x5c6420], eax
lea esi, [esi]
lea esi, [esi]
mov dword [esp], ebp
call ebx
add dword [eax], 1
mov dword [ebp*4 + 0x5c5fd4], eax
add ebp, 1
cmp ebp, 0x102
jne 0x586490
mov byte [0x5c63f0], 1
jmp 0x5862cc
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
nop
Function at 0x596658
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0059d980
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0059d980
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x5971a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x5971c7
mov eax, 0
jmp 0x59720b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x5971ea
mov eax, 0
jmp 0x59720b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x597206
mov eax, 0
jmp 0x59720b
mov eax, 1
leave
ret

Function at 0x59720d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x59726c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x597264
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x597264
mov eax, dword [ebp - 4]
jmp 0x597280
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x597241
mov eax, 0
leave
ret
Function at 0x103018a3
Capabilities:
Enumerate processes

Disassembly:
mov byte [esp], dh
pushfd
jmp 0x10307b05
stc
sub edi, edi
pushal
bt si, bx
cmp dword [esp + 0x40], esi
mov byte [esp + 8], bh
jmp 0x1030c24f
lea esp, [esp + 0x20]
jne 0x1030a1d8
jns 0x10302806
cmp dh, ch
sub edi, edi
push 0x76192128
stc
pushfd
mov byte [esp], ch
cmp dword [esp + 0x28], esi
push 0x93c4ebf5
jmp 0x10309dcf
lea esp, [esp + 8]
call sub.KERNEL32.dll_Process32NextW
bt sp, si
cmc
test eax, eax
pushal
jmp 0x103075cb

Function at 0x10313020
Capabilities:
Enumerate processes

Disassembly:
pushal
test eax, eax
pushfd
mov byte [esp + 0xc], 0xc4
push eax
lea esp, [esp + 0x28]
jne 0x1030a1d8
test dl, al
clc
cmc
bt di, 5
sub edi, edi
cmc
stc
push esi
mov word [esp], sp
cmp dword [esp + 0x24], esi
mov word [esp], dx
jmp 0x10319bb2
lea esp, [esp + 0x34]
call sub.KERNEL32.dll_Process32NextW
cmp bp, 0x23c
jmp 0x10305b4e
push dword [esp]
pushal
lea esp, [esp + 0x28]
jbe fcn.1030f64e
jmp 0x1030ed28
Function at 0x418100
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.0040ab20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4181cb
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 0x4181cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41817e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418189
or bh, 8
and edi, 0x8000000
je 0x4181a4
mov eax, dword [0x453f5c]
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 0x4181cb
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 0x4185a0
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 0x4185cb
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 0x4185ef
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 0x41860a
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 0x41bd4c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41bd84
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.0041fdcb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041fda3
jmp 0x41bd90
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41d974
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 0x41d9b6
call fcn.004327fd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d9b6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d9ad
xor eax, eax
jmp 0x41d9be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d9c4
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ecf1
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 0x41ed13
cmp dword [edi + 0x3c], 0
jne 0x41ed13
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004327fd
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.0041ed40
pop edi
pop esi
pop ebx
ret 8

Function at 0x41ed8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004327fd
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41edbf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041edd2
pop edi
pop esi
pop ebx
ret 8
Function at 0x41f0c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43a38c
call fcn.0040aaf8
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.004327fd
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f103
call fcn.004327fd
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 0x41f111
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f11f
or eax, 0xffffffff
jmp 0x41f207
mov ecx, esi
call fcn.0041f03a
mov dword [ebp - 0x14], eax
call fcn.0041b89c
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f156
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f156
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.0041b850
push dword [ebp - 0x14]
call fcn.0041b382
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041edd2
cmp eax, edi
je 0x41f1c9
test byte [esi + 0x24], 0x10
je 0x41f197
push 4
mov ecx, esi
pop ebx
call fcn.0041e209
test ah, 1
je 0x41f18f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041dbcb
cmp dword [esi + 0x1c], edi
je 0x41f1c9
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041e37a
jmp 0x41f1c9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f1dd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f1f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f1f6
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.0041f074
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 0x430320
Capabilities:
Create http request

Disassembly:
mov eax, 0x43a48c
call fcn.0040aaf8
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 0x430358
call fcn.004327fd
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 0x43037d
push eax
push dword [esi + 4]
call fcn.00430ffe
jmp 0x430389
push esi
push eax
mov ecx, 0x452378
call fcn.0043039a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x430667
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x43a4eb
call fcn.0040aaf8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00422052
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x44cb24]
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.0041fb21
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041fb21
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 0x431d0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004327fd
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x431d48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x431d48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x431d4c
xor eax, eax
jmp 0x431dca
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0041a906
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x431d84
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x431d6e
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00431ebb
push ebx
mov edi, eax
call fcn.0041a92f
test edi, edi
pop ecx
je 0x431dc6
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00431c84
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00431dcf
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x413358
push 0x67
push edi
call esi
push 0x64
push 0x413290
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.004010f0
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x413358
push 0x413290
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4010d2
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x20]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4010bd
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x4010a0
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401393
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401393
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
lea eax, [ebp - 0x60]
mov esi, ecx
push 0
push eax
call fcn.004020c0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
xorps xmm0, xmm0
mov eax, 5
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 0x30], ax
push 0x4109f0
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00401393
mov esp, ebp
pop ebp
ret
Function at 0x9e719b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x9e71c9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x9e71d0
cmp ebx, dword [eax + 4]
jae 0x9e71d0
xor eax, eax
jmp 0x9e73c0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x9e71e1
xor eax, eax
inc eax
jmp 0x9e73bf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x9e71f7
cmp ecx, edx
jae 0x9e733c
cmp dword [eax + 4], 0
je 0x9e7200
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x9e71e8
cmp dword [ebp + 8], 0
je 0x9e7222
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x9e733c
cmp eax, esi
jae 0x9e733c
mov eax, dword [0x7c391310]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x9e7247
cmp dword [esi*4 + 0x7c391318], edi
je 0x9e7340
inc esi
cmp esi, eax
jl 0x9e7235
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x7c37a0fc]
test eax, eax
je 0x9e73bc
cmp dword [ebp - 8], 0x1000000
jne 0x9e73bc
test byte [ebp - 0xc], 0xcc
je 0x9e72c5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x9e73bc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x9e73bc
cmp word [eax + 0x18], 0x10b
jne 0x9e73bc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x9e73bc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x9e72c5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x9e72c5
test byte [ecx + 0x27], 0x80
jne 0x9e733c
push 1
push 0x7c391358
call dword [0x7c37a0f8]
test eax, eax
jne 0x9e71d9
mov ecx, dword [0x7c391310]
test ecx, ecx
mov edx, ecx
jle 0x9e72f9
lea eax, [ecx*4 + 0x7c391314]
cmp dword [eax], edi
je 0x9e72f9
dec edx
sub eax, 4
test edx, edx
jg 0x9e72ed
test edx, edx
jne 0x9e732a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x9e7306
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x9e731e
lea eax, [edx*4 + 0x7c391318]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x9e730c
cmp ecx, 0x10
jge 0x9e732a
inc ecx
mov dword [0x7c391310], ecx
push 0
push 0x7c391358
call dword [0x7c37a0f8]
jmp 0x9e71d9
xor eax, eax
jmp 0x9e73bf
test esi, esi
jle 0x9e71d9
mov ebx, dword [0x7c37a0f8]
push 1
push 0x7c391358
call ebx
test eax, eax
jne 0x9e71d9
cmp dword [esi*4 + 0x7c391318], edi
je 0x9e7396
mov eax, dword [0x7c391310]
lea esi, [eax - 1]
test esi, esi
jl 0x9e7384
cmp dword [esi*4 + 0x7c391318], edi
je 0x9e7380
dec esi
jns 0x9e7374
test esi, esi
jge 0x9e7394
cmp eax, 0x10
jge 0x9e738f
inc eax
mov dword [0x7c391310], eax
lea esi, [eax - 1]
jmp 0x9e7396
je 0x9e73ae
xor ecx, ecx
test esi, esi
jl 0x9e73ae
lea eax, [ecx*4 + 0x7c391318]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x9e739c
push 0
push 0x7c391358
call ebx
jmp 0x9e71d9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret