joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406770
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x425b98
cmp dword [ebp + 0xc], 2
jl 0x406784
mov ebx, 0x425bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4067bc
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402718
mov dword [fcn.0042301c], eax
mov eax, 0x402720
mov dword [0x423020], eax
mov eax, ebx
call fcn.00406654
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4067f1
cmp al, 3
jge 0x4067f1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406802
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40680d
call dword [ecx + eax*4]
cmp dword [0x42303c], 0
jne 0x406823
mov byte [0x423044], 1
fnstcw word [0x42101c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406ad0
call fcn.00406704
ret 4

Function at 0x406a38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423054], 0
je 0x406a9f
cmp word [0x423344], 0xd7b2
jne 0x406a61
cmp dword [0x42334c], 0
jbe 0x406a61
mov eax, 0x423340
call dword [fcn.0042335c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4219c1
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406acc
call fcn.00407168
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421026], 0
jne 0x406abb
push 0
push 0x4219bb
push 0x4219c1
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40967c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4097e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406cbc
cmp si, word [0x4219f8]
jb 0x409714
cmp si, word [0x421bf8]
ja 0x409714
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409714
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4219f8]
jae 0x4096ee
mov edi, ebx
dec edi
jmp 0x40970f
cmp si, word [ebx*8 + 0x4219f8]
jbe 0x4096fe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40970f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4219fc]
call fcn.0040959c
jmp 0x409714
cmp edi, dword [ebp - 8]
jae 0x4096d8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4097c3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4097c3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407294
push dword [ebp - 0x160]
push 0x409800
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407294
push dword [ebp - 0x164]
push 0x409810
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407294
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040744c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097ea
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406d1c
pop eax
jmp eax
Function at 0x409998
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a9e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x425c28]
jne 0x4099e4
mov eax, esi
mov edx, 0x425c2a
mov ecx, 0x55
call fcn.00407294
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409a86
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406cbc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a53
cmp byte [0x425c0c], 0
je 0x409a18
mov edx, esi
mov eax, ebx
call fcn.0040987c
jmp 0x409a53
mov edx, esi
mov eax, ebx
call fcn.0040967c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409a53
cmp dword [esi], 0
je 0x409a3c
mov eax, esi
mov edx, 0x409ab8
call fcn.0040736c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040967c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040736c
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x425c28], bx
mov eax, dword [esi]
call fcn.00407208
mov ecx, eax
mov eax, 0x425c2a
mov edx, 0xaa
call fcn.004094fc
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aa5
lea eax, [ebp - 4]
call fcn.00406cbc
pop eax
jmp eax
Function at 0x409ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406db0
xor eax, eax
push ebp
push 0x409f08
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409d26
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409d40
mov eax, dword [ebp - 4]
call fcn.00407208
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.004094fc
cmp word [ebp - 0x21e], 0
je 0x409eeb
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e0f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e0f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e0f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e0f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409f88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409e0f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x409fbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409eeb
xor eax, eax
push ebp
push 0x409ee4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00409ae0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409e72
mov eax, dword [ebp - 0x14]
call fcn.004042f0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407258
jmp 0x409ebd
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x409ffc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409ebd
mov eax, dword [ebp - 0x14]
call fcn.004042f0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x409ffc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409eeb
cmp dword [ebp - 0xc], 0
je 0x409ed8
mov eax, dword [ebp - 0xc]
call fcn.0040430c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f0f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d1c
pop eax
jmp eax
Function at 0x40a218
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406db0
xor eax, eax
push ebp
push 0x40a2da
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407294
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073c4
mov eax, dword [ebx]
call fcn.0040a0c4
test al, al
jne 0x40a2b5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407294
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004073c4
mov eax, dword [ebx]
call fcn.0040a0c4
test al, al
jne 0x40a2b5
mov eax, ebx
call fcn.00406cbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2e1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406d1c
lea eax, [ebp - 4]
call fcn.00406cbc
pop eax
jmp eax

Function at 0x415f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x415fe9
test eax, edx
je 0x415fec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x415fa7
movzx eax, word [eax]
sub eax, ecx
jmp 0x415fce
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x415fcf
add ecx, 4
js 0x415fbf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x415fcc
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x415fce
xor eax, eax
ret
test eax, eax
je 0x415ff8
test edx, edx
jne 0x415f98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41becc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407074
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bd0c
mov edi, eax
cmp edi, 0x104
jbe 0x41be77
mov eax, edi
add eax, eax
call fcn.004042f0
mov esi, eax
jmp 0x41be79
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bd0c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41beb2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41be9c
mov eax, esp
cmp esi, eax
je 0x41bebf
mov eax, esi
call fcn.0040430c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41bef8
cmp bl, 0
je 0x41bef4
cmp bl, 0x41
jl 0x41beef
cmp bl, 0x5a
jg 0x41beef
or bl, 0x20
xor al, bl
inc esi
jmp 0x41bed3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41be38
Function at 0x41ca78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41ca96
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41caae
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41caa9
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x41cab3
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41cb21
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41cb6a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41cadf
inc dword [ebp - 0xc]
jmp 0x41caf7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41caf7
cmp dword [ebp - 0xc], 0
jle 0x41caf7
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41cb19
xor eax, eax
jmp 0x41cb15
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41cb14
mov eax, esi
jmp 0x41cb6d
inc eax
cmp eax, ecx
jle 0x41cb01
inc esi
cmp esi, dword [ebp - 8]
jl 0x41cacb
jmp 0x41cb6a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41cb6a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41cb42
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41cb64
xor eax, eax
jmp 0x41cb60
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41cb5f
mov eax, esi
jmp 0x41cb6d
inc eax
cmp eax, ecx
jle 0x41cb4c
inc esi
cmp esi, dword [ebp - 8]
jl 0x41cb2a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x41cd6d
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41cd7b
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x41ce9d
test ebx, ebx
jl 0x41ce9d
test esi, esi
jle 0x41ce9d
mov eax, dword [ebp - 8]
call fcn.00407208
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407208
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x41ce3a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x41ce9d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41ce1f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41cdee
inc dword [ebp - 0x14]
jmp 0x41cdfe
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x41cdfe
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x41ce09
or eax, 0xffffffff
jmp 0x41ce1f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41ce1c
inc eax
jmp 0x41ce1f
or eax, 0xffffffff
test eax, eax
jl 0x41ce27
cmp esi, eax
jg 0x41cddc
cmp esi, eax
jg 0x41ce32
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41cea0
inc edx
dec dword [ebp - 0x1c]
jne 0x41cdd8
jmp 0x41ce9d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x41ce9d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41ce84
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41ce63
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x41ce6e
or eax, 0xffffffff
jmp 0x41ce84
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41ce81
inc eax
jmp 0x41ce84
or eax, 0xffffffff
test eax, eax
jl 0x41ce8c
cmp esi, eax
jg 0x41ce4c
cmp esi, eax
jg 0x41ce97
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41cea0
inc edx
dec dword [ebp - 0x1c]
jne 0x41ce48
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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 0x13001320
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1301611c]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x130013f4
cmp dword [0x13016a74], 0
jne 0x130013f4
mov eax, dword [ebp + 8]
movups xmm0, xmmword [0x1300f1b4]
mov dword [0x13016a7c], eax
mov eax, dword [0x1300f1c4]
mov dword [ebp - 0xc], eax
mov ax, word [0x1300f1c8]
mov word [ebp - 8], ax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x13016a74], 1
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x13016a78], eax
test eax, eax
je 0x130013e5
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.Client.ini
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
push 0x83a
push str.AuthPort
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
mov dword [0x1301610c], eax
mov eax, dword [0x13016a78]
add eax, 0x3cd85f
push eax
call fcn.13001630
add esp, 8
call fcn.13001080
mov ecx, 0x13016a90
call fcn.13001b30
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.13002dd7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x130015d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1300161e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x40
push eax
push 0x40
push 1
push esi
mov dword [0x13016a88], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x13001614
mov al, byte [ebp + 0xc]
mov byte [esi], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x13016a88], 0
pop esi
pop ebp
ret

Function at 0x13001630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1300167e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x40
push eax
push 0x40
push 4
push esi
mov dword [0x13016a88], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x13001674
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x13016a88], 0
pop esi
pop ebp
ret
Function at 0x13001730
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1301611c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x130017bc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, esi
push edi
mov edi, dword [ebp + 0x10]
sub eax, 5
mov dword [ebp - 0xb], eax
add edi, 5
lea eax, [ebp - 0x10]
mov byte [ebp - 0xc], 0xe9
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x10], 0
mov dword [0x13016a88], 1
call ebx
test eax, eax
je 0x130017b0
xor eax, eax
test edi, edi
je 0x130017a5
nop word [eax + eax]
cmp eax, 5
jae 0x1300179b
mov cl, byte [ebp + eax - 0xc]
jmp 0x1300179d
mov cl, 0x90
mov byte [esi + eax], cl
inc eax
cmp eax, edi
jb 0x13001790
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push esi
call ebx
pop edi
mov dword [0x13016a88], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.13002dd7
mov esp, ebp
pop ebp
ret