joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5095d8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5636d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004feafb
and dword [ebp - 0x14], 0
cmp dword [0x56afd4], 0
mov dword [ebp - 0x18], eax
jne 0x50968b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x509733
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5442c8
push ebx
call edi
test eax, eax
je 0x509733
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5442b8
push ebx
mov dword [0x56afd4], eax
call edi
push eax
call esi
push 0x5442a4
push ebx
mov dword [0x56afd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56afdc], eax
call edi
push eax
call esi
mov dword [0x56afe4], eax
test eax, eax
je 0x50968b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56afe0], eax
mov eax, dword [0x56afe0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5096e4
cmp dword [0x56afe4], ecx
je 0x5096e4
push eax
call esi
push dword [0x56afe4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5096e4
test ebx, ebx
je 0x5096e4
call edi
test eax, eax
je 0x5096db
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5096db
test byte [ebp - 8], 1
jne 0x5096e4
or dword [ebp + 0x10], 0x200000
jmp 0x509717
mov eax, dword [0x56afd8]
cmp eax, dword [ebp - 0x18]
je 0x509717
push eax
call esi
test eax, eax
je 0x509717
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x509717
mov eax, dword [0x56afdc]
cmp eax, dword [ebp - 0x18]
je 0x509717
push eax
call esi
test eax, eax
je 0x509717
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56afd4]
call esi
test eax, eax
je 0x509733
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x509735
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f817b
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x335c0f1e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..text
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6a535492
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x597f66
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x437700], 0x20
push esi
push edi
mov esi, ecx
je 0x597fa7
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x42da68
push dword [0x43770c]
push dword [0x437708]
call fcn.0059acad
push 0x1c135e
call fcn.0059261c
lea eax, [esi + 8]
mov ecx, dword [eax]
mov esi, ecx
mov edi, dword [eax + 4]
mov edx, edi
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
mov dword [ebp - 0x10], esi
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 4]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x10]
jne 0x597fef
cmp ecx, edi
je 0x59801f
mov esi, eax
mov dword [ebp - 0x10], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 4]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x597fef
cmp ecx, dword [ebp - 0x10]
jne 0x597fef
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2a9b41b0
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x318772c2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x100012b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc0
test byte [0x10006028], 1
jne 0x10001320
lea ebx, [ebp - 0xae]
mov dword [esp + 0xc], 0x55
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5a
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
sub esp, 0x10
test eax, eax
je 0x10001350
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym._WindowsCreateString_12
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 8
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.iface__p_semi_stub__n
mov dword [esp + 8], str.geographic_region_get_CodeTwoLetter
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10006028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x100012c3
mov eax, 0x80070057
jmp 0x10001310

Function at 0x10002c30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc8
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._WindowsGetStringRawBuffer_8
sub esp, 8
mov ebx, eax
test byte [0x10006050], 8
jne 0x10002cd8
lea esi, [ebp - 0xb6]
mov dword [esp + 0xc], 0x55
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
sub esp, 0x10
test eax, eax
je 0x10002d10
mov dword [esp + 4], 0xb4
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x10002d17
mov dword [eax], sym._language_QueryInterface_12
lea eax, [eax + 8]
mov dword [eax - 4], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [edi], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.iface__p__tag__p__value__p._n
mov dword [esp + 8], str.language_factory_CreateLanguage
mov dword [esp + 4], 0x10006050
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002c60
mov eax, 0x80070057
jmp 0x10002cca
mov eax, 0x8007000e
jmp 0x10002cca

