joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
cmp byte [esi + 0x4060], 1
jne 0x40e43d
mov eax, dword [esi + 0x4058]
push eax
push str.__index:_d__Sendmore_State_HDS_CLOSE
push ebx
call fcn.0040dca0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
ret 8
mov edx, dword [esi + 0x4050]
lea eax, [esi + 0x2030]
test edx, edx
push edi
jle 0x40e4b7
lea ecx, [eax + 0x1c]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
lea ecx, [eax + 0x14]
push 0
push eax
lea edx, [esp + 0x1c]
push 0
mov dword [eax + 0x2024], 0
mov eax, dword [esi]
push edx
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40e4b1
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x40e4b1
call edi
mov ecx, dword [esi + 0x4058]
push eax
push ecx
push str.sendmore__d__error__d
push ebx
call fcn.0040dca0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
ret 8
inc dword [esi + 0x405c]
pop edi
pop esi
mov eax, 1
pop ebx
ret 8

Function at 0x40e910
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x40e927
push eax
call ebp
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40e955
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004194f9
mov edx, dword [esi + 0x10]
add esp, 4
lea ecx, [esp + 0x10]
mov edi, eax
push 0
push ecx
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
jne 0x40e998
mov ecx, esi
call fcn.0040e9c0
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
push eax
push edi
mov ecx, esi
call fcn.0040e9d0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push edi
call fcn.0040ea50
mov ecx, dword [esi + 0x10]
push ecx
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x40e9d0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x40ea00
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, ecx
mov ebx, 0xa
cdq
idiv ebx
mov bl, byte [ecx + esi]
mov al, byte [edx + 0x46cad0]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x40e9e1
pop esi
pop ebx
pop edi
ret 8

Function at 0x40ed90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40edba
mov eax, 1
pop esi
add esp, 0x190
ret
mov ax, word [esp + 4]
cmp al, 2
jne 0x40edf2
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x40edf2
mov edx, dword [esp + 0x18a]
mov dword [esi + 8], 0xffffffff
and edx, 0xffff
mov dword [esi + 0x14], 0
mov dword [esi], edx
xor eax, eax
pop esi
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
pop esi
add esp, 0x190
ret
Function at 0x40ee10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x40ee2d
xor eax, eax
pop esi
ret 4
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov eax, 1
pop esi
ret 4
Function at 0x411020
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x456150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
add ecx, 4
mov dword [esp + 0x20], 0
push ecx
lea ecx, [esp + 0x14]
xor esi, esi
call fcn.00401000
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
push edi
push ebp
lea ecx, [esp + 0x14]
push str.WZ_FriendAdd__s___s
push ecx
mov byte [esp + 0x30], 1
call fcn.00430578
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, 0x4807f0
push edx
call fcn.0040f240
cmp eax, 1
jne 0x411126
mov ecx, 0x4807f0
call fcn.0040f540
cmp ax, 0x64
jne 0x4110f8
push edi
push ebp
push str.error_L3_:_Friend_Add_fail__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
mov ecx, 0x4807f0
call fcn.0040f560
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push 1
mov ecx, 0x4807f0
call fcn.0040f5d0
mov ecx, 0x4807f0
mov esi, eax
call fcn.0040f560
push esi
push edi
push ebp
push str.friend_add_result__s__s__d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x411280
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x456190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x24], 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00401000
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
push esi
push edi
lea ecx, [esp + 0x18]
push str.WZ_WaitFriendAdd__s___s
push ecx
mov byte [esp + 0x34], 1
call fcn.00430578
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, 0x4807f0
push edx
call fcn.0040f240
cmp eax, 1
jne 0x4113e2
mov ecx, 0x4807f0
call fcn.0040f540
cmp ax, 0x64
jne 0x41130f
push edi
push esi
push str.error_L3_:_friend_wait_add_fail__s__s
jmp 0x4113e9
push 1
mov ecx, 0x4807f0
call fcn.0040f5d0
mov ecx, 0x4807f0
mov ebp, eax
call fcn.0040f560
mov ebx, dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
cmp ebp, 8
jne 0x41137a
push edi
push esi
push str.WZ_WaitFriendAdd_fail__s__s
push 0x48d640
call ebx
add esp, 0x10
push edi
push esi
push str.WZ_WaitFriendAdd_success__s__s
push 0x48d640
call ebx
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov al, 1
jmp 0x411422
test ebp, ebp
je 0x411343
push ebp
push str.WZ_WaitFriendAdd_fail__d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0xc
cmp ebp, 6
jne 0x4113ba
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov al, 6
jmp 0x411422
cmp ebp, 5
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
jne 0x41140a
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov al, 5
jmp 0x411422
push edi
push esi
push str.WZ_WaitFriendAdd_run_fail__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
mov ecx, 0x4807f0
call fcn.0040f560
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
xor al, al
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x411440
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4561b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
add ecx, 4
xor ebx, ebx
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00401000
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push esi
push edi
lea ecx, [esp + 0x18]
push str.WZ_FriendDel__s___s
push ecx
mov byte [esp + 0x34], 1
call fcn.00430578
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, 0x4807f0
push edx
call fcn.0040f240
cmp eax, 1
mov ecx, 0x4807f0
jne 0x411531
call fcn.0040f540
cmp ax, 0x64
jne 0x4114de
push esi
push edi
push str.error_L3_:_WZ_FriendDel_fail__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
mov ecx, 0x4807f0
call fcn.0040f560
jmp 0x41150f
push 1
mov ecx, 0x4807f0
call fcn.0040f5d0
mov ecx, 0x4807f0
mov ebp, eax
call fcn.0040f560
cmp ebp, 1
je 0x411536
push ebp
push str.WZ_FriendDel_fail_2__d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
xor eax, eax
jmp 0x41156e
call fcn.0040f560
push esi
push edi
push str.WZ_FriendDel_success__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x411590
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4561d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
add ecx, 4
xor ebx, ebx
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00401000
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push esi
push edi
lea ecx, [esp + 0x18]
push str.WZ_WaitFriendDel__s___s
push ecx
mov byte [esp + 0x34], 1
call fcn.00430578
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, 0x4807f0
push edx
call fcn.0040f240
cmp eax, 1
mov ecx, 0x4807f0
jne 0x4116a1
call fcn.0040f540
cmp ax, 0x64
jne 0x411635
push esi
push edi
push str.error_L3_:_WZ_WaitFriendDel_fail__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
mov ecx, 0x4807f0
call fcn.0040f560
jmp 0x4116bb
push 1
mov ecx, 0x4807f0
call fcn.0040f5d0
mov ecx, 0x4807f0
mov ebp, eax
call fcn.0040f560
cmp ebp, ebx
je 0x411667
push ebp
push str.WZ_WaitFriendDel_fail_2__d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0xc
jmp 0x4116bb
push esi
push edi
push str.WZ_WaitFriendDel_success__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov eax, 1
jmp 0x4116db
call fcn.0040f560
push esi
push edi
push str.WZ_WaitFriendDel_run_fail__s__s
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x411c00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x456230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push edi
push esi
lea ecx, [esp + 0x14]
push str.SELECT_bRead__Dir__Act_FROM_T_FriendMail_where_MemoIndex_d_AND_GUID__d
push ecx
mov dword [esp + 0x30], 0
call fcn.00430578
add esp, 0x10
add ebp, 0x1c
lea ecx, [esp + 0x10]
push ebp
call fcn.00401000
mov edx, dword [esp + 0xc]
mov ecx, 0x478e78
push edx
mov byte [esp + 0x24], 1
call fcn.0040f240
cmp eax, 1
jne 0x411da3
mov ecx, 0x478e78
call fcn.0040f540
cmp ax, 0x64
je 0x411cc0
push 1
mov ecx, 0x478e78
call fcn.0040f5d0
push 2
mov ecx, 0x478e78
mov ebp, eax
call fcn.0040f5d0
test eax, eax
jl 0x411ca8
mov ecx, dword [esp + 0x3c]
mov byte [ecx], al
push 3
mov ecx, 0x478e78
call fcn.0040f5d0
test eax, eax
jl 0x411cc4
mov edx, dword [esp + 0x40]
mov byte [edx], al
jmp 0x411cc4
mov ebp, dword [esp + 0x30]
mov ecx, 0x478e78
call fcn.0040f560
push esi
push 0x46d51c
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::Add_char__]
push edi
push esi
lea eax, [esp + 0x20]
push str.SELECT_Photo_FROM_T_FriendMail_where_MemoIndex_d_AND_GUID_d
push eax
call fcn.00430578
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov edx, eax
add esp, 0x1c
mov dword [edx], ecx
push eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], ecx
push eax
mov dword [edx + 8], ecx
mov byte [edx + 0xc], cl
mov ecx, 0x478e78
call fcn.0040f850
push edi
push esi
lea ecx, [esp + 0x14]
push str.SELECT_Memo_FROM_T_FriendMail_where_MemoIndex_d_AND_GUID_d
push ecx
call fcn.00430578
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, 0x478e78
push edx
push eax
call fcn.0040f850
mov ecx, dword [esp + 0x44]
test ebp, ebp
mov dword [ecx], eax
jne 0x411d6b
push edi
push esi
lea edx, [esp + 0x14]
push str.UPDATE_T_FriendMail_SET_bRead__1_where_MemoIndex_d_AND_GUID_d
push edx
call fcn.00430578
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, 0x478e78
push eax
call fcn.0040f240
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x20
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0x20
Function at 0x411de0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x456250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
push edi
push ebp
lea ecx, [esp + 0x18]
xor ebx, ebx
push str.exec_WZ_DelMail__s___d
push ecx
mov dword [esp + 0x34], ebx
call fcn.00430578
add esp, 0x10
add esi, 0x1c
lea ecx, [esp + 0x14]
push esi
call fcn.00401000
mov edx, dword [esp + 0x10]
mov ecx, 0x478e78
push edx
mov byte [esp + 0x28], 1
call fcn.0040f240
test eax, eax
jne 0x411e77
push 0x27b
push str.D:WORKMU_UNICODE_WORK_MuEXDBSOURCEDbSetFriendDBSet.cpp
push str.error_L3_:__s__d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::Add_char__]
add esp, 0x10
mov ecx, 0x478e78
call fcn.0040f560
jmp 0x411ecb
mov ecx, 0x478e78
call fcn.0040f540
cmp ax, 0x64
jne 0x411e98
push 0x281
push str.D:WORKMU_UNICODE_WORK_MuEXDBSOURCEDbSetFriendDBSet.cpp
push str.error_L3_:_sql_no_data_:__s__d
jmp 0x411e5d
push 1
mov ecx, 0x478e78
call fcn.0040f5d0
mov ecx, 0x478e78
mov esi, eax
call fcn.0040f560
cmp esi, 1
je 0x411eed
push esi
push edi
push ebp
push str.error_L3_:_DelMemo__s__d_Result:_d
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::Add_char__]
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
xor eax, eax
jmp 0x411f10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00401040
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439900
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x413220
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x456318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x46e490]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x60], ebx
call fcn.00412ff0
mov esi, eax
mov eax, dword [edi + 0x14]
cmp eax, ebx
jne 0x41326c
mov dword [edi + 0x14], esi
jmp 0x41326e
mov esi, eax
push ebx
mov ecx, edi
call fcn.004122d0
cmp esi, ebx
mov dword [esp + 0x14], ebx
je 0x413382
mov ebp, dword [esp + 0x68]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
lea edi, [esi + 4]
mov cl, byte [esi + 0x31]
lea edx, [esp + 0x18]
push ecx
push edi
push str._s__d_
push edx
call fcn.00430578
mov edx, dword [ebp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x30]
xor eax, eax
push ecx
push eax
push 0x1007
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
call ebx
xor ecx, ecx
mov dword [esp + 0x38], 1
mov cl, byte [esi + 0x31]
lea eax, [esp + 0x1c]
push 0xa
push eax
push ecx
call fcn.00426b33
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x30]
lea edx, [esp + 0x1c]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x54], edx
call ebx
xor eax, eax
mov dword [esp + 0x38], 2
mov al, byte [esi + 0x31]
lea edx, [esp + 0x1c]
push 0xa
push edx
push eax
call fcn.00426b33
mov eax, dword [ebp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x30]
lea ecx, [esi + 0x32]
push edx
push 0
push 0x1006
push eax
mov dword [esp + 0x54], ecx
call ebx
mov eax, dword [esp + 0x14]
cmp eax, 0x64
jge 0x413370
mov ecx, dword [esp + 0x10]
mov esi, dword [esi + 0x6c8]
mov edx, eax
lea eax, [ecx + 0x3c]
inc edx
push eax
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x41328c
jmp 0x413382
mov edx, dword [esp + 0x10]
lea eax, [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
push 1
mov ecx, edi
mov dword [edi + 0x14], esi
call fcn.004122d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00439900
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8
Function at 0x4158f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
push edi
push ebp
lea ecx, [esp + 0x14]
push str.UPDATE_Guild_SET_G_Union_d_WHERE_Number_d
push ecx
mov dword [esp + 0x30], 0
call fcn.00430578
add esp, 0x10
lea edx, [esi + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401000
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x68]
push eax
mov byte [esp + 0x24], 1
call fcn.0040f240
test eax, eax
jne 0x415991
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], al
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push ebp
push edi
push str._UPDATE__Guild_Union____d___Join_to____d__
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x4159e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x46e490]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
push edi
push ebp
lea ecx, [esp + 0x14]
push str.UPDATE_Guild_SET_G_Rival_d_WHERE_Number_d
push ecx
mov dword [esp + 0x30], 0
call fcn.00430578
add esp, 0x10
lea edx, [esi + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401000
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x68]
push eax
mov byte [esp + 0x24], 1
call fcn.0040f240
test eax, eax
jne 0x415a81
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], al
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push ebp
push edi
push str._UPDATE__Guild_Rival____d___Join_to____d__
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00401040
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00439900
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x417280
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x416f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a02ac], eax
pop ecx
ret

Function at 0x417500
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x4172a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a02a8], eax
pop ecx
ret
Function at 0x4213ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x46f848
cmp edx, dword [eax]
je 0x421410
add eax, 8
inc ecx
cmp eax, 0x46f8d8
jl 0x421401
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x46f848]
jne 0x42153e
mov eax, dword [0x4a2338]
cmp eax, 1
je 0x421518
test eax, eax
jne 0x421441
cmp dword [0x46ee04], 1
je 0x421518
cmp edx, 0xfc
je 0x42153e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421478
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041cb80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4214bb
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041cb80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45faf4
push edi
call fcn.004240c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421940
lea eax, [ebp - 0xa0]
push 0x45fad4
push eax
call fcn.00421940
push dword [esi + 0x46f84c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421940
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042461b
add esp, 0x2c
pop edi
jmp 0x42153e
lea eax, [ebp + 8]
lea esi, [esi + 0x46f84c]
push 0
push eax
push dword [esi]
call fcn.0041cb80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret