joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e7aa720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6d6], 0xb2
mov byte [ebp - 0x6d5], 0xb7
mov byte [ebp - 0x6d4], 0x95
mov byte [ebp - 0x6d3], 0xba
mov byte [ebp - 0x6d2], 0xbf
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.1e7a93e1
adc byte [ecx + 0x7c], dl
pop esp
lea eax, [ebp - 0x6dc]
push eax
call fcn.1e7a93f1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a93a6
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x1e7ab574
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.1e7a9352
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x1e7aa7ee
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1e7aa837
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x1e7aa7e1
call fcn.1e7a93e1
dec ebp
jns 0x1e7aa859
push ds
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.1e7a93e1
and eax, 0x8de6ce42
test esp, edx
clc
invalid
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401110
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x401131
jmp 0x40113c
jmp 0x401147
push 0
lea eax, [ebp - 0x108]
push eax
push 0x104
push str.Main.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40116b
push str.cs2.exe
call section..text
add esp, 4
mov dword [ebp - 0x114], eax
jmp 0x401189
mov ecx, dword [ebp - 0x114]
push ecx
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10c], eax
jmp 0x4011ae
push 4
push 0x3000
push 0x104
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x110], eax
jmp 0x4011da
push 0
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x401207
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x401235
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40124d
xor eax, eax
jmp 0x40125c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012a3
mov esp, ebp
pop ebp
ret

Function at 0x401e75
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401eb4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401eb4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401eb4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401eb4
cmp dword [ecx + 0x74], 0xe
jbe 0x401eb4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40e3b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e3f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e3f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e3f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e3f6
cmp dword [ecx + 0x74], 0xe
jbe 0x40e3f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f973
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f846
Function at 0x43051e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x430569
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004309bc
test al, al
jne 0x430563
sub edx, 2
cmp edx, edi
jne 0x430549
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43058b
lea eax, [edi + 2]
cmp edx, eax
je 0x43058b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004301de
add esp, 0x10
jmp 0x430683
push esi
lea ecx, [ebp - 0x255]
call fcn.004309bc
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4305cc
push dword [ebp - 0x25c]
jmp 0x43057b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x430609
cmp word [ebp - 0x226], 0
je 0x43062a
cmp word [ebp - 0x226], ax
jne 0x430609
cmp word [ebp - 0x224], 0
je 0x43062a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004301de
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x430676
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4305e3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43065e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x430683
push 0x42fc2e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043c710
add esp, 0x10
jmp 0x430653
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004012a3
leave
ret
Function at 0x431efc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x431f99
push ebx
push esi
call fcn.00431eb8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00431df7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431f46
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431f98
push edi
push eax
call fcn.00434710
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431f66
call fcn.0042fbd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431f97
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00431df7
add esp, 0x20
test eax, eax
jne 0x431f85
push edi
call fcn.0042fbd0
jmp 0x431f8d
push ebx
call fcn.0042fbd0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431f9c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431fad
pop esi
ret
push ebx
push edi
push esi
call fcn.00431eb8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00434710
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x431fd5
push ebx
push esi
push edi
call fcn.0040ad00
add esp, 0xc
push 0
call fcn.0042fbd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4328c1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432248

Function at 0x436a28
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042efee
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436a97
cmp esi, dword [ebp - 4]
je 0x436a92
cmp dword [ebp + 0xc], 0
je 0x436a92
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x436a6f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043657d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x436a99
xor eax, eax
inc eax
jmp 0x436a99
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x436b04
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042efee
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042efee
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x436b7b
cmp word [ecx], dx
je 0x436b7b
mov eax, dword [0x450b64]
push edi
dec eax
push eax
push 0x450a50
call fcn.00436a9d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x436bee
cmp word [eax], dx
je 0x436bee
mov eax, dword [edi]
test eax, eax
je 0x436b9f
cmp word [eax], dx
je 0x436b9f
lea eax, [ebp - 0x10]
push eax
call fcn.00436483
jmp 0x436ba8
lea eax, [ebp - 0x10]
push eax
call fcn.0043651e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x436c18
mov eax, dword [0x450a4c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x450740
call fcn.00436a9d
add esp, 0xc
test al, al
je 0x436c18
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x436be3
cmp word [eax], di
je 0x436be3
lea eax, [ebp - 0x10]
push eax
call fcn.00436483
pop ecx
jmp 0x436c1a
lea eax, [ebp - 0x10]
push eax
call fcn.0043651e
jmp 0x436be0
mov eax, dword [edi]
test eax, eax
je 0x436c05
cmp word [eax], dx
je 0x436c05
lea eax, [ebp - 0x10]
push eax
call fcn.0043641a
pop ecx
jmp 0x436c18
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x436ce3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00436922
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x436ce3
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x436ce3
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x436ce3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x436c70
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00437b8b
test ebx, ebx
je 0x436cde
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00437b8b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436ce3
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436ce3
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043daeb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x436ce5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004012a3
leave
ret
Function at 0x44343c
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x443456
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x44346d
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4434c5
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00433062
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4434c5
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4434c5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4434c5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4434bf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4434c1
xor bl, bl
mov al, bl
jmp 0x4434c7
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x444480
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x459968]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4444c2
cmp byte [ebx], 0xa
jne 0x4444c2
or byte [edi + eax + 0x28], 4
jmp 0x4444c7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4445ca
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4445a5
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4444f6
mov eax, dword [ebp - 8]
jmp 0x444516
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x444532
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x444510
add eax, 2
mov cl, 0xa
jmp 0x444513
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4444d8
jmp 0x4445ca
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4445a0
cmp dword [ebp - 0x10], 0
je 0x4445a0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x459968]
test byte [eax + edi + 0x28], 0x48
je 0x44457f
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x44456f
mov byte [esi], 0xa
jmp 0x4445c9
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x459968]
mov byte [eax + edi + 0x2a], cl
jmp 0x4445c9
cmp byte [ebp - 1], 0xa
jne 0x444589
cmp esi, ebx
je 0x44456a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004442d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4445ca
mov byte [esi], 0xd
jmp 0x4445c9
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x459968]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4445c7
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4445ca
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4445d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x459968]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x444617
push 0xa
pop esi
cmp word [ebx], si
jne 0x444617
or byte [eax + edi + 0x28], 4
jmp 0x44461c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x444787
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x44475f
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x444669
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x444693
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4446b2
push 0xa
pop ebx
cmp word [edx], bx
jne 0x444680
push ebx
add eax, 4
pop edx
jmp 0x444688
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x44462e
jmp 0x444787
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44475a
cmp dword [ebp - 0x14], 0
je 0x44475a
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x459968]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x444736
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4446fe
mov word [esi], ax
jmp 0x444784
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x459968]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x459968]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x459968]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x444784
cmp word [ebp - 4], ax
jne 0x444740
cmp esi, ebx
je 0x4446f6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004442d2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x444787
push 0xd
pop eax
jmp 0x4446f6
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x459968]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x444781
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x444787
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449e4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449e4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x468280
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
test eax, eax
je 0x468380
mov eax, dword [0xe72288]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x98]
mov edx, dword [eax + 0x9c]
lea ebx, [eax + 0x1d0]
mov dword [esp + 0x30], ebx
lea ebp, [eax + 0x318]
mov dword [esp + 0x2c], ebp
add ecx, 1
mov dword [eax + 0x98], ecx
adc edx, 0
mov dword [eax + 0x9c], edx
mov ecx, dword [eax + 0xa8]
mov dword [ecx], 0
call fcn.0046de10
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00436e20
mov eax, dword [esp + 0x28]
mov byte [eax + 0x8c], 1
inc dword [eax + 0xa0]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
call fcn.00473e30
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x8c], 0
dec dword [ecx + 0xa0]
nop
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.00478f70
lea edi, [esp + 0xc]
mov esi, dword [esp + 0x30]
call fcn.00474914
call fcn.0046dfc0
mov eax, dword [0xe72288]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test byte [eax], al
lea edi, [eax + 0x1d0]
lea esi, [esp + 0xc]
call fcn.00474914
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
add esp, 0x34
ret
lea eax, [0x90774e]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0046daf0
nop
int3
Function at 0x407740
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42b32b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4352f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00428e18
push 4
mov dword [esp + 0x20], 0
call fcn.0041576d
mov edi, eax
add esp, 4
test edi, edi
je 0x4077c0
call fcn.004292bd
mov dword [edi], eax
call fcn.004290f1
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042949c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4077b5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004294bd
jmp 0x4077c2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x412080
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4352f4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41211c
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412115
nop
lea ecx, [esp + 0x2c]
push 0x430300
push ecx
call fcn.00429a69
add esp, 8
test eax, eax
je 0x412113
lea edx, [esp + 0x2c]
push str.zuhaoclient.exe
push edx
call fcn.00429a69
add esp, 8
test eax, eax
je 0x412113
lea eax, [esp + 0x2c]
push 0x430340
push eax
call fcn.00429a69
add esp, 8
test eax, eax
je 0x412113
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4120c0
jmp 0x412115
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00414c0c
add esp, 0x230
ret

Function at 0x412730
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x412757
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret