joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413df0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4894b8
call fcn.0045cbb7
mov edi, ecx
mov eax, dword [0x4afd74]
mov esi, 0x4afd74
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x413e25
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.0040178d
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x413f0e
mov eax, dword [0x4afd74]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push str._s_d._s
call fcn.00438ef3
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x413f03
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x413efa
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.004304c4
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x413ef1
cmp dword [ebp + 8], edi
jne 0x413ef1
mov eax, edi
call fcn.00413bd1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040154a
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, esi
call fcn.0045cc8f
ret 0x10
xor eax, eax
mov edx, esi
call fcn.004304a4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040154a
mov esi, dword [ebp - 0x14]
jmp 0x413edc
Function at 0x42591f
Capabilities:
Print debug messages

Disassembly:
push 0x10
mov eax, 0x489326
call fcn.0045cbb7
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00401860
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.00425985
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040154a
call fcn.0045cc8f
ret 4

Function at 0x426817
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x144]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x426950
push eax
call fcn.00414108
mov ebx, eax
test ebx, ebx
pop ecx
je 0x42691d
mov eax, dword [ebx + 0x14]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x426891
lea eax, [ebx + 0x18]
push eax
call fcn.004189d5
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00438427
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x144], eax
jne 0x4268e7
mov ecx, dword [ebx + 0x44]
xor eax, eax
cmp ecx, eax
je 0x4268d9
cmp word [ecx], ax
je 0x4268d9
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x42691d
cmp dword [ebx + 0x14], eax
je 0x42691d
mov dword [ebp - 4], 1
jmp 0x42691d
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x426906
lea eax, [ebx + 0x18]
push eax
call fcn.004189d5
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00438427
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x144], ecx
je 0x42692e
push 0x67
jmp 0x426949
cmp dword [ebp - 8], ecx
je 0x426950
cmp dword [ebp - 0xc], ecx
je 0x426950
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x140]
cmp edx, dword [eax]
jne 0x426947
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0042652b
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430018
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48882e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ab1a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x20]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x30], 0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
add ebx, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], 0
mov esi, dword [ebx + 4]
je 0x430079
cmp dword [esp + 0x1c], ebx
je 0x43007e
call fcn.0045446b
cmp dword [esp + 0x20], esi
je 0x4300e4
lea esi, [esp + 0x1c]
call fcn.0042fc46
lea esi, [esp + 0x14]
call fcn.0042fcc0
mov byte [esp + 0x30], 1
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp + 8]
je 0x4300c1
mov byte [esp + 0x30], 0
call fcn.004147b0
and dword [esp + 0x14], 0
lea esi, [esp + 0x1c]
call fcn.0044bf6b
jmp 0x430069
push dword [esp + 0x20]
lea eax, [esp + 0x20]
push dword [esp + 0x20]
mov dword [esi + 0x14], 1
push eax
call fcn.0042fc66
mov byte [esp + 0x30], 0
call fcn.004147b0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430ac3
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x489214
call fcn.0045cbb7
mov esi, ecx
call fcn.00418301
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00430bf0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x430be2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430bdf
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x430bcc
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x430b95
mov ecx, dword [ebp - 0x14]
push 0x418339
push 0x4285df
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.00456c62
mov eax, edi
jmp 0x430b97
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x430bcc
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00430e23
test eax, eax
jne 0x430bc7
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x430bc7
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x430bcc
call fcn.00418301
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040154a
call fcn.0045cc8f
ret

