joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403830
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp + 0x14]
push ebx
push esi
push edi
push 0x547be8
push eax
mov eax, dword [0x547bc8]
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4038b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x4038e1
mov edx, dword [0x547bc8]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x20]
push 1
push ecx
push 0x547be8
push edx
call edi
test eax, eax
jne 0x4038b2
call ebx
cmp eax, 0x3e4
jne 0x4038be
mov eax, dword [esp + 0x20]
mov ecx, dword [0x547bc8]
add esi, eax
lea eax, [esp + 0x20]
push 1
push eax
push 0x547be8
push ecx
call edi
test eax, eax
je 0x40388a
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x547bc8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x547bc8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x403910
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [0x547bc8]
sub esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ClearCommError]
push esi
push edi
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x40393d
mov eax, ecx
test eax, eax
mov dword [esp + 0xc], eax
jbe 0x4039e3
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push 0x547bd0
push ecx
push eax
mov eax, dword [0x547bc8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4039df
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x4039c4
mov edx, dword [0x547bc8]
mov esi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0xc]
push 1
push ecx
push 0x547bd0
push edx
call esi
test eax, eax
jne 0x4039df
call edi
cmp eax, 0x3e4
jne 0x4039cc
mov ecx, dword [0x547bc8]
lea eax, [esp + 0xc]
push 1
push eax
push 0x547bd0
push ecx
call esi
test eax, eax
je 0x403997
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov dword [esp + 0xc], 0
mov ecx, dword [0x547bc8]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x404ce0
Capabilities:
Hash data using crc32b

Disassembly:
push esi
xor edx, edx
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x404cfd
add eax, eax
xor eax, 0x4c11db7
jmp 0x404cff
shl eax, 1
dec esi
jne 0x404ced
mov byte [edx + ecx + 0x100], al
inc edx
cmp edx, 0x100
jl 0x404ce3
pop esi
ret
Function at 0x404d20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
mov esi, ecx
test edi, edi
jle 0x404d54
push ebx
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
shr ecx, 0x18
xor ecx, ebx
xor ebx, ebx
shl eax, 8
mov bl, byte [ecx + esi + 0x100]
mov ecx, ebx
xor eax, ecx
inc edx
dec edi
jne 0x404d34
pop ebx
pop edi
pop esi
ret 8
Function at 0x4122b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x446f88
cmp edx, dword [eax]
je 0x4122db
add eax, 8
inc ecx
cmp eax, 0x447018
jl 0x4122cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x446f88]
jne 0x412409
mov eax, dword [0x55ba94]
cmp eax, 1
je 0x4123e3
test eax, eax
jne 0x41230c
cmp dword [0x446874], 1
je 0x4123e3
cmp edx, 0xfc
je 0x412409
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412343
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004125b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004126a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412386
lea eax, [ebp - 0x1a4]
push eax
call fcn.004126a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a2c0
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004125b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004125c0
lea eax, [ebp - 0xa0]
push 0x42a2a0
push eax
call fcn.004125c0
push dword [esi + 0x446f8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004125c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413e70
add esp, 0x2c
pop edi
jmp 0x412409
lea eax, [ebp + 8]
lea esi, [esi + 0x446f8c]
push 0
push eax
push dword [esi]
call fcn.004126a0
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 0x4192f0
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.0040e550
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4193bb
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 0x4193bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41936e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419379
or bh, 8
and edi, 0x8000000
je 0x419394
mov eax, dword [0x55d23c]
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 0x4193bb
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 0x419790
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 0x4197bb
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 0x4197df
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 0x4197fa
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 0x41d97e
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 0x41d9c0
call fcn.0042322b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d9c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d9b7
xor eax, eax
jmp 0x41d9c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d9ce
pop edi
pop esi
pop ebx
ret 4

Function at 0x423a5a
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 0x423a88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423aa6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004239c0
jmp 0x423aa6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423aa6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004239c0
test edi, edi
mov eax, edi
jne 0x423a90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x63f779
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 4]
jmp 0x63f78b
mov eax, dword [esp + 4]
pushal
push word [esp + 0x12]
mov byte [esp], ch
mov dword [esp + 0xc], ebx
lea esp, [esp + 2]
jmp 0x67d823
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
mov edi, ecx
test eax, eax
je 0x67d801
jmp 0x67d87a

Function at 0x66ed74
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ax
mov word [esp], bx
push word [esp + 1]
pushal
push dword [esp + 5]
pushfd
jmp 0x66edbe
mov bh, dh
xchg ebx, esi
bswap bx
mov bl, ah
xchg bl, bh
mov bh, byte [esp]
jmp 0x66eedd
push word [esp + 0x2a]
lea esp, [esp + 2]
mov dword [esp + 0x24], esi
lea esi, [ebx + 0x1345]
lea esi, [esp + esi]
lea esi, [edx + 0xcc]
mov si, 0x13ca
mov esi, 0x5a2f5664
mov si, 0x33a1
lea esi, [esi + 0x7f75]
mov esi, 0x277c3221
mov si, word [esp]
lea esi, [edx + ebp]
mov si, 0x65d2
lea esi, [eax + ebp]
push eax
mov dword [esp + 0xd], ebx
bswap esi
lea ebx, [esp - 0x5030]
jmp 0x66eda0
mov si, cx
not esi
mov si, 0x650e
mov si, bx
xchg si, bx
mov bx, word [esp]
mov dword [esp + 1], ecx
jmp 0x66eead
Function at 0x67f9f2
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
bswap eax
xchg ecx, eax
mov al, byte [esp]
mov eax, ebp
lea ecx, [ecx + esi]
mov ax, 0x5ac5
bswap eax
push cx
pushfd
lea eax, [esi*4]
lea esp, [esp + 2]
jmp 0x67fa3c
jmp 0x67f9bf
xchg word [esp], cx
jmp 0x67fa1e
mov eax, 0x1c1d4fb3
lea eax, [0x475d69ab]
rcr cx, 0xd
jmp 0x67fbd6
xchg word [esp], cx
xor bl, 0x7c
bts cx, bx
jmp 0x67fa84
lea esp, [esp + 4]
xchg dword [esp], eax
jle 0x67fa1a
jg 0x67f9f4
and ah, byte [eax + 0x45a05136]
sub ebp, dword [eax + 0x4ea8593e]
pop ss
jo 0x67facc
fbld tbyte [0x33c180fe]
lea eax, [0x475d69ab]
rcr cx, 0xd
bts ax, si
jmp 0x67fbda
jge 0x67f9fa
mov eax, 0x1c1d4fb3
jmp 0x67fa61
stc
loop 0x67fb36
in al, 0x7a
sbb eax, 0xeb6f0aec
fld dword [eax + 0xf66f2eb]
mov esp, 0x8ad476c2
or al, 0x24
or al, 0x30
bts ax, si
call 0x67fafb
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011db
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011f1
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401212
cmp esi, eax
jae 0x4011e9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401204
cmp esi, eax
jae 0x4011e9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x401d20
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x43a180]
push edi
mov edi, dword [esp + 0x23c]
test edi, edi
mov dword [esp + 0x234], eax
mov dword [esp + 4], ecx
je 0x401ed7
mov eax, dword [esp + 0x240]
test eax, eax
je 0x401ed7
push ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0x401060
push 0x401050
push 0x401040
push 0x401030
push 0x401020
push 0x401010
push section..text
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x401da5
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.00411fce
add esp, 0x234
ret 8
push esi
push 0
push 0x8020
push edi
call fcn.004116ab
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x401de0
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
mov ecx, dword [esp + 0x230]
call fcn.00411fce
add esp, 0x234
ret 8
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x401e04
push esi
call fcn.00411c82
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x401dc6
push ebx
push esi
call fcn.00411c82
push 0x5c
push edi
call fcn.00411f70
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
add esp, 0xc
test esi, esi
lea edx, [esp + 0x13c]
jne 0x401e3b
push edi
push edx
call ebx
push 0x42d60c
lea eax, [esp + 0x3c]
push eax
call ebx
jmp 0x401e5b
lea ecx, [esi + 1]
push ecx
push edx
call ebx
sub esi, edi
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.00411e40
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edx, dword [esp + 0x24c]
push edx
push 0x43b060
call ebx
push 0x43b060
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebx
jne 0x401e86
push eax
push 0x43b060
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x401990
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push ebp
jne 0x401dbe
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.00411fce
add esp, 0x234
ret 8
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
call fcn.00411fce
add esp, 0x234
ret 8
Function at 0x402340
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40235a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x4023b2
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push ecx
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402aa0
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
sub esp, 0x214
mov eax, dword [0x43a180]
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
xor esi, esi
test eax, eax
jne 0x402ae4
mov eax, dword [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [esp + 0x210]
call fcn.00411fce
add esp, 0x214
ret 0x1c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402be5
lea ecx, [esp + 4]
push ecx
push 0x432a4c
push 1
push 0
push 0x432a5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402bdf
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x228]
test eax, eax
je 0x402b3d
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x22c]
test ecx, ecx
je 0x402b53
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x230]
test cx, cx
je 0x402b6a
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x234]
test ecx, ecx
je 0x402b80
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x432a9c
push eax
call dword [ecx]
test eax, eax
jl 0x402bd5
mov ecx, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.00411fce
add esp, 0x214
ret 0x1c
Function at 0x402e50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x520
mov eax, dword [0x43a180]
push esi
mov dword [esp + 0x520], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fbc
mov edx, dword [esp + 8]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x42e070
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402fb4
lea eax, [esp + 0x31c]
push 0x42e070
push eax
call fcn.00412866
mov ecx, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str._sUninst.exe
push edx
call fcn.00412866
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x12c]
push str._swnwbwnwb.exe
push ecx
call fcn.00412866
lea edx, [esp + 0x238]
push 0x42e044
push edx
call fcn.00412866
lea eax, [esp + 0x448]
push str.http:__www.wn51.com
push eax
call fcn.00412866
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x30
push 0x104
lea ecx, [esp + 0x320]
push ecx
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x118]
push edx
push 1
push 0
push str.DisplayIcon
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x21c]
push ecx
push 1
push 0
push str.Publisher
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x424]
push eax
push 1
push 0
push str.URLInfoAbout
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x520]
xor eax, eax
pop esi
call fcn.00411fce
add esp, 0x520
ret

Function at 0x402fe0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403006
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403010
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x403050
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x160
mov eax, dword [0x43a180]
push ebx
mov ebx, dword [esp + 0x168]
mov dword [esp + 0x160], eax
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403070
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40314e
push esi
push edi
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xc
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [esp + 0x67]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030b0
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4030c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40314c
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x84]
push ecx
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x160]
pop ebx
call fcn.00411fce
add esp, 0x160
ret 4

Function at 0x403220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c2e8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00428e1e
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x42e120
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40326e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00428e1e
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00428e1e
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00424772
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x4032e9
mov dword [esp + 0x20], 0xffffffff
call fcn.00424386
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042409a
lea ecx, [esp + 8]
call fcn.004242e5
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00424386
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8