joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413060
Capabilities:
Reference ncr atm library routines

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xcc], 0
push 0xc4
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.00427e10
add esp, 0xc
mov ecx, 2
shl ecx, 0
mov edx, 1
mov word [ebp + ecx - 0x88], dx
mov eax, 2
imul ecx, eax, 0
mov edx, 1
mov word [ebp + ecx - 0x88], dx
lea eax, [ebp - 0xcc]
push eax
push 0
lea ecx, [ebp - 0xc8]
push ecx
push 0x321
movzx edx, word [0x460a8c]
push edx
call dword [sym.imp.MSXFS.dll_WFSExecute]
mov dword [0x460b60], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0xd0], eax
mov eax, dword [0x460b60]
push eax
push str.EnableSiuEvents
push str.__s___WFSExecute_WFS_CMD_SIU_ENABLE_EVENTS______d_
push 0
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
add esp, 0x14
cmp dword [ebp - 0xcc], 0
je 0x413134
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.MSXFS.dll_WFSFreeResult]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret

Function at 0x413150
Capabilities:
Reference ncr atm library routines

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x23003
call dword [sym.imp.MSXFS.dll_WFSStartUp]
mov dword [ebp - 0x210], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x210]
push ecx
push 0x4553b4
push 0x4553cc
push 0
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
cmp dword [ebp - 0x210], 0
je 0x4131cb
cmp dword [ebp - 0x210], 0xffffffff
jne 0x4132b4
push 0x460a8c
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x23003
push 0x7d0
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSXFS.dll_WFSOpen]
mov dword [ebp - 0x210], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x218], eax
movzx edx, word [0x460a8c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
push 0x4553e8
push 0x455400
push 0
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x1c
cmp dword [ebp - 0x210], 0
je 0x413251
cmp dword [ebp - 0x210], 0xffffffff
jne 0x4132ae
call fcn.00413060
mov eax, dword [0x460a7c]
push eax
push 0xf
movzx ecx, word [0x460a8c]
push ecx
call dword [sym.imp.MSXFS.dll_WFSRegister]
mov dword [ebp - 0x210], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x210]
push edx
push str.RegisterForSiuEvents
push str.__s___WFSRegister_hSIU______d_
push 0
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x14
jmp 0x4132b4
call dword [sym.imp.MSXFS.dll_WFSCleanUp]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret
Function at 0x414440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov dword [ebp - 0x134], eax
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x114], eax
xor ecx, ecx
mov eax, dword [ebp - 0x114]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042687a
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x114]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0x455d64
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
push str._d._d._d._d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410da0
add esp, 0x18
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.004261bd
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret
Function at 0x416710
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + ecx + 0x1c], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x1c], eax
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax + 0x1c], 0
jne 0x416762
or eax, 0xffffffff
jmp 0x416821
push 0x14
call fcn.0042cdc8
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0xc], eax
cmp dword [ebp - 8], 0
jne 0x416788
mov eax, 0xfffffffe
jmp 0x416821
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4167a2
mov eax, 0xfffffffd
jmp 0x416821
push 0
push 0
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4167c0
mov eax, 0xfffffffc
jmp 0x416821
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
add ecx, 0x10
push ecx
push 0x190
push 0
push 0
push 1
push 6
push 0x40000003
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41681f
mov eax, 0xfffffffb
jmp 0x416821
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x416830
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80], ecx
push 0x800
call fcn.0042cdc8
add esp, 4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x416863
xor eax, eax
jmp 0x416910
push 0x800
push 0
mov eax, dword [ebp - 0x74]
push eax
call fcn.00427e10
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x70]
mov cl, byte [eax]
mov byte [ebp - 0x69], cl
add dword [ebp - 0x70], 1
cmp byte [ebp - 0x69], 0
jne 0x416885
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], edx
push 0
lea eax, [ebp - 0x88]
push eax
push 0x800
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4168f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_to_Pipe_Error_____d_
lea eax, [ebp - 0x68]
push eax
call fcn.00416b30
add esp, 0xc
jmp 0x416901
push str.Write_to_Pipe___OK
lea ecx, [ebp - 0x68]
push ecx
call fcn.00416b30
add esp, 8
lea edx, [ebp - 0x68]
push edx
call fcn.00414410
add esp, 4
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret 4
Function at 0x422710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x422730
push edi
push edi
push edi
push 2
call fcn.00424b90
pop edi
xor al, al
pop esi
pop ebp
ret 8
push ebx
call fcn.00421eb0
push 2
push 0
push edi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.0042e618
push edi
call fcn.0042ec2b
push 0
mov ebx, eax
push 0
push edi
mov dword [ebp + 8], ebx
call fcn.0042e618
add esp, 0x1c
test ebx, ebx
jg 0x422782
push 0
push 0
push 0
push 0xc
mov ecx, esi
call fcn.00424b90
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 8
lea eax, [ebx + 1]
push eax
call fcn.0042687a
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
push 1
push edi
push ebx
mov byte [ebx], 0
call fcn.0042e221
add esp, 0x14
cmp eax, 1
je 0x4227c6
push ebx
call fcn.004261bd
add esp, 4
mov ecx, esi
push 0
push 0
push 0
push 2
call fcn.00424b90
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 8
mov byte [ebx + edi], 0
mov eax, ebx
mov dl, byte [ebx]
mov ecx, ebx
test dl, dl
je 0x4227f2
inc eax
lea edi, [ecx + 1]
cmp dl, 0xd
jne 0x4227e8
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x4227ea
inc eax
jmp 0x4227ea
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, edi
test dl, dl
jne 0x4227d4
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push ebx
call dword [eax + 8]
push ebx
call fcn.004261bd
add esp, 4
cmp byte [esi + 0x2c], 0
sete al
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x4375ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437430

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ad0
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 0x401ae9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b20
lea ebx, [ebx]
cmp esi, eax
jae 0x401b24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b10
cmp esi, eax
jb 0x401b2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401e10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4600fb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x479408]
xor eax, esp
mov dword [esp + 0x12c], eax
push edi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
push 0x104
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401f1e
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
jle 0x401f1e
push eax
call fcn.0040be28
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
push edi
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401f15
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x46d11c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401f15
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov word [esi], cx
movzx edx, word [eax + 8]
mov word [esi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 4], cx
movzx edx, word [eax + 0xc]
push edi
mov word [esi + 6], dx
call fcn.0040be2d
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004023f0
mov al, 1
jmp 0x401f34
push edi
call fcn.0040be2d
add esp, 4
cmp dword [esp + 0x2c], 0x10
jb 0x401f32
mov eax, dword [esp + 0x18]
push eax
call fcn.0040be2d
add esp, 4
xor al, al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00428a74
add esp, 0x13c
ret
Function at 0x401f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460799
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x479408]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], edi
mov esi, ecx
mov dword [esp + 8], 0
call fcn.004152b9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401fbf
push 0x80004005
call fcn.00401690
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push esi
mov dword [esp + 0x48], 0
lea esi, [esp + 0x14]
mov dword [esp + 0xc], 1
call fcn.00401e10
add esp, 4
test al, al
je 0x402043
xor esi, esi
movzx edx, word [esp + esi*2 + 0x10]
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0045cd9b
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402010
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00402620
cmp esi, 3
je 0x40203b
push 1
push 0x46d120
mov ecx, edi
call fcn.00402620
add esi, 1
cmp esi, 4
jb 0x401ff0
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00428a74
add esp, 0x40
ret

Function at 0x402070
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x468]
sub esp, 0x468
push 0xffffffffffffffff
push 0x460750
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x479408]
xor eax, ebp
mov dword [ebp + 0x464], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov ebx, edx
push edi
mov esi, ecx
push 0x46d0d1
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.00401b80
push edi
push edi
push edi
push edi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x4020df
xor al, al
jmp 0x40215e
push edi
push SysReAllocStringLen
push edi
push edi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
je 0x4020db
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x402100
push 0x464
lea eax, [ebp]
push 0
push eax
call fcn.0042d310
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 0x400
lea edx, [ebp]
push edx
push esi
call edi
lea eax, [ebp]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402130
sub eax, edx
push eax
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00402620
cmp dword [ebp - 0x14], 0
ja 0x402100
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x18]
push ecx
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.00428a74
add ebp, 0x468
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4600c8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.ImageEx.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], 2
mov dword [esi + 0x14], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
call fcn.00412af1
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
mov byte [esi + 0x31], bl
call edi
push ebx
push 1
push 1
push ebx
mov dword [esi + 0x1c], eax
call edi
push 0x46d7f0
push 0xa9
push ebx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, ebx
je 0x402800
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x402800
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402800
push eax
push esi
call fcn.004028a0
mov ecx, dword [esi + 0x10]
lea eax, [esi + 4]
push eax
push ecx
mov dword [eax], ebx
mov byte [esi + 0x30], 1
call sub.gdiplus.dll_GdipLoadImageFromStreamICM
mov dword [esi + 8], eax
call fcn.00402900
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x405100
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x460690
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
push 0x100
mov dword [esp + 0x34], 0
call fcn.0040be28
add esp, 4
push 0x46d0d1
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00401840
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.http_shellopencommand
mov dword [esp + 0x34], 0
push SysReAllocStringLen
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4051ab
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x46d0d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4051b3
xor eax, eax
jmp 0x4051c3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4051b8
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00401b80
mov edx, dword [esp + 0x30]
push 0x5c
push edx
call fcn.0042acc1
mov ecx, dword [esp + 0x38]
add esp, 8
test eax, eax
jne 0x4051ea
or esi, 0xffffffff
jmp 0x4051ee
sub eax, ecx
mov esi, eax
cmp dword [ecx - 0xc], 0
jge 0x4051f9
or eax, 0xffffffff
jmp 0x405214
push str..exe
push ecx
call fcn.0042abee
add esp, 8
test eax, eax
jne 0x405210
or eax, 0xffffffff
jmp 0x405214
sub eax, dword [esp + 0x30]
sub eax, esi
add eax, 3
push eax
add esi, 1
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405480
mov esi, dword [esp + 0x2c]
add esi, 0x190
push eax
mov ecx, esi
mov byte [esp + 0x28], 1
call fcn.00405c30
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0040be2d
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00401d70
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 8
Function at 0x409030
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x479408]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x467a10
push 1
push 0
push 0x467a20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40910f
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x46e0d4
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push str.Arguments
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x467ab0
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x409101
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x10]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.00428a74
add esp, 0x214
ret
Function at 0x40a570
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x460510
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.update.exe
lea eax, [esp + 0x14]
push 0x47dc74
push eax
call fcn.004022f0
add esp, 0xc
push 0x46deac
push 0xa4
push 0
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00422dc3
mov byte [esp + 0x38], 1
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00422e4f
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00422b84
test edi, edi
jne 0x40a682
mov edx, dword [esp + 0x10]
push edi
push edi
push 1
push edi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call fcn.00412af1
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a670
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], al
call fcn.00422de7
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a6ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00422de7
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret