joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414562
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x418348
call fcn.0040e120
xor esi, esi
cmp dword [0x41edc4], esi
jne 0x4145a6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414591
mov dword [0x41edc4], edi
jmp 0x4145a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4145a6
mov dword [0x41edc4], 2
mov eax, dword [0x41edc4]
cmp eax, 2
je 0x414687
cmp eax, esi
je 0x414687
cmp eax, 1
jne 0x4145eb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4145d4
mov eax, dword [0x41ed2c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4145f2
xor eax, eax
jmp 0x414699
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040aef0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x414628
cmp edi, esi
jne 0x414643
lea eax, [ebx + ebx]
push eax
call fcn.0040adcf
pop ecx
mov edi, eax
cmp edi, esi
je 0x4145eb
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414676
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x414660
push esi
push esi
jmp 0x414666
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x414682
push edi
call fcn.0040ad25
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x414699
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040e15b
ret
Function at 0x4154bc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4154d5
or eax, 0xffffffff
jmp 0x415536
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x415532
push 0x3d
push esi
call fcn.0041363c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x415532
cmp esi, eax
je 0x415532
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x41eb58]
sete cl
cmp eax, dword [0x41eb5c]
mov dword [ebp - 8], ecx
jne 0x415518
mov edi, eax
call fcn.0041545b
mov dword [0x41eb58], eax
cmp eax, ebx
jne 0x415571
cmp dword [ebp + 0xc], ebx
je 0x41553a
cmp dword [0x41eb60], ebx
je 0x41553a
call fcn.00413b1f
test eax, eax
je 0x415571
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x415543
xor eax, eax
jmp 0x415535
push 4
call fcn.0040adcf
cmp eax, ebx
pop ecx
mov dword [0x41eb58], eax
je 0x415532
mov dword [eax], ebx
cmp dword [0x41eb60], ebx
jne 0x415571
push 4
call fcn.0040adcf
cmp eax, ebx
pop ecx
mov dword [0x41eb60], eax
je 0x415532
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x41eb58]
call fcn.0041540e
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4155d2
cmp dword [esi], ebx
je 0x4155d2
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040ad25
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4155b5
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x415613
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4155ac
mov eax, edi
shl eax, 2
push eax
push dword [0x41eb58]
call fcn.004102d9
cmp eax, ebx
pop ecx
pop ecx
je 0x415613
jmp 0x41560e
cmp dword [ebp - 8], ebx
jne 0x41567e
cmp edi, ebx
jge 0x4155e1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x41eb58]
call fcn.004102d9
cmp eax, ebx
pop ecx
pop ecx
je 0x415532
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x41eb58], eax
cmp dword [ebp + 0xc], ebx
je 0x415668
push dword [ebp - 4]
call fcn.0040b060
inc eax
inc eax
push eax
call fcn.0040adcf
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x415668
push dword [ebp - 4]
push esi
call fcn.00410580
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x415661
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040ad25
pop ecx
cmp dword [ebp - 8], ebx
je 0x415676
push dword [ebp - 4]
call fcn.0040ad25
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x415535
push dword [ebp - 4]
call fcn.0040ad25
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41553f
Function at 0x4010b0
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 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
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 0x4053e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x408
mov eax, dword [0x5564a4]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
mov edx, dword [esp + 0x418]
mov ecx, dword [esp + 0x414]
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x424]
push eax
push 0x400
lea eax, [esp + 0x14]
push eax
push edi
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x405451
mov eax, dword [0x569340]
add eax, 0xfffffff0
push eax
call fcn.00402280
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x40545d
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401d30
mov ecx, dword [esp + 0x40c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004752ab
add esp, 0x408
ret

Function at 0x408a60
Capabilities:
Download url
Receive data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x408a83
pop edi
mov eax, 1
pop ebx
ret
cmp byte [esp + 0x14], 1
push esi
jne 0x408aa9
xor esi, esi
lea ecx, [ecx]
push 0
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x408aaf
add esi, 1
cmp esi, 0xa
jl 0x408a90
pop esi
pop edi
xor eax, eax
pop ebx
ret
pop esi
pop edi
mov eax, 1
pop ebx
ret

Function at 0x409020
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x409380
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00404580
mov ecx, eax
call fcn.00404360
call fcn.00421b80
mov ecx, eax
call fcn.00445390
cmp eax, 7
ja case.default.0x4093a4
jmp dword [eax*4 + 0x409450]
call fcn.00421b80
mov ecx, eax
call fcn.004212c0
call fcn.004359a0
mov ecx, eax
call fcn.00435950
call fcn.004359a0
mov ecx, eax
call fcn.00435960
push 0
mov ecx, esi
call fcn.00459596
pop esi
ret
call fcn.00421b80
mov ecx, eax
call fcn.004212c0
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
test eax, eax
je case.default.0x4093a4
call fcn.00420900
mov ecx, eax
call fcn.00420c00
mov ecx, dword [esi + 0x20]
push 8
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00432060
mov ecx, eax
call fcn.00428cd0
call fcn.00432060
mov ecx, eax
call fcn.0042eff0
call fcn.00420900
mov ecx, eax
call fcn.00420a50
push 0
push 0
push 0x409270
call fcn.00476a39
add esp, 0xc
pop esi
ret
Function at 0x418940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b040
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004675ea
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 8]
push 0x10
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
jne 0x418999
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.004601c0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0045c5c3
push eax
lea ecx, [esp + 0x14]
call fcn.0045ff8c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00418070
lea ecx, [esp + 8]
mov esi, eax
call fcn.00460213
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0045ffe0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 8], vtable.CBitmap.0
call fcn.004019b0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
Function at 0x41e930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49da4a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi], vtable.CConfigDataManager.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov byte [esp + 0x1c], 3
call fcn.0045f338
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e9aa
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x1c], 4
call fcn.0045f338
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e9d8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x48], eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str..NetLogConfigData
mov byte [esp + 0x24], 5
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
call fcn.00401d30
mov byte [esp + 0x20], 6
call fcn.00427200
mov ecx, eax
mov byte [esp + 0x20], 5
call fcn.00427270
mov dword [esi + 0x64], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x420f00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49f3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
call fcn.00467e79
mov esi, dword [esp + 0x40]
push 0
push 0x3002
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.00468270
test eax, eax
lea ecx, [esp + 0x10]
jne 0x420fc4
mov byte [esp + 0x38], 1
call fcn.00467f4d
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420f84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420fac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x28]
push 2
push 0
push 0
call eax
lea ecx, [esp + 0x20]
call fcn.00467e79
mov edi, dword [esp + 0x44]
push 0
push 0
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 3
call fcn.00468270
test eax, eax
lea ecx, [esp + 0x20]
jne 0x42103c
mov byte [esp + 0x38], 2
call fcn.00467f4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.00467f4d
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x420f8b
call fcn.00467d6c
mov edi, eax
push edi
call fcn.00458188
add esp, 4
mov ebp, eax
push edi
push ebp
lea ecx, [esp + 0x28]
call fcn.00467b87
push edi
push ebp
lea ecx, [esp + 0x18]
call fcn.00467bc7
cmp dword [esp + 0x48], 0
je 0x421076
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00467d6c
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x38], 2
call fcn.00467f4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.00467f4d
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4210be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4210e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0xc
Function at 0x421280
Capabilities:
Create thread

Disassembly:
call fcn.00432060
mov ecx, eax
jmp 0x435060
push esi
mov esi, ecx
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
test eax, eax
jne 0x43509d
push esi
push eax
push 0x435000
call fcn.00476a39
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43509d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x421ac0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
mov dword [ecx], vtable.CLauncherManager.0
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x64]
call eax
test eax, eax
je 0x421ae7
call fcn.00439f40
call fcn.00404580
mov ecx, eax
call fcn.00404360
mov edx, dword [str.serverConfig.dat]
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.00401d30
lea eax, [esp + 8]
push eax
call fcn.004051d0
mov esi, dword [eax]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ecx
ret

Function at 0x422120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x5564a4]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov byte [esp + 0x22], al
mov eax, dword [esi + 0x435f4]
push str._5__SendLoginAccept_Normal
push eax
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [esi + 0x435ec]
lea edx, [esp + 0x14]
add esp, 0xc
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x422170
mov eax, dword [esi + 0x435f0]
lea edx, [esp + 0x15]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x422188
movzx ecx, word [esi + 0x435e2]
mov dl, byte [esi + 0x435e0]
push ebx
push edi
lea eax, [esp + 0x10]
mov edi, 0x1b
lea esp, [esp]
mov bl, byte [eax]
add bl, dl
xor bl, cl
mov byte [eax], bl
add eax, 1
sub edi, 1
jne 0x4221b0
call fcn.004358e0
mov ecx, eax
call fcn.00435890
test eax, eax
pop edi
pop ebx
je 0x4221e5
mov ecx, dword [esi + 0x435f4]
push str._5__SERVER_TYPE_TEST
mov byte [esp + 0x26], 1
push ecx
jmp 0x4221f6
mov edx, dword [esi + 0x435f4]
push str._5__SERVER_TYPE_REGULAR
mov byte [esp + 0x26], 0
push edx
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0xc
push 0x1b
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x43550]
push 0
mov byte [esp + 0x14], 0x15
mov byte [esp + 0x15], 3
call fcn.004555d0
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.004752ab
add esp, 0x24
ret
Function at 0x424670
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x5564a4]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x435f4]
push str.SendLog
push eax
call fcn.00427200
push eax
call fcn.00426f60
mov edx, dword [str.NetLogCritical.Log]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push bind
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401d30
lea eax, [esp + 0x30]
push eax
call fcn.004051d0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424701
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x42470d
xor eax, eax
jmp 0x4247b9
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call ebx
push 0
push 0
push 0
push edi
mov esi, eax
call ebx
cmp esi, 0x400
jbe 0x424734
mov esi, 0x400
lea ecx, [esi + 1]
push ecx
call fcn.00458188
add esp, 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [str.NetLogCritical.Log]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x435ec]
lea edx, [esp + 0x1c]
mov dword [esp + 0x29], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x424775
push esi
lea ecx, [esp + 0x31]
push ebx
push ecx
call fcn.00476f90
mov eax, dword [esp + 0x35]
mov ecx, dword [ebp + 0x43554]
add esp, 0xc
add eax, 0x11
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 1
call fcn.004555d0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004752ab
add esp, 0x424
ret
Function at 0x427090
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a2758
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x4f99e4
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.00405120
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or esi, 0xffffffff
mov ecx, dword [edi - 0xc]
lea eax, [esi + 1]
test eax, eax
jl 0x427137
cmp eax, ecx
jge 0x427137
add eax, edi
push 0x5c
push eax
call fcn.00476740
add esp, 8
test eax, eax
je 0x427137
sub eax, edi
mov esi, eax
cmp esi, 0xffffffff
je 0x427137
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00409890
mov ecx, dword [eax]
push 0
push ecx
call ebx
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
jg 0x4270d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4270d7
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42715b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x427a40
Capabilities:
Create thread

Disassembly:
push esi
push 1
mov esi, ecx
call fcn.00427930
push esi
push 0
push 0x4279d0
call fcn.00476a39
add esp, 0xc
cmp eax, 0xffffffff
jne 0x427a6c
push 0
mov ecx, esi
call fcn.00427930
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x428e30
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push ebp
push edi
push 0x8000
push 0
push 0x560d38
mov ebp, ecx
call fcn.00476f10
mov eax, dword [esp + 0x1c]
push 0x5020d8
push eax
xor edi, edi
call fcn.004765e2
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x428ed3
push ebx
push 0x8000
push 1
push 0x560d38
call fcn.00478454
add esp, 0x10
test eax, eax
je 0x428eca
push esi
lea ebx, [ebx]
test eax, eax
not edi
mov esi, 0x560d38
mov ecx, edi
je 0x428eac
lea ecx, [ecx]
movzx edx, byte [esi]
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [ebp + edx*4 + 4]
sub eax, 1
add esi, 1
test eax, eax
jne 0x428e90
push ebx
push 0x8000
not ecx
push 1
push 0x560d38
mov edi, ecx
call fcn.00478454
add esp, 0x10
test eax, eax
jne 0x428e80
pop esi
push ebx
call fcn.00476190
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x429320
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x428ce0
call fcn.00476a39
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x42934a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret 4
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x560a90], 0
jne 0x42936e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4

Function at 0x429ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a4ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00467e79
mov esi, dword [esp + 0x2c]
push 0
push 0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00468270
cmp eax, 1
lea ecx, [esp + 0xc]
jne 0x429b83
call fcn.00467d6c
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x24], 0
call fcn.00467f4d
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429b6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
mov byte [esp + 0x24], 0
call fcn.00467f4d
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429bb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret