joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e7f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c2df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0049a03a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004b2505
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004afbb0
mov eax, dword [eax]
push 0x4edcbc
push eax
call fcn.004a0f54
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004b2497
test bl, bl
je 0x47e870
push 0x4edcbc
lea ecx, [esp + 0xc]
call fcn.004b2873
push 0x4edcb8
lea ecx, [esp + 0xc]
call fcn.004b2873
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.0049a0fd
test eax, eax
je 0x47e934
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.0049a31d
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x47e8f0
lea ecx, [esp + 0x18]
call fcn.0049a2e4
test eax, eax
jne 0x47e8f0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0049a3ec
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.0047e7f0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x47e925
lea ecx, [esp + 0x18]
call fcn.0049a2e4
test eax, eax
jne 0x47e92a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x47e92a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0049a3ec
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004b2497
test edi, edi
jne 0x47e8a0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.0049a0b3
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004b2497
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0049a077
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x47ea30
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c2e26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4efa98]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004b2620
push str..
lea ecx, [esp + 0x10]
call fcn.004b2873
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x47ead3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004b2497
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004b2497
xor eax, eax
jmp 0x47ec18
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x4edcdc
push edx
call fcn.004a0f54
add esp, 8
test eax, eax
je 0x47ebc9
lea eax, [esp + 0x48]
push 0x4edcd8
push eax
call fcn.004a0f54
add esp, 8
test eax, eax
je 0x47ebc9
test ebp, ebp
jne 0x47eb35
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004a1003
add esp, 8
test eax, eax
je 0x47ebc9
push esi
lea ecx, [esp + 0x14]
call fcn.004b2620
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004b289a
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004b2873
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x47eb75
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x47eb97
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0047ea30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x47ebc9
test edi, edi
je 0x47ebbe
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004a1003
add esp, 8
test eax, eax
jne 0x47ebbe
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0047ec40
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47eae3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004b2497
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004b2497
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x47ec40
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c2e3b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004a1810
mov eax, dword [0x4efa98]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004b2620
push 0x5c
lea ecx, [esp + 8]
call fcn.004b289a
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004b2873
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47ece6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004b2497
xor eax, eax
jmp 0x47ed63
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x47ed41
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x47ed33
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x47ed0d
jmp 0x47ed41
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004b2497
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x482498
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c3054
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004b3af8
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.004349a0
call fcn.00481900
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00481900
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.00481900
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.00481900
mov dword [edi], 0x4d0f28
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.00482cc0
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4825d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c30c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.00483140
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x4d0f38
call fcn.00481b00
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x4d0f38
call fcn.00481b00
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x4d0f38
call fcn.00481b00
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4d0f38
call fcn.00481b00
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004b45b1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x484720
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0048aba0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x484819
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.00484830
test eax, eax
jne 0x484819
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.00484830
test eax, eax
jne 0x484819
lea edx, [esp + 0x10]
push 0x4eedd4
push edx
call fcn.004a2100
mov esi, eax
add esp, 8
test esi, esi
jne 0x4847ea
lea eax, [esp + 0x10]
push 0x4eedd0
push eax
call fcn.004a2100
mov esi, eax
add esp, 8
test esi, esi
jne 0x4847ea
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4847ed
mov byte [esi], 0
push 0x4ee598
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x484830
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x484892
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x48aae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c3808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x48ab90
mov eax, dword [0x4efa98]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004b28c7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004b2916
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004b2873
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48ab77
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x48ab77
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b2497
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x48dc90
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c3c90
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48de37
mov ecx, dword [0x4efa98]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x48dd8c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0048c9b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004b25d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004b2497
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ee598
call fcn.004b2505
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0048cd70
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004b25d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004b2497
lea ecx, [esp + 0xc]
call fcn.004b29ab
mov ecx, dword [esp + 0xc]
push 0x4eefd4
push ecx
call fcn.004a0f54
add esp, 8
test eax, eax
je 0x48ddb4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x48dced
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004b2497
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b2497
jmp 0x48de3b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0048da30
test eax, eax
push 0
je 0x48de1f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0048c0d0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x48de05
cmp eax, 0x64
jg 0x48ddf3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48dd90
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48dd90
cmp eax, 0x64
jge 0x48dd8c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48dd90
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0048c0d0
mov esi, eax
jmp 0x48dd90
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x48de45
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x496110
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x496159
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4965d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c3ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00496180
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00496200
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00496200
lea ecx, [esi + 0xc]
call fcn.004b2422
lea ecx, [esi + 0x10]
call fcn.004b2422
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00497790
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00497790
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00497790
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b2497
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b2497
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x497980
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4979e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4979e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4979c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4b48ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b4926
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b293e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b2916
jmp 0x4b4932
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b5fe3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b6025
call fcn.004bbf57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b6025
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b601c
xor eax, eax
jmp 0x4b602d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b6033
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bc487
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 0x4bc4b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bc4d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bc3ed
jmp 0x4bc4d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bc4d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bc3ed
test edi, edi
mov eax, edi
jne 0x4bc4bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4028b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov byte [ebp - 5], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e710
movzx edx, byte [ebp + 0x10]
lea eax, [eax + edx*8 + 0x24]
push eax
push str.select_ExpiredType_from_avatar_inventory__s_where_UserSN_u_and_ItemID_d_and_ExpiredDate_now__
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bbc0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x402910
mov al, 4
jmp 0x402a0e
mov ecx, dword [ebp - 4]
call fcn.0042bdc0
test eax, eax
je 0x402965
mov ecx, dword [ebp - 4]
call fcn.0042bd10
movzx eax, al
test eax, eax
jne 0x402932
mov al, 4
jmp 0x402a0e
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0xd]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040ef80
movzx edx, byte [ebp - 0xd]
cmp edx, 4
jne 0x402952
mov al, 2
jmp 0x402a0e
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x402961
mov al, 3
jmp 0x402a0e
mov byte [ebp - 5], 1
mov dword [ebp - 0x1c], 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SELECT_COUNT_1__FROM_present_list_WHERE_RecvSN___u_AND_ItemID___d_AND_Period__365_AND_RecvDate0000_00_00_00:00:00
mov eax, dword [ebp - 4]
push eax
call fcn.0042bbc0
add esp, 0x10
movzx ecx, al
test ecx, ecx
jne 0x402991
mov al, 4
jmp 0x402a0e
mov ecx, dword [ebp - 4]
call fcn.0042bd10
movzx edx, al
test edx, edx
jne 0x4029a4
mov al, 4
jmp 0x402a0e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040f000
cmp dword [ebp - 0x1c], 0
je 0x402a0b
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x4029df
movzx edx, word [ebp + 0xc]
cmp edx, 0x6e4
je 0x4029df
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040d980
movzx ecx, al
test ecx, ecx
je 0x4029e3
mov al, 1
jmp 0x402a0e
movzx edx, word [ebp + 0xc]
cmp edx, 0xffffffff
je 0x402a03
movzx eax, word [ebp + 0xc]
cmp eax, 0x7cf
je 0x402a03
movzx ecx, word [ebp + 0xc]
cmp ecx, 0x7d0
jne 0x402a07
xor al, al
jmp 0x402a0e
mov al, 2
jmp 0x402a0e
mov al, byte [ebp - 5]
push edx
mov ecx, ebp
push eax
lea edx, [0x402a2f]
call fcn.0042c4c0
pop eax
pop edx
add esp, 0x20
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b9a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.SELECT_Point_FROM_board_item_point_WHERE_UserSN___u
mov edx, dword [ebp - 4]
push edx
call fcn.0042bbc0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x40b9d3
mov eax, 1
jmp 0x40ba43
mov ecx, dword [ebp - 4]
call fcn.0042bdc0
test eax, eax
jne 0x40ba0f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push str.INSERT_INTO_board_item_point_VALUES___u__0__now____
mov eax, dword [ebp - 4]
push eax
call fcn.0042bbc0
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x40ba04
mov eax, 1
jmp 0x40ba43
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x40ba31
mov ecx, dword [ebp - 4]
call fcn.0042bd10
movzx eax, al
test eax, eax
jne 0x40ba25
mov eax, 0xfffffffe
jmp 0x40ba43
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040f000
mov edx, dword [ebp + 0x10]
mov word [edx], 0x1e
mov eax, dword [ebp + 0x14]
mov word [eax], 0x1f4
xor eax, eax
add esp, 4
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40be90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov byte [ebp - 9], 0xff
mov byte [ebp - 0x15], 0xff
push 0x95c
mov eax, dword [ebp + 8]
push eax
push 0x449c90
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bbc0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x40bee3
mov al, 3
jmp 0x40c005
mov ecx, dword [ebp - 4]
call fcn.0042bdc0
test eax, eax
jne 0x40bf14
push 0x95c
mov eax, dword [ebp + 8]
push eax
push 0x449ce0
push 0x14
call fcn.0040e570
push eax
call fcn.0041ff60
add esp, 0x14
mov al, 3
jmp 0x40c005
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_CurrentType__OriginalType_FROM_avatar_default_WHERE_UserSN___u
mov edx, dword [ebp - 4]
push edx
call fcn.0042bbc0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x40bf37
mov al, 3
jmp 0x40c005
mov ecx, dword [ebp - 4]
call fcn.0042bd10
movzx ecx, al
test ecx, ecx
jne 0x40bf4d
mov al, 3
jmp 0x40c005
lea edx, [ebp - 9]
push edx
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp - 4]
call fcn.0040ef80
mov ecx, eax
call fcn.0040ef80
movzx ecx, byte [ebp - 9]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
cmp ecx, eax
jne 0x40bf79
mov al, 2
jmp 0x40c005
movzx ecx, byte [ebp - 0x15]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
cmp ecx, eax
jne 0x40bf8b
mov al, 1
jmp 0x40c005
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
push eax
push str.UPDATE_avatar_default_SET_CurrentType___d_WHERE_UserSN___u
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bbc0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x40bfb2
mov al, 3
jmp 0x40c005
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
push ecx
movzx edx, byte [ebp - 0x15]
push edx
mov eax, dword [ebp + 8]
push eax
push str.INSERT_INTO_change_race_item_log__UserSN__BeforeType__AfterType__LastTime___VALUES___u___d___d__now____
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bbc0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x40bfde
mov al, 3
jmp 0x40c005
push 0x95c
mov eax, dword [ebp + 8]
push eax
push 0x449e18
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042bbc0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x40c003
mov al, 3
jmp 0x40c005
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x40c026]
call fcn.0042c4c0
pop eax
pop edx
add esp, 0x1c
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 8