joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9b0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4840f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x40bad9
lea ebp, [ebx + 4]
lea ebx, [ebx]
cmp edi, dword [ebx + 0x14]
jbe 0x40ba0a
call fcn.0046908b
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x40ba19
mov eax, dword [ebp]
jmp 0x40ba1b
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x40ba43
cmp edi, dword [ebx + 0x14]
jbe 0x40ba2c
call fcn.0046908b
cmp dword [ebx + 0x18], esi
jb 0x40ba36
mov eax, dword [ebp]
jmp 0x40ba38
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x40bacc
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
mov edx, ebx
call fcn.004059e0
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
je 0x40ba9f
lea ecx, [esp + 0x18]
push ecx
call fcn.0040b1f0
add esp, 4
test al, al
jne 0x40ba9f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x40ba7d
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ba9f
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x40babb
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40bab3
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x40babb
mov eax, dword [esp + 0x1c]
push eax
call fcn.00468cbd
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x40ba00
push ebx
call fcn.0040b1f0
add esp, 4
test al, al
jne 0x40bb05
cmp dword [ebx + 0x18], 8
jb 0x40baf1
mov eax, dword [ebx + 4]
jmp 0x40baf4
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bb05
xor al, al
jmp 0x40bb0e
push ebx
call fcn.0040b2c0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00468c2b
add esp, 0x30
ret

Function at 0x40dcf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x400
mov esi, eax
mov dword [esp + 0x14], 1
xor bl, bl
call fcn.00469d5e
push 0x400
mov edi, eax
push 0
push edi
call fcn.0046f200
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40dd66
mov dword [ebp + 4], eax
mov eax, esi
call fcn.00405970
push edi
call fcn.00469c81
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
mov bl, 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dd70
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004020a0
push edi
call fcn.00469c81
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x40dea0
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x40dead
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x40dea9
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40dda0
push 0
push 0
call fcn.00469f1b
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x40df02
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x40def2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40df24
mov esi, dword [edi]
call fcn.0040de30
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret

Function at 0x40f2b0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40f2bc
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f2df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f2df
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.00479520
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret

Function at 0x40f460
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
push ebx
push edi
jne 0x40f476
or eax, 0xffffffff
pop edi
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40f46b
mov edx, dword [esp + 0xc]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp edi, dword [esi + 4]
je 0x40f50a
mov ecx, edi
sub ecx, dword [esi + 0x18]
cmp ecx, 0x3e8
jbe 0x40f4dc
mov ebx, dword [esi + 0xc]
mov eax, ebx
sub eax, dword [esi + 0x1c]
xor edx, edx
div ecx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x40f4d3
fadd qword [0x494040]
fstp qword [esi + 0x10]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 0xc]
fild dword [esi + 0xc]
test eax, eax
jge 0x40f4ec
fadd qword [0x494040]
mov ecx, edi
sub ecx, dword [esi]
test ecx, ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
jge 0x40f502
fadd qword [0x494040]
fdivp st(1)
mov dword [esi + 4], edi
fstp qword [esi + 0x20]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
add esp, 8
ret 4
Function at 0x40ff10
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.0046f200
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, esi
xor edi, edi
call fcn.00437dd0
test eax, eax
jbe 0x40ff9b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40ff79
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40ff7e
call fcn.0046908b
mov edx, dword [esi + 4]
mov eax, dword [edx + edi*4]
push eax
call fcn.00468cbd
add esp, 4
mov eax, esi
add edi, 1
call fcn.00437dd0
cmp edi, eax
jb 0x40ff66
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x40ffa8
call fcn.0046908b
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x40ffb5
call fcn.0046908b
cmp edi, ebx
je 0x40ffde
mov eax, dword [esi + 8]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebp, [ecx + edi]
jle 0x40ffdb
push ecx
push ebx
push ecx
push edi
call fcn.00468cc2
add esp, 0x10
mov dword [esi + 8], ebp
cmp dword [esp + 0x24], 2
jne 0x40fff9
push esi
call fcn.0040f880
push esi
call fcn.0040fcb0
push esi
call fcn.0040f740
jmp 0x410014
xor edi, edi
cmp dword [esp + 0x10], 0
jne 0x410014
push esi
call fcn.0040fa40
add edi, 1
cmp edi, 0xa
mov dword [esp + 0x10], eax
jl 0x40fffb
mov eax, dword [esi + 4]
test eax, eax
jne 0x41001f
xor esi, esi
jmp 0x410027
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov ecx, dword [esp + 0x130]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.00468c2b
add esp, 0x124
ret
Function at 0x4155a0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jge 0x4155b8
mov esi, 8
push 2
call edi
test ax, ax
jge 0x4155c4
or esi, 1
push 1
call edi
test ax, ax
jge 0x4155d0
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x4155dc
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x4155e8
or esi, 0x20
pop edi
mov ax, si
pop esi
ret

Function at 0x4156e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x178]
cmp eax, ecx
je 0x415707
cmp byte [ebp + 8], 0
je 0x415707
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xbc]
cmp edi, eax
je 0x4157fb
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x415773
xor eax, 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 dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 8]
push edx
call eax
mov dword [esi + 0xbc], 0
test edi, edi
je 0x4157fb
mov edx, dword [edi]
mov eax, dword [edx + 0x128]
mov ecx, edi
call eax
cmp eax, esi
jne 0x4157fb
mov edx, dword [edi]
mov eax, dword [edx + 0xd0]
mov ecx, edi
call eax
test al, al
je 0x4157fb
mov edx, dword [edi]
mov eax, dword [edx + 0x120]
mov ecx, edi
call eax
test al, al
je 0x4157fb
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0xbc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0x11
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 8]
push eax
call edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415da0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x484098
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x90]
xor ebx, ebx
mov eax, 7
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x34], eax
mov eax, edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
jmp 0x415e10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415e10
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.004020a0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea esi, [ebp + 0x198]
push esi
mov byte [esp + 0x94], 1
call fcn.0040f320
mov byte [esp + 0x88], bl
cmp dword [esp + 0x34], 8
jb 0x415e63
mov edx, dword [esp + 0x20]
push edx
call fcn.00468cbd
add esp, 4
mov eax, dword [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x415e76
cmp eax, esi
je 0x415e7b
call fcn.0046908b
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x18], ecx
je 0x415e8d
push ebp
mov edx, edi
call fcn.00416060
cmp dword [esp + 0x74], ebx
jne 0x415f05
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
call fcn.0041b4f0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
push esi
mov byte [esp + 0x94], 2
call fcn.0040ceb0
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x415ee1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x415f05
mov edx, dword [esp + 0x20]
push edx
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0x78], 8
jb 0x415f19
mov eax, dword [esp + 0x64]
push eax
call fcn.00468cbd
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00468c2b
add esp, 0x7c
ret 8
Function at 0x416910
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 0x1d4]
sub esp, 0x28
test eax, eax
je 0x416934
mov edx, dword [esi + 0x178]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x416a4b
mov eax, dword [esp + 0x2c]
sub eax, 0x100
je 0x4169de
sub eax, 4
je 0x416962
sub eax, 1
jne 0x4169d6
cmp dword [esi + 0xbc], eax
je 0x4169d6
mov dword [esp], 5
jmp 0x416972
cmp dword [esi + 0xbc], 0
je 0x4169d6
mov dword [esp], 4
mov ecx, dword [esi + 0xc8]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc4]
mov word [esp + 0x18], di
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004155a0
mov word [esp + 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0xc], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp]
push eax
call edx
xor al, al
add esp, 0x28
ret 4
cmp edi, 9
jne 0x4169d6
cmp dword [esi + 0xbc], 0
je 0x416a35
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x416a35
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x120]
call edx
test al, al
je 0x416a35
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 0xa
jne 0x416a35
mov eax, dword [esi + 0xbc]
cmp byte [eax + 0x569], 0
jne 0x4169d6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge cl
mov eax, esi
push ecx
call fcn.004155f0
mov al, 1
add esp, 0x28
ret 4
Function at 0x419650
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x482a98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419692
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.004020a0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 0x58
push esi
mov dword [esp + 0x50], 0
call fcn.0041ce20
cmp dword [esp + 0x34], 8
jb 0x4196df
mov edx, dword [esp + 0x20]
push edx
call fcn.00468cbd
add esp, 4
mov edi, dword [esp + 0x14]
test edi, edi
mov ebp, dword [esi + 4]
je 0x4196ee
cmp edi, esi
je 0x4196f3
call fcn.0046908b
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x419726
test edi, edi
jne 0x419704
call fcn.0046908b
cmp esi, dword [edi + 4]
jne 0x41970e
call fcn.0046908b
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
Function at 0x4210a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4829f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x80], ebx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call eax
mov ebp, eax
cmp ebp, ebx
je 0x421238
jmp 0x421125
mov esi, 7
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x80], 1
push 2
mov dword [esp + 0x3c], esi
push 0x48adb4
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.004020a0
push ebx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x88], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
mov ecx, esi
push ecx
push ebp
mov ecx, edi
call edx
mov esi, 8
mov byte [esp + 0x80], 1
cmp dword [esp + 0x38], esi
jb 0x421192
mov eax, dword [esp + 0x24]
push eax
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x4211a0
lea eax, [esp + 0x40]
push eax
call fcn.00468c26
mov esi, dword [esp + 0x94]
add esp, 4
cmp eax, esi
je 0x421212
mov edx, dword [edi]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x17]
push eax
push ebp
mov ecx, edi
mov byte [esp + 0x1f], bl
call edx
cmp byte [esp + 0x17], bl
jne 0x4211e1
mov ecx, dword [esp + 0x1c]
push esi
push ebp
push edi
call fcn.004210a0
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x421224
mov byte [esp + 0x80], bl
cmp dword [esp + 0x54], 8
jb 0x4211fc
mov eax, dword [esp + 0x40]
push eax
call fcn.00468cbd
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
push ebp
mov ecx, edi
call eax
mov ebp, eax
cmp ebp, ebx
jne 0x421120
jmp 0x421238
cmp dword [esp + 0x54], 8
mov dword [esp + 0x18], ebp
jb 0x421238
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x421230
cmp dword [esp + 0x54], 8
jb 0x421238
mov edx, dword [esp + 0x40]
push edx
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0x70], 8
jb 0x42124c
mov eax, dword [esp + 0x5c]
push eax
call fcn.00468cbd
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00468c2b
add esp, 0x70
ret 0xc
Function at 0x4364a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x483c81
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fldz
xor ebx, ebx
fstp qword [esi + 0x20]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esp + 0x14], ebx
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
lea eax, [esi + 0x88]
push eax
mov byte [esp + 0x18], 2
call fcn.00436410
mov byte [esi + 0xc9], bl
mov dword [esi + 0xcc], ebx
mov byte [esi + 0xc8], 0xff
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x43d860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x43d881
cmp eax, edi
jge 0x43d879
call fcn.0043d070
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x43d8ac
lea ecx, [eax - 8]
jmp 0x43d890
mov dl, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], ecx
mov byte [esp + eax + 0xc], dl
add eax, 1
cmp dword [esi + 8], 0
jg 0x43d890
cmp eax, 4
jge 0x43d8cf
mov edi, dword [esi + 4]
mov edx, dword [esi]
cmp edx, edi
jb 0x43d8b9
xor ecx, ecx
jmp 0x43d8c1
mov cl, byte [edx]
add edx, 1
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
add eax, 1
cmp eax, 4
jl 0x43d8b1
mov dword [esi], edx
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x43d909
mov dword [0x4a3530], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x43d923
pop edi
pop esi
mov dword [0x4a3530], 0x48d0d0
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x43d93a
mov ecx, ebx
mov edi, esi
call fcn.0043d0b0
test eax, eax
je 0x43d902
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.0046dd30
add esp, 0xc
add edi, ebx
add ebp, ebx
mov dword [esi + 0x10], ebp
pop ebp
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x447b50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x120]
call edx
test al, al
je 0x447c3f
mov eax, dword [edi]
mov edx, dword [eax + 0x188]
mov ecx, edi
call edx
xor ebx, ebx
test al, al
je 0x447bd5
cmp dword [edi + 0x540], ebx
jne 0x447bd5
push 0x2c
call fcn.00468c53
add esp, 4
cmp eax, ebx
je 0x447bc4
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], bl
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax], vtable.GameMgr::GMEditWnd.0
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
jmp 0x447bc6
xor eax, eax
mov ecx, edi
mov esi, eax
mov dword [edi + 0x540], eax
call fcn.00464720
mov edx, dword [edi + 0x540]
mov eax, dword [edx + 4]
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xb1
push eax
call ebx
mov esi, dword [ebp + 8]
cmp dword [esi], 0xd
jne 0x447c3f
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x448]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x178]
push eax
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
mov edx, dword [esi + 0x1c]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [edi + 0x540]
mov ecx, dword [eax + 4]
push edx
push 0x7b
push ecx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4