Function at 0x430d56
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4ab1a4]
xor eax, ebp
mov dword [ebp + 0x194], eax
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 0x80], eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00455160
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00401860
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
mov eax, esi
call fcn.0045447b
add ebp, 0x198
leave
ret
Function at 0x434a39
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x230
mov eax, 0x48bd01
call fcn.0045cc20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [0x4afd74]
mov ecx, 0x4afd74
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x21a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x21c], bx
call fcn.00455160
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00401937
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00401937
push 0x2e
lea esi, [ebp - 0x220]
call fcn.00430fe9
cmp eax, 0xffffffff
je 0x434b11
mov ecx, eax
lea edx, [ebp - 0x228]
mov eax, esi
call fcn.00430f59
mov edi, esi
mov byte [ebp - 4], 1
call fcn.0040178d
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [0x4afd74]
mov ecx, 0x4afd74
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x220]
fstp qword [ebp - 0x23c]
push eax
call fcn.00434c5d
test eax, eax
jne 0x434b7a
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040154a
xor eax, eax
call fcn.0045cca3
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], eax
jne 0x434bc1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, ebx
jmp 0x434b72
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x434c4a
mov esi, dword [ebp - 0x230]
push ebx
lea eax, [ebp - 0x228]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x228], ebx
call fcn.004304c4
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x434c3d
cmp dword [ebp - 0x228], edi
jne 0x434c3d
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x434c1c
fld qword [ebp - 0x23c]
fstp qword [eax]
mov esi, dword [ebp - 0x230]
mov eax, edi
call fcn.00413bd1
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x434ba1
mov edx, dword [ebp - 0x230]
xor eax, eax
call fcn.004304a4
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x434ba1
Function at 0x43765d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4376c0
cmp dword [ebp + 0xc], 1
je 0x437699
cmp dword [ebp + 0xc], 2
je 0x437699
push 0xd
pop eax
jmp 0x4376c0
test edi, edi
mov eax, dword [ebp - 4]
je 0x4376ba
test eax, eax
je 0x4376b6
test al, 1
jne 0x437694
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4376ba
jmp 0x437694
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x43917c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4ab1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x84], eax
xor ecx, ecx
movzx eax, byte [ecx + str.80_]
mov esi, dword [ebp + 0xc]
mov edx, eax
sar eax, 3
movsx eax, byte [eax + esi]
and edx, 7
movzx edx, word [edx*2 + 0x4aef74]
test eax, edx
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x43919f
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x78
mov dword [ebp - 0x78], 0x7c
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x7c]
movzx eax, byte [eax + 0x4af020]
lea ecx, [ebp + ecx - 0x104]
lea esi, [ebp + esi - 0x104]
mov dword [ecx], ebx
mov dword [esi], ebx
xor edx, edx
mov edi, eax
cmp edi, 0x1c
jge 0x43920e
mov bl, byte [ebp + edi - 0x74]
jmp 0x439215
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x439203
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x439230
mov dl, byte [ebp + eax - 0x74]
jmp 0x439237
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x439225
xor ebx, ebx
xor eax, eax
lea edx, [eax + 0x4af048]
movzx edi, byte [edx - 0x18]
cmp byte [ebp + edi - 0x3c], bl
je 0x43925f
mov edi, dword [eax*4 + 0x4aef88]
or dword [esi], edi
movzx edx, byte [edx]
cmp byte [ebp + edx - 0x3c], bl
je 0x439271
mov edx, dword [eax*4 + 0x4aef88]
or dword [ecx], edx
inc eax
cmp eax, 0x18
jl 0x439246
sub dword [ebp - 0x78], 8
inc dword [ebp - 0x80]
sub dword [ebp - 0x7c], 8
cmp dword [ebp - 0x78], 0xfffffffc
jg 0x4391dd
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x84]
call fcn.004392af
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045447b
leave
ret 8
Function at 0x439361
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
push ebx
xor ecx, edx
and ecx, 0xaaaaaaaa
push esi
xor eax, ecx
push edi
xor ecx, edx
rol ecx, 1
push 0x3f
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
pop edi
mov ecx, dword [ebp + 0xc]
mov esi, eax
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x4af060]
or edx, dword [ebx*4 + 0x4af260]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x4af460]
and esi, edi
or edx, dword [esi*4 + 0x4af660]
mov esi, dword [ecx]
add ecx, 4
mov dword [ebp + 0xc], ecx
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x4af160]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x4af360]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x4af560]
and esi, edi
or ecx, dword [esi*4 + 0x4af760]
or ecx, edx
xor dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x4af060]
or edx, dword [ebx*4 + 0x4af260]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x4af460]
and esi, edi
or edx, dword [esi*4 + 0x4af660]
mov esi, dword [ecx]
xor esi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x4af160]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x4af360]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x4af560]
and esi, edi
or ecx, dword [esi*4 + 0x4af760]
or ecx, edx
xor eax, ecx
dec dword [ebp - 8]
jne 0x4393dc
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x43958a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
push edi
lea edi, [ebx + 1]
cmp edi, dword [esi + 0xc]
jbe 0x4395f5
push edi
call fcn.00453739
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x4395c6
push dword [esi + 4]
call fcn.004572a5
and dword [esi + 4], 0
and dword [esi + 0xc], 0
pop ecx
jmp 0x4395f5
mov eax, dword [esi + 4]
test eax, eax
je 0x4395ec
push dword [esi + 0xc]
push eax
push dword [ebp - 8]
call fcn.00457650
push dword [esi + 4]
call fcn.004572a5
and dword [esi + 4], 0
add esp, 0x10
and dword [esi + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
xor ecx, ecx
cmp dword [esi + 0xc], ecx
ja 0x439608
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4396d5
mov esi, dword [esi + 4]
mov eax, ebx
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
shl edi, 3
mov dword [ebp - 0xc], esi
jne 0x43962d
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov byte [esi], 0
jmp 0x4396d3
push edi
push dword [ebp + 0xc]
push esi
call fcn.00457650
mov eax, edi
cdq
and edx, 7
add eax, edx
mov ebx, eax
sar ebx, 3
add esp, 0xc
dec ebx
mov byte [esi + edi], 0
js 0x4396b1
lea eax, [esi + ebx*8]
mov dword [ebp + 0xc], eax
test ebx, ebx
jle 0x439663
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
mov dword [ebp - 8], eax
jmp 0x43966a
mov dword [ebp - 8], 0x4af860
cmp dword [ebp + 0xc], 0
je 0x439693
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
call fcn.0043917c
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 0xc]
mov esi, eax
call fcn.004390fd
mov esi, dword [ebp - 0xc]
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dl, byte [eax + edx]
add ecx, eax
xor byte [ecx], dl
inc eax
cmp eax, 8
jl 0x439695
sub dword [ebp + 0xc], 8
dec ebx
test ebx, ebx
jge 0x439656
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edi
mov dl, byte [esi + edi - 1]
movzx edx, dl
lea eax, [edi - 1]
sub edi, edx
jmp 0x4396cd
test eax, eax
jl 0x4396d1
mov byte [eax + esi], 0
dec eax
cmp eax, edi
jge 0x4396c4
sub dword [ecx], edx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43b1b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4ab1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push str.hklm
push eax
call fcn.004546f2
test eax, eax
pop ecx
pop ecx
jne 0x43b1e6
mov eax, reloc.WS2_32.dll_bind
jmp 0x43b23a
mov eax, dword [esi + 4]
push str.hkcu
push eax
call fcn.004546f2
test eax, eax
pop ecx
pop ecx
jne 0x43b201
mov eax, closesocket
jmp 0x43b23a
mov eax, dword [esi + 4]
push str.hkcr
push eax
call fcn.004546f2
test eax, eax
pop ecx
pop ecx
jne 0x43b21c
mov eax, closesocket
jmp 0x43b23a
mov eax, dword [esi + 4]
push str.hkur
push eax
call fcn.004546f2
neg eax
sbb eax, eax
pop ecx
and eax, 0x7ffffffd
pop ecx
add eax, reloc.WS2_32.dll_closesocket
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x2c]
push edx
push 0x20219
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x43b2a4
push edi
push 7
mov esi, dword [esi + 0xc]
mov edx, dword [ebp - 0x2c]
pop ecx
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
push edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x1f
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
je 0x43b2a8
cmp dword [ebp - 0x28], ebx
je 0x43b2a4
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x43b2b9
cmp dword [ebp - 0x28], ebx
je 0x43b2b6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045447b
leave
ret
Function at 0x43b908
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x48a23a
call fcn.0045cbb7
mov ebx, 0x400000
lea ecx, [ebp - 0x14]
call fcn.00441ae3
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00441b1c
lea eax, [ebp - 0x14]
mov dword [esp], str.data_baseinfo.ini
push eax
call fcn.0043105b
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push str.TryNo
mov edi, str.common
push edi
call esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040154a
cmp dword [ebp - 0x10], 0
jne 0x43ba02
lea ecx, [ebp - 0x14]
call fcn.00441ae3
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00441b1c
lea eax, [ebp - 0x14]
mov dword [esp], str.data_baseconfig.dat
push eax
call fcn.0043105b
push dword [ebp - 0x14]
push 0
push str.TryNo
push edi
call esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040154a
cmp dword [ebp - 0x10], 0
jne 0x43ba02
lea ecx, [ebp - 0x18]
call fcn.00441ae3
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 2
call fcn.00441b1c
lea eax, [ebp - 0x18]
mov dword [esp], str.ressrcchsuplive.svr
push eax
call fcn.0043105b
push dword [ebp - 0x18]
push 0
push str.TryNo
push edi
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x10]
call fcn.0045cc8f
ret