joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a510
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
test eax, eax
je 0x40a57a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40a564
push eax
call ecx
push dword [edi + 8]
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a57a
push eax
call ecx
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], 0
call fcn.004095c0
mov esi, eax
test esi, esi
je 0x40a6a4
push 0x230
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004181f0
lea ecx, [ebp - 0x234]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40a5b0
test ebx, ebx
je 0x40a5d9
push 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.0041a26c
add esp, 0xc
call fcn.00403330
push eax
push 0
push 0x8000
push 0x8000
push 1
push 0
push 0x40000003
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40a615
mov dword [edi + 4], 0
jmp 0x40a6a4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x18], 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0xc], eax
je 0x40a69d
test eax, eax
je 0x40a69d
lea ecx, [edi + 0x1c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, dword [edi + 8]
push ecx
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a67e
cmp eax, 0x3e5
je 0x40a67e
cmp eax, 0x217
jne 0x40a6a4
mov dword [edi + 0x10], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a6c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041498e
mov esp, ebp
pop ebp
ret 8
Function at 0x40a7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40a940
cmp dword [edi + 8], 0
je 0x40a940
push ecx
call fcn.0040a720
test eax, eax
je 0x40a947
push ebx
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a891
cmp dword [ebp - 8], 0
je 0x40a891
push dword [edi + 8]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40a8cb
test eax, eax
je 0x40a8cb
cmp eax, 0x3e5
je 0x40a8cb
cmp eax, 0x217
je 0x40a8cb
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a8fb
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40a8b6
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 8]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40aab0
cmp dword [edi + 0xc], 0
je 0x40aab0
push ecx
call fcn.0040a720
test eax, eax
je 0x40aab7
push ebx
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40aa01
cmp dword [ebp - 8], 0
jbe 0x40aa01
push dword [edi + 0xc]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40aa3b
test eax, eax
je 0x40aa3b
cmp eax, 0x3e5
je 0x40aa3b
cmp eax, 0x217
je 0x40aa3b
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40aa6b
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40aa26
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 0xc]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e7a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf9c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor edi, edi
test esi, esi
je 0x40e98e
cmp dword [ebp + 0x10], 4
jbe 0x40e98e
cmp dword [esi], 1
jne 0x40e98e
cmp dword [0x451280], edi
je 0x40e80f
lea eax, [esi + 8]
push eax
push str.CSCDTSecurityDomain::DealSciterCallback_1___s_
push str.SCDT
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
add esp, 0x14
push ecx
push dword [esi + 4]
lea edx, [esi + 8]
lea ecx, [ebp - 0x24]
call fcn.0040d660
add esp, 8
push str.func
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d8f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0040e0d0
mov edi, 1
mov byte [ebp - 4], 2
mov eax, dword fs:[0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [eax]
mov eax, dword [0x451dbc]
mov dword [ebp - 0x38], ecx
cmp eax, dword [ecx + 4]
jle 0x40e8e0
push 0x451dbc
call fcn.00414fac
add esp, 4
cmp dword [0x451dbc], 0xffffffff
jne 0x40e8e0
mov eax, dword [0x451db8]
test eax, eax
jne 0x40e8ce
push 0x43433c
call esi
mov esi, eax
test esi, esi
je 0x40e8b8
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e8b1
call eax
mov dword [0x451db8], eax
jmp 0x40e8bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x451db8]
test eax, eax
jne 0x40e8c8
push 0xffffffffffffffff
call fcn.0041a503
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x451dbc
mov dword [0x451dc0], eax
call fcn.00414f6d
add esp, 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x451dc0]
mov eax, dword [eax + 0x208]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 3
mov eax, dword [0x451dbc]
cmp eax, dword [ecx + 4]
jle 0x40e976
push 0x451dbc
call fcn.00414fac
add esp, 4
cmp dword [0x451dbc], 0xffffffff
jne 0x40e976
mov eax, dword [0x451db8]
test eax, eax
jne 0x40e964
push 0x43433c
call esi
mov esi, eax
test esi, esi
je 0x40e954
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e94d
call eax
mov dword [0x451db8], eax
jmp 0x40e959
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x451db8]
test eax, eax
jne 0x40e964
push 0xffffffffffffffff
call fcn.0041a503
push 0x451dbc
mov dword [0x451dc0], eax
call fcn.00414f6d
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x451dc0]
mov eax, dword [eax + 0x208]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x451280], 0
je 0x40e9b1
push edi
push str.CSCDTSecurityDomain::DealSciterCallback____d_
push str.SCDT
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ff10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x451dd8]
cmp eax, dword [ecx + 4]
jle 0x40ff7d
push 0x451dd8
call fcn.00414fac
add esp, 4
cmp dword [0x451dd8], 0xffffffff
jne 0x40ff7d
push 0x42d860
call fcn.00414bf2
push 0x451dd8
call fcn.00414f6d
add esp, 8
mov ecx, dword [0x451de0]
mov eax, 0x2aaaaaab
sub ecx, dword [0x451ddc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x410031
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x410031
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x41002a
mov edx, dword [edi + esi*4]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
je 0x40fff1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ffe2
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040f560
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.00410090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x410024
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040f660
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40ffc1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x451ddc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret
Function at 0x4107b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d235
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
call fcn.004106f0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x4108cf
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [0x451dbc]
cmp eax, dword [ecx + 4]
jle 0x4108a6
push 0x451dbc
call fcn.00414fac
add esp, 4
cmp dword [0x451dbc], 0xffffffff
jne 0x4108a6
mov dword [ebp - 4], 1
mov eax, dword [0x451db8]
test eax, eax
jne 0x410890
push 0x43433c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410884
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41087d
call eax
mov dword [0x451db8], eax
jmp 0x410889
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x451db8]
test eax, eax
je 0x4108c8
mov esi, dword [ebp - 0x18]
push 0x451dbc
mov dword [0x451dc0], eax
mov byte [ebp - 4], 0
call fcn.00414f6d
add esp, 4
lea eax, [edi + 0x10]
push eax
mov eax, dword [0x451dc0]
push edi
push ebx
mov eax, dword [eax + 0x258]
call eax
add edi, 0x20
cmp edi, esi
je 0x4108cf
mov ecx, dword [ebp - 0x10]
jmp 0x410820
push 0xffffffffffffffff
call fcn.0041a503
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
push edi
mov edi, ecx
test esi, esi
je 0x4115ad
cmp word [esi], 0
je 0x4115ad
push 4
push 0x434f20
push esi
call fcn.0041a09d
add esp, 0xc
test eax, eax
jne 0x4114cf
add esi, 8
push 2
push 0x434f2c
push esi
call fcn.0041a09d
add esp, 0xc
test eax, eax
jne 0x4114e6
add esi, 4
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004181f0
push 0x104
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0041a810
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.00416bb3
mov esi, eax
add esp, 0x24
test esi, esi
je 0x411558
xor eax, eax
mov word [esi], ax
add esi, 2
je 0x411558
push str.HTML
push esi
call fcn.0041a0f7
add esp, 8
test eax, eax
je 0x411558
push 0x434f40
push esi
call fcn.0041a0f7
add esp, 8
test eax, eax
je 0x411558
push esi
jmp 0x41155a
push 0x17
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4115ad
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4115ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
test eax, eax
je 0x4115ad
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x214]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [ecx], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041498e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041498e
mov esp, ebp
pop ebp
ret
Function at 0x413bf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x44d034]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test edi, edi
je 0x413def
test esi, esi
je 0x413def
mov edx, dword [0x451280]
test edx, edx
je 0x413c67
push dword [esi + 0x1c]
push eax
push dword [esi + 0x18]
movzx eax, word [esi + 6]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
movzx eax, word [esi + 4]
push eax
push str.CUITcpHelper::TcpDispose_1__0x_x____lu____lu____lu____lu____p____lu_
push 0x448288
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
mov edx, dword [0x451280]
add esp, 0x2c
movups xmm1, xmmword [esi]
mov ecx, dword [edi + 0xb8]
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x1c], ecx
movd eax, xmm1
movups xmmword [esp + 0x30], xmm0
shr eax, 0x10
mov edi, eax
not edi
and edi, 1
mov dword [esp + 0x4c], edi
test edx, edx
je 0x413cbc
and eax, 1
push eax
push edi
push ecx
push str.CUITcpHelper::TcpDispose_2___d____d____d_
push 0x448288
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
mov edi, dword [esp + 0x68]
add esp, 0x1c
mov edx, dword [0x451280]
movzx eax, word [esi + 6]
xorps xmm0, xmm0
movzx ecx, word [esi + 4]
movaps xmmword [esp + 0x50], xmm0
mov word [esp + 0x56], ax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, 0xf0e9
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf004
mov dword [esp + 0x6c], 0
mov word [esp + 0x54], cx
mov dword [esp + 0x50], 0x4d4f
cmp cx, ax
je 0x413d1e
test edi, edi
mov edi, dword [esp + 0x14]
je 0x413d75
mov dword [esp + 0x48], 0xf001
jmp 0x413d75
test edx, edx
je 0x413d47
mov eax, dword [esp + 0x18]
push dword [eax + 8]
movzx eax, word [esi + 6]
push eax
push str.CUITcpHelper::TcpDispose__OT_A_UIHELPER_NOTIFY____d____p_
push 0x448288
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
add esp, 0x18
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x413d75
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push dword [esp + 0x34]
push dword [eax + 0xc]
call ecx
push 0x20
push esi
call fcn.00414c07
add esp, 8
test edi, edi
je 0x413d8f
push 0
push edi
call fcn.00414c07
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x413da9
or word [esp + 0x52], 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
cmp dword [esp + 0x4c], 0
je 0x413dc4
push dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x54]
call fcn.0040c7e0
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x413dd7
push 0
push eax
call fcn.00414c07
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041498e
mov esp, ebp
pop ebp
ret 0xc
Function at 0xbe4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00be41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbe407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbe406a
add dl, dl
jne 0xbe4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbe40dc
xor eax, eax
add dl, dl
jne 0xbe4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbe417d
add dl, dl
jne 0xbe40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbe40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbe40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbe40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbe40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbe4075
mov eax, 1
add dl, dl
jne 0xbe40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbe40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbe40e1
sub eax, ebx
mov ebx, 1
jne 0xbe4128
mov ecx, 1
add dl, dl
jne 0xbe410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbe4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbe4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbe4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbe413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbe414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbe4136
cmp eax, 0x7d00
jae 0xbe416d
cmp eax, 0x500
jb 0xbe4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbe4075
cmp eax, 0x7f
ja 0xbe4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbe4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbe419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbe4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404448
test esi, esi
jne 0x402e33
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404538
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40355c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40353c
xor eax, eax
push ebp
push 0x403535
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403578
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40353c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x460020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404240
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x4042a1
cmp word [0x46221c], 0xd7b2
jne 0x404269
cmp dword [0x462224], 0
jbe 0x404269
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x4042bd
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x462049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043c4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc