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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x438af0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ae61
cmp byte [ebx], 0xa
jne 0x41ae61
or byte [eax + edi + 0x28], 4
jmp 0x41ae66
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41af64
mov al, byte [edx]
cmp al, 0x1a
je 0x41af46
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ae95
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41aeba
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41aec4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ae77
jmp 0x41af64
push 0
lea eax, [ebp - 0xc]
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 0x41af41
cmp dword [ebp - 0xc], 0
je 0x41af41
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x438af0]
test byte [eax + edi + 0x28], 0x48
je 0x41af1b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41af06
mov byte [esi], dl
jmp 0x41af17
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438af0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41af64
cmp byte [ebp - 1], 0xa
jne 0x41af2a
cmp esi, ebx
jne 0x41af2a
mov byte [esi], 0xa
jmp 0x41af63
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b9a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41af64
mov byte [esi], 0xd
jmp 0x41af63
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x438af0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41af60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41af64
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41af6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x438af0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41afb0
cmp word [esi], dx
jne 0x41afb0
or byte [edi + eax + 0x28], 4
jmp 0x41afb5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b108
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b0e8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41aff7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b02d
cmp eax, edx
jae 0x41b039
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41afcf
jmp 0x41b108
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 0x41b0e4
cmp dword [ebp - 0x14], 0
je 0x41b0e4
mov eax, dword [ebx*4 + 0x438af0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b0bc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b085
mov word [esi], cx
jmp 0x41b0b8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x438af0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x438af0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x438af0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b108
pop ebx
cmp word [ebp - 4], bx
jne 0x41b0cd
cmp esi, dword [ebp + 0xc]
jne 0x41b0cd
mov word [esi], bx
jmp 0x41b105
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b9a1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b108
push 0xd
jmp 0x41b101
mov ecx, dword [ebx*4 + 0x438af0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b0ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b108
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fdcd
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 0x41fe6a
push ebx
push esi
call fcn.0041fd96
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.0041ea1b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fe17
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fe69
push edi
push eax
call fcn.00417b80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fe37
call fcn.004170df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fe68
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ea1b
add esp, 0x20
test eax, eax
jne 0x41fe56
push edi
call fcn.004170df
jmp 0x41fe5e
push ebx
call fcn.004170df
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 0x426d70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426d9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426d9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402c56
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x446f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
cmp eax, ebx
jne 0x402cd1
mov esi, dword [0x407008]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402cd8
cmp dword [ebp + 0x10], ebx
jne 0x402cc5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c56
test eax, eax
jne 0x402cd8
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402c98
push dword [ebp - 4]
call dword [0x40701c]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [0x40701c]
push 2
call fcn.004061d8
cmp eax, ebx
je 0x402cfd
push ebx
push dword [0x446f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402cd1
cmp dword [0x446f50], ebx
jne 0x402cce
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407014]
test eax, eax
jne 0x402cce
jmp 0x402cd1

Function at 0x405d72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
test eax, eax
jne 0x405de3
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [section..rdata]
test eax, eax
jne 0x405dd2
cmp dword [ebp + 0x14], 1
je 0x405dd4
cmp dword [ebp + 0x14], 2
je 0x405dd4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [0x40701c]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x401600
Capabilities:
Copy file
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x424540
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42dd80]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42dd80]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [0x428c28]
mov ebp, dword [esp + 0x54]
mov esi, ecx
mov ecx, dword [0x428c2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4017b8
push 0x208
lea edx, [esi + 0x74]
push ebx
push edx
call fcn.00410890
add esp, 0xc
push 0x4289dc
mov ecx, esi
call fcn.00401830
push 0x4289ec
mov ecx, esi
call fcn.00401830
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
nop
test byte [esp + 0x18], 1
je 0x4017a8
cmp word [esp + 0x34], 0x44
jb 0x4017a8
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4016c0
cmp eax, 5
jne 0x4017a8
call fcn.004061bd
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4017db
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], ebx
call fcn.00405db5
lea eax, [esp + 0x34]
mov byte [esp + 0x4c], 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401700
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401dc0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x40181d
cmp eax, ecx
jg 0x40181d
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
lea ecx, [esp + 0x14]
jne 0x40174f
push 9
push str.Login.dll
jmp 0x401756
push 0xa
push 0x428bb8
call fcn.00401ae0
mov esi, dword [esp + 0x14]
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.00405e8e
test eax, eax
je 0x401777
push ebx
push ebp
push esi
call edi
cmp eax, ebx
jne 0x4017e5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], bl
call fcn.00405ddb
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4017a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add word [esp + 0x34], 1
shr dword [esp + 0x18], 1
jne 0x401690
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040f639
add esp, 0x3c
ret 4
push 0x80004005
call fcn.00401bc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], bl
call fcn.00405ddb
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4017ba
push 0x80070057
call fcn.00401bc0
int3
Function at 0x40be32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40be75
call fcn.0040597b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40be75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40be90
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b9ec
test ebx, ebx
mov esi, eax
je 0x40be8e
test edi, edi
je 0x40be8e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40c8f4
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 0x40c922
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c940
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040c85e
jmp 0x40c940
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40c940
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040c85e
test edi, edi
mov eax, edi
jne 0x40c92a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x430d04]
test ecx, ecx
je 0x40ca03
jmp 0x40c8f3
ret 8

Function at 0x40f639
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dd80]
jne 0x40f643
repz ret
jmp fcn.00414702
Function at 0x41b8fa
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004140e9
xor ebx, ebx
cmp dword [0x431b18], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b9cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41b93a
xor eax, eax
jmp 0x41ba93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41b933
push eax
call fcn.00414086
mov dword [esp], 0x427840
push edi
mov dword [0x431b18], eax
call esi
push eax
call fcn.00414086
mov dword [esp], 0x42782c
push edi
mov dword [0x431b1c], eax
call esi
push eax
call fcn.00414086
mov dword [0x431b20], eax
lea eax, [ebp - 8]
push eax
call fcn.0041055f
test eax, eax
pop ecx
pop ecx
je 0x41b99d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414d9f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b9cf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00414086
cmp eax, ebx
pop ecx
mov dword [0x431b28], eax
je 0x41b9cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414086
pop ecx
mov dword [0x431b24], eax
mov eax, dword [0x431b24]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41ba48
cmp dword [0x431b28], esi
je 0x41ba48
push eax
call fcn.004140f2
pop ecx
call eax
cmp eax, ebx
je 0x41ba15
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x431b28]
call fcn.004140f2
pop ecx
call eax
test eax, eax
je 0x41ba15
test byte [ebp - 0x18], 1
jne 0x41ba48
lea eax, [ebp - 0xc]
push eax
call fcn.00410596
test eax, eax
pop ecx
je 0x41ba30
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414d9f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41ba3f
or dword [ebp + 0x10], 0x200000
jmp 0x41ba79
or dword [ebp + 0x10], 0x40000
jmp 0x41ba79
mov eax, dword [0x431b1c]
cmp eax, esi
je 0x41ba79
push eax
call fcn.004140f2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ba79
mov eax, dword [0x431b20]
cmp eax, esi
je 0x41ba79
push dword [ebp - 4]
push eax
call fcn.004140f2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x431b18]
call fcn.004140f2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42399e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42dd80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00423933
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410890
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4239ed
cmp dword [ebp - 0x1c], 5
jb 0x423a05
jmp 0x423a01
cmp dword [ebp - 0x10], 1
jne 0x423a05
cmp dword [ebp - 0x1c], 4
ja 0x423a01
jne 0x423a05
cmp dword [ebp - 0x18], 0
jbe 0x423a05
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x428a2c
call fcn.00423824
test eax, eax
jge 0x423a26
mov byte [0x431cbc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f639
add ebp, 0x78
leave
ret
Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641

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 0x401930
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x402520
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
call fcn.00401000
mov esi, dword [esp + 0xc]
mov dword [esi], eax
call fcn.00401000
mov dword [esi + 4], eax
mov byte [esi + 8], 0
xor eax, eax
mov cl, byte [eax + esi]
mov dl, byte [esi + 8]
add dl, cl
inc eax
cmp eax, 8
mov byte [esi + 8], dl
jl 0x40253b
xor eax, eax
mov edx, eax
and edx, 0x80000007
jns 0x40255d
dec edx
or edx, 0xfffffff8
inc edx
mov cl, byte [edx + esi]
mov dl, byte [esi + eax + 0xd]
xor dl, cl
mov byte [esi + eax + 0xd], dl
inc eax
cmp eax, 0x118
jl 0x40254e
mov ecx, dword [esp + 0x10]
mov eax, esi
sub ecx, esi
mov esi, 8
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x40257f
pop esi
pop ebx
ret

Function at 0x402590
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor dl, dl
mov eax, edi
sub ecx, edi
mov esi, 8
mov bl, byte [ecx + eax]
xor byte [eax], bl
mov bl, byte [eax]
add dl, bl
inc eax
dec esi
jne 0x4025a6
cmp dl, byte [edi + 8]
jne 0x4025fa
xor eax, eax
lea esi, [edi + 0xd]
mov ecx, eax
and ecx, 0x80000007
jns 0x4025cc
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dl, byte [ecx + edi]
mov bl, byte [esi + eax]
xor bl, dl
mov byte [esi + eax], bl
inc eax
cmp eax, 0x128
jl 0x4025bd
mov ecx, 2
mov edi, str.GSND_REQ
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
sete al
dec eax
pop edi
pop esi
and eax, 0x1adbe
pop ebx
ret
pop edi
pop esi
mov eax, 0x38272
pop ebx
ret
Function at 0x402b50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xb], 0x5c
je 0x402b82
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
push ebx
lea edx, [esp + 0x10]
push str.NDOGSRV.DOG
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push 0x411368
push eax
call fcn.004074b3
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402bb3
pop ebx
add esp, 0x110
ret
push esi
push edi
mov edi, dword [esp + 0x120]
push 0
lea ecx, [edi + edi*2]
shl ecx, 2
push ecx
push ebx
call fcn.004073c9
mov eax, edi
mov ecx, 0x2c54
shl eax, 6
sub eax, edi
push ebx
push 1
push 0xc
lea edx, [eax + eax*4]
xor eax, eax
lea esi, [edi + edx*4]
mov edx, dword [0x414798]
lea esi, [esi + esi*8]
shl esi, 1
sub esi, edi
shl esi, 1
lea edi, [esi + edx]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
call fcn.004072b2
lea ecx, [esp + 0x28]
push ecx
call fcn.00403bd0
mov edx, dword [0x414798]
mov eax, dword [esp + 0x30]
push ebx
mov dword [esi + edx + 8], eax
mov edx, dword [0x414798]
mov ecx, dword [esp + 0x38]
mov dword [esi + edx + 0xc], ecx
call fcn.00407235
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x402fa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x150
push esi
mov esi, dword [esp + 0x164]
cmp si, 0x40
jbe 0x402ffd
lea eax, [esp + 0xfc]
push eax
call fcn.00401930
mov ecx, dword [esp + 0x164]
and esi, 0xffff
push esi
lea edx, [esp + 0x104]
push ecx
push edx
call fcn.00401960
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00401a10
add esp, 0x18
lea edx, [esp + 0x14]
mov esi, 0x10
jmp 0x403004
mov edx, dword [esp + 0x160]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x28]
and esi, 0xffff
rep stosd dword es:[edi], eax
jle 0x403045
mov edi, edx
lea edx, [esp + 0x28]
sub edi, edx
lea ecx, [esp + eax + 0x28]
inc eax
cmp eax, esi
mov dl, byte [edi + ecx]
mov byte [esp + eax + 0xbf], dl
mov byte [ecx], dl
jl 0x403030
xor eax, eax
pop edi
mov dl, byte [esp + eax + 0xbc]
mov cl, byte [esp + eax + 0x24]
xor dl, 0x36
xor cl, 0x5c
mov byte [esp + eax + 0xbc], dl
mov byte [esp + eax + 0x24], cl
inc eax
cmp eax, 0x40
jl 0x403048
lea eax, [esp + 0x64]
push eax
call fcn.00401930
lea ecx, [esp + 0xc0]
push 0x40
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00401960
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
and eax, 0xffff
lea edx, [esp + 0x74]
push eax
push ecx
push edx
call fcn.00401960
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00401a10
lea edx, [esp + 0x88]
push edx
call fcn.00401930
lea eax, [esp + 0x4c]
push 0x40
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.00401960
lea edx, [esp + 0x38]
push 0x10
lea eax, [esp + 0x9c]
push edx
push eax
call fcn.00401960
add esp, 0x40
lea ecx, [esp + 0x64]
lea edx, [esp + 4]
push ecx
push edx
call fcn.00401a10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.00403140
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00403140
push eax
push esi
call fcn.00403140
add esp, 0x20
pop esi
add esp, 0x150
ret