Function at 0x10005100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10005158
cmp byte [esi + ebx - 1], 0xa
je 0x1000512c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000d084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10005780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10005958
mov edi, dword [0x1000d084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10005867
test byte [0x10006068], 8
jne 0x10005900
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10006078], 8
jne 0x100058c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10005809
cmp esi, 3
jbe 0x10005878
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000581a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000a048]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10005809
mov dword [esp], 0x10006078
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100057e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100057e0
mov dword [esp], 0x10006068
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100057cb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100057d3
mov eax, 0xffffffff
jmp 0x10005867
Function at 0x405b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440ec3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4549cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00405590
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], 0
call fcn.00405590
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00405590
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x406220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440fd3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4549cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00405df0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov dword [esp + 0x1c], 0
call fcn.00405df0
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.00405df0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x407830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441258
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4549cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov dword [esp + 0x40], eax
mov byte [ecx + 4], al
lea eax, [esp + 0x48]
push eax
call fcn.00402e40
mov ecx, dword [edi + 0x4c]
sub ecx, dword [edi + 0x48]
lea esi, [edi + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
inc eax
push eax
mov ecx, esi
call fcn.00406a80
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
add edi, 0x24
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
sub esp, 0x48
lea ebx, [edx + ecx + 1]
mov ecx, esp
mov dword [esp + 0x58], esp
call fcn.00405b50
push ebx
mov ecx, edi
call fcn.004076e0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
cmp dword [esp + 0x3c], 0x10
lea esi, [edx + eax - 1]
jb 0x407905
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040a820
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x1c
Function at 0x408880
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 0x408899
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4088d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4088d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4088d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4088c0
cmp esi, eax
jb 0x4088da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408a40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408aa7
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x408a83
cmp eax, 2
jne 0x408a96
mov eax, dword [esp + 0x14]
test esi, esi
je 0x408aa3
test eax, eax
je 0x408aa0
cmp byte [eax + esi - 1], 0
je 0x408aa3
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x408e70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4549cc]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408ee9
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00427b64
add esp, 0x110
ret
Function at 0x408f00
Capabilities:
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x614
mov eax, dword [0x4549cc]
xor eax, esp
mov dword [esp + 0x610], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.00427da0
push 0x103
lea ecx, [esp + 0x42d]
push ebx
push ecx
mov byte [esp + 0x434], bl
call fcn.00427da0
push 0xff
lea edx, [esp + 0x339]
push ebx
push edx
mov byte [esp + 0x340], bl
call fcn.00427da0
push 0xff
lea eax, [esp + 0x549]
push ebx
push eax
mov byte [esp + 0x550], bl
call fcn.00427da0
add esp, 0x30
push 0x104
lea ecx, [esp + 0x420]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x52c]
push eax
lea ecx, [esp + 0x42c]
push ecx
call fcn.004298df
lea edx, [esp + 0x330]
push edx
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x2c]
push str._s_s
push ecx
call fcn.00428d3a
lea edi, [esp + 0x34]
add esp, 0x24
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408fe0
mov dx, word [0x444208]
mov word [edi], dx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408ff7
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 6
mov esi, 0x4441ec
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x10]
push eax
movsb byte es:[edi], byte [esi]
call ebp
push 1
push ebx
push str.http:__mss.hq.ctc.com_
push str.iexplore.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x409116
push str.ShellExecute_error
call ebp
lea ecx, [esp + 0x114]
push ecx
push str..htm
push SysReAllocStringLen
call fcn.00408e70
add esp, 0xc
test eax, eax
jne 0x40911d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x118]
push edx
call edi
lea eax, [esp + 0x114]
push eax
mov ecx, eax
push ecx
push SysReAllocStringLen
call fcn.00408e70
add esp, 0xc
test eax, eax
jne 0x40911d
lea edx, [esp + 0x114]
push 0x444184
push edx
call fcn.0042941e
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4090e8
lea eax, [esp + 0x114]
push 0x444180
push eax
call fcn.0042941e
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4090e8
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x113]
jmp 0x4090ea
mov byte [esi], bl
push 0x44417c
push esi
call edi
push str.http:__mss.hq.ctc.com_
push esi
call edi
lea edx, [esp + 0x114]
push edx
call ebp
push 1
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40911d
push str.ShellExecute_success
call ebp
mov ecx, dword [esp + 0x620]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427b64
add esp, 0x614
ret

Function at 0x409140
Capabilities:
Check mutex on windows

Disassembly:
push str.GlobalCSClient_Singleton_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x409163
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
ret
Function at 0x409180
Capabilities:
Create process on windows
Print debug messages
Query environment variable

Disassembly:
sub esp, 0x26c
mov eax, dword [0x4549cc]
xor eax, esp
mov dword [esp + 0x268], eax
call fcn.00409140
test eax, eax
je 0x4091c2
push 0x444280
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00427b64
add esp, 0x26c
ret
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00427da0
xor eax, eax
push 0x207
push eax
lea ecx, [esp + 0x79]
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x7c], al
call fcn.00427da0
add esp, 0x18
push 0x208
lea edx, [esp + 0x68]
push edx
push str._ProgramFiles_SangforSSLSangforCSClientSangforCSClient.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [0x444238]
mov dx, word [0x44423c]
mov eax, dword [str.SDYX_LOGIN]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 4]
push ecx
mov word [esp + 0x64], dx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x10
push 0
mov dword [esp + 0x70], eax
mov al, byte [0x44423e]
push 0
mov byte [esp + 0x7e], al
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x409284
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 8]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x26c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00427b64
add esp, 0x26c
ret