joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441f48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x442030
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x4565dc], 1
jae 0x442022
xor eax, eax
mov dword [0x4561e8], eax
xor eax, eax
mov dword [0x4561f0], eax
xor eax, eax
mov dword [0x4561f4], eax
mov byte [0x4561fa], 2
mov byte [0x4561fb], 2
mov byte [0x4561fc], 3
mov word [0x4565a4], 0
mov word [0x4565b4], 1
mov word [0x4565c4], 0xa
mov dword [0x4565cc], 0x80020004
mov dword [0x456598], 0x441134
mov dword [0x45659c], 0x44112c
mov dword [0x4565a0], 0x441134
call fcn.0043f650
test al, al
je 0x441fe1
call fcn.0043f680
call fcn.0043f744
mov eax, 0x456200
mov edx, 0x44203c
call fcn.0043ce96
mov eax, 0x4563cc
mov edx, 0x44203c
call fcn.0043ce96
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4561e0], eax
call fcn.0043ddfc
mov dword [0x4561dc], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4561d4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442037
ret
Function at 0x4473b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00442acc
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00442b5c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00442b5c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x453ccd
lea ecx, [ebp - 0x200]
push ecx
call fcn.00442acc
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00442b5c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00448554
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4474c9
push esi
call fcn.00442b5c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00442b5c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00442568
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4474a0
xor eax, eax
jmp 0x447550
push esi
call fcn.00442b5c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00442b5c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00442a28
add esp, 0xc
jmp 0x447509
mov edi, dword [ebx + 0x24]
push edi
call fcn.00442b5c
pop ecx
push eax
push esi
call fcn.00442b5c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00442b5c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00442588
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x447509
xor eax, eax
jmp 0x447550
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00442acc
add esp, 8
push 0x453ccf
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00442acc
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00442acc
add esp, 8
push 0x453cd1
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00442acc
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a514
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x44a576
call fcn.0044a4c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00442b5c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00442b5c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44a5f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4542dc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44a6ce
cmp dword [0x4542d8], 0
jne 0x44a6ce
cmp dword [0x4544bc], 0
je 0x44a688
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0044a3c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44a66e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0044a3c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44a66e
lea ebx, [ebp - 0x84]
jmp 0x44a66f
inc ebx
call fcn.0044a5b0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x44a709
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4542e0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00442b5c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4542e3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x44a709
cmp dword [0x4542d8], 0
je 0x44a6e8
cmp dword [0x4542d8], 0xffffffff
je 0x44a709
push esi
call dword [0x4542d8]
pop ecx
mov eax, dword [0x4542dc]
test eax, eax
je 0x44a709
cmp dword [0x4542dc], 0xffffffff
je 0x44a709
cmp byte [eax], 0
je 0x44a709
push esi
push eax
call fcn.0044a514
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44aea0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x456ee0], 0
jne 0x44af21
cmp dword [0x456f00], 0
jne 0x44aed0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x456f00], eax
test eax, eax
jne 0x44aed0
push str.GetEnvironmentStrings_failed
call fcn.0044a720
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x456f00]
jmp 0x44aee4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00442b5c
pop ecx
mov edi, eax
test eax, eax
jne 0x44aedc
lea edi, [ebp + 1]
push edi
call fcn.00442568
pop ecx
mov ebx, eax
mov dword [0x456ee4], ebx
test ebx, ebx
jne 0x44af0e
xor eax, eax
jmp 0x44afe4
push edi
mov edx, dword [0x456f00]
push edx
push ebx
call fcn.004429b8
add esp, 0xc
jmp 0x44af41
xor esi, esi
mov ebx, dword [0x456ee0]
jmp 0x44af3b
push eax
call fcn.00442b5c
pop ecx
test eax, eax
jne 0x44af37
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44af2b
lea ebx, [esi + 4]
push 4
mov dword [0x456ee8], ebx
inc ebx
push ebx
call fcn.00442040
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x44af64
xor eax, eax
jmp 0x44afe4
cmp dword [0x456ee0], 0
jne 0x44af95
xor esi, esi
mov ebx, dword [0x456ee4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44af86
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00442b5c
pop ecx
mov edi, eax
test eax, eax
jne 0x44af7c
jmp 0x44afc6
xor esi, esi
mov ebx, dword [0x456ee0]
mov eax, dword [esp]
mov edi, eax
jmp 0x44afc0
push eax
call fcn.00442b5c
pop ecx
test eax, eax
je 0x44afb5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44afb9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44afa4
mov eax, dword [0x456ee0]
test eax, eax
je 0x44afd6
push eax
call fcn.00442578
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x456ee0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10002370
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 0x402a28
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 [0x7a2750]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c2d
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x7a2750]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a2750], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x40516f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0cb0], 0x44
push eax
xor eax, eax
push 0x7a0cb0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051aa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405234
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004054e3
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405268
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2728], eax
jmp 0x4053fc
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405286
test eax, eax
je 0x4053a7
test byte [ebp + 0xc], 2
je 0x4053a7
mov esi, 0x79fcb0
push edi
push esi
call fcn.0040590f
test ebx, ebx
je 0x4052a3
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4052a9
push edi
call fcn.00405449
cmp byte [edi], 0
jne 0x4052b7
cmp byte [0x79fcb0], 0x5c
jne 0x4052c2
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40539d
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040542d
cmp byte [eax], 0
je 0x405308
cmp byte [ebp - 0x18], 0
je 0x405308
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40531e
mov al, byte [esi + 1]
test al, al
je 0x40537c
cmp al, 0x2e
jne 0x40531e
cmp byte [esi + 2], 0
je 0x40537c
push esi
push ebx
call fcn.0040590f
test byte [ebp - 0x148], 0x10
je 0x405343
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40537c
push dword [ebp + 0xc]
push edi
call fcn.00405234
jmp 0x40537c
push edi
call fcn.004055c7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405374
test byte [ebp + 0xc], 4
je 0x40536c
push edi
push 0xfffffffffffffff1
call fcn.00404cad
push 0
push edi
call fcn.0040565d
jmp 0x40537c
inc dword [0x7a2728]
jmp 0x40537c
push edi
push 0xfffffffffffffff2
call fcn.00404cad
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4053a7
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053fc
cmp dword [ebp - 8], esi
jne 0x4053bc
inc dword [0x7a2728]
jmp 0x4053fc
push edi
call fcn.00405c06
test eax, eax
je 0x4053fc
push edi
call fcn.00405402
push edi
call fcn.004055c7
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053f4
test byte [ebp + 0xc], 4
je 0x4053b4
push edi
push 0xfffffffffffffff1
call fcn.00404cad
push esi
push edi
call fcn.0040565d
jmp 0x4053fc
push edi
push 0xffffffffffffffe5
call fcn.00404cad
pop edi
pop esi
leave
ret 8
Function at 0x4054e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00b0
push esi
call fcn.0040590f
push esi
call fcn.00405496
mov edi, eax
test edi, edi
jne 0x405504
xor eax, eax
jmp 0x405556
push edi
call fcn.00405b6d
test byte [0x7a26b8], 0x80
je 0x40551d
mov al, byte [edi]
test al, al
je 0x405500
cmp al, 0x5c
je 0x405500
sub edi, esi
jmp 0x405535
call fcn.00405c06
test eax, eax
je 0x40552f
test byte [eax], 0x10
je 0x405500
push esi
call fcn.00405449
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405521
call fcn.00405402
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055c7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055e3
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4055e6
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405615
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405659
test edi, edi
jne 0x405620
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405653
Function at 0x40565d
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c2d
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405681
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4057ba
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e38], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e38
je 0x4056c5
push 1
push 0
push esi
call fcn.004055e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057c0
cmp eax, edi
jg 0x4057c0
mov esi, 0x7a08b0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057c0
cmp eax, edi
jg 0x4057c0
push esi
push ebp
push str._s_s_r_n
push 0x7a04b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405931
push 4
push 0xc0000000
push esi
call fcn.004055e6
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4057ba
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4057b3
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4057b3
cmp edi, dword [esp + 0x18]
jne 0x4057b3
push str._Rename__r_n
push esi
call fcn.0040555b
test eax, eax
jne 0x4057c7
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.0040590f
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04b0
push eax
call fcn.004055a7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2730]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.0040555b
test eax, eax
je 0x40577e
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057ee
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057e3
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405780
Function at 0x4057f6
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 [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405867
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405856
cmp dword [ebp + 0x14], 1
je 0x405858
cmp dword [ebp + 0x14], 2
je 0x405858
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c99
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a123c], 0
push esi
jne 0x405cd0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405caa
mov dword [ecx*4 + 0x7a1238], eax
inc ecx
cmp ecx, 0x100
jl 0x405ca5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d01
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1238]
xor eax, esi
inc ecx
dec edx
jne 0x405ce3
pop edi
not eax
pop esi
ret 0xc
Function at 0x4042e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4042f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40430d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40432e
cmp esi, eax
jae 0x404307
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404320
cmp esi, eax
jae 0x404307
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4063e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bcd8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 8
push esi
push 0
push eax
push 0
push 0
push 0
push bind
push 0
push bind
push 0xcf0000
push 0x438440
push 0x4383d8
push 0
mov dword [0x4384a8], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
mov dword [0x4384a4], esi
jne 0x40644a
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push 8
mov edi, eax
push 0x8003
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 3
push 0x8003
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x40
push 0x1a0
push 0x190
push 0x1a0
push 0x190
push 0
push esi
mov byte [0x438728], 1
call dword [sym.imp.USER32.dll_SetWindowPos]
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
call fcn.00415e85
push str.AccountServer.ini
call fcn.00405e90
add esp, 8
test eax, eax
je 0x40662f
mov ecx, 0x4384b8
call fcn.00407890
push str.pmttd.ini
mov ecx, 0x438718
call fcn.004092a0
push str.IPCut.ini
mov ecx, 0x438718
call fcn.0040b1c0
push 0xffffff
push 0
push 0x42d704
push esi
mov ecx, 0x4599d0
call fcn.00404270
push 0
call fcn.00414bdd
add esp, 4
mov dword [esp + 8], eax
push str._Y__m__d__H:_M:_S
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edx
call fcn.004059c0
mov ecx, dword [eax]
push ecx
push 0x42d6ec
push 0
push 0
push 0x4599d0
mov dword [esp + 0x2c], 0
call fcn.0040bde0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
mov ecx, 0x4599d0
call fcn.0040bfb0
call fcn.0040d5b0
test eax, eax
je 0x40662f
push 0x7f000001
push 0
push 0
push 0x2ee0
mov ecx, 0x438718
call fcn.00404220
test eax, eax
je 0x406621
push 0x7f000001
push 0
push 0
push 0x2ee1
mov ecx, 0x4386e8
call fcn.00404220
test eax, eax
je 0x406621
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xea60
push 0
push esi
call edi
push 0
push 0x7530
push 7
push esi
call edi
call fcn.00410bd0
cmp eax, 4
jne 0x4065ea
push 0
push 0xea60
push eax
push esi
call edi
mov ecx, 0x4384b8
call fcn.00406850
test eax, eax
je 0x40662f
mov eax, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0
push 0
push str.Unable_to_start_server
call fcn.0042a18c
mov ecx, dword [esp + 0x10]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406c80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bd38
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x68]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405910
push 0x20
push 0x27
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00406aa0
fld dword [esi + 0x4c]
mov ecx, dword [esi + 0x88]
push ecx
mov edx, dword [esi + 0x84]
push edx
mov eax, dword [esi + 0x80]
push eax
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ecx
mov eax, dword [esi + 0x74]
push edx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x64]
push edx
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x5c]
push ecx
mov ecx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 4]
sub esp, 0x18
fstp qword [esp + 0x10]
fld dword [esi + 0x48]
fstp qword [esp + 8]
fld dword [esi + 0x44]
fstp qword [esp]
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0xa4]
push ecx
push edx
push str.LOG_STR__s__im_idPlayer_07d__iserverindex_02d__im_nExp1_d__im_nLevel_d__im_nJob_d__im_nJobLv_d__im_nFlightLv_d__im_nStr_d__im_nDex_d__im_nInt_d__im_nSta_d__im_nRemainGP_d__im_nRemainLP_d__iState_s__idwWorldID_d__ikilled_m_szName_s__im_vPos_x_f__im_vPos_y_f__im_vPos_z_f__iattackPower_d__imax_HP_d__im_GetszName_s__im_dwGold_d__im_nRemainGold_d__iItem_UniqueNo_d__iItem_Name_s__iItem_durability_d__iItem_count_d__iItem_AddLv_d__iStart_Time_s__iTotalPlayTime_d__iremoteIP_s__iQuest_Index_d__ikilled_m_idPlayer_02d
push eax
call fcn.00415500
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
add esp, 0xa0
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8