joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444490
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a06db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x24]
mov ax, word [ebx]
mov word [ebp], ax
mov cx, word [ebx + 2]
mov word [ebp + 2], cx
mov dl, byte [ebx + 4]
mov byte [ebp + 4], dl
mov al, byte [ebx + 5]
mov byte [ebp + 5], al
mov cl, byte [ebx + 6]
mov byte [ebp + 6], cl
mov dl, byte [ebx + 7]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
xor esi, esi
mov byte [ebp + 7], dl
push esi
lea eax, [ebx + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], esi
push eax
mov byte [ecx + 4], 0
call fcn.004017d0
mov cl, byte [ebx + 0x24]
mov byte [ebp + 0x24], cl
mov dl, byte [ebx + 0x25]
mov byte [ebp + 0x25], dl
mov al, byte [ebx + 0x26]
mov byte [ebp + 0x26], al
mov cx, word [ebx + 0x28]
mov word [ebp + 0x28], cx
mov dx, word [ebx + 0x2a]
mov word [ebp + 0x2a], dx
mov ax, word [ebx + 0x2c]
mov word [ebp + 0x2c], ax
mov cx, word [ebx + 0x2e]
mov word [ebp + 0x2e], cx
mov dx, word [ebx + 0x30]
mov word [ebp + 0x30], dx
mov ax, word [ebx + 0x32]
mov word [ebp + 0x32], ax
mov cx, word [ebx + 0x34]
mov word [ebp + 0x34], cx
mov dx, word [ebx + 0x36]
mov word [ebp + 0x36], dx
mov ax, word [ebx + 0x38]
mov word [ebp + 0x38], ax
mov cx, word [ebx + 0x3a]
mov word [ebp + 0x3a], cx
mov dword [esp + 0x1c], esi
lea esi, [ebx + 0x3c]
lea edi, [ebp + 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x5c]
push 0xffffffffffffffff
lea edi, [ebp + 0x5c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x7c]
push 0
add ebx, 0x7c
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push ebx
mov byte [ecx + 4], 0
call fcn.004017d0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x449900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push 0x2c
lea ecx, [esp + 0xc]
call fcn.004918b0
mov ebx, 0x4aa568
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0
call fcn.00491da0
test al, al
lea ecx, [esp + 8]
jne 0x449974
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 8], ebx
call fcn.00491d50
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
push edi
push 0x4ab04c
call fcn.00491c40
mov edi, eax
test edi, edi
jge 0x4499b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0xc], ebx
call fcn.00491d50
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
inc edi
cmp edi, eax
push ebp
mov ebp, eax
jge 0x449a32
add esi, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edi*8 + 4]
push 0x4b0dc0
push ecx
mov ecx, dword [eax + edi*8]
call fcn.00491c70
push eax
call fcn.0047f135
mov ecx, dword [esi + 4]
add esp, 4
test ecx, ecx
mov dword [esp + 0x50], eax
jne 0x4499f1
xor ebx, ebx
jmp 0x4499f9
mov ebx, dword [esi + 8]
sub ebx, ecx
sar ebx, 2
test ecx, ecx
je 0x449a16
mov edx, dword [esi + 0xc]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x449a16
mov ecx, dword [esi + 8]
mov dword [ecx], eax
add ecx, 4
mov dword [esi + 8], ecx
jmp 0x449a28
mov eax, dword [esi + 8]
lea edx, [esp + 0x50]
push edx
push 1
push eax
mov ecx, esi
call fcn.0040f700
inc edi
cmp edi, ebp
jl 0x4499c3
mov ebx, 0x4aa568
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], ebx
call fcn.00491d50
mov ecx, dword [esp + 0x40]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x456ef0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x381c
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebp
mov dword [esp + 0x381c], eax
xor ebp, ebp
lea eax, [esp + 0x1c]
push str.SELECT_DISTINCT_ID__Icon__IconData_FROM_T_union_WHERE_Icon_0
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x24], 0
call fcn.0047f034
add esp, 8
push 1
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x457035
mov eax, dword [esp + 4]
push ebx
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
mov ebx, eax
cmp ebx, ebp
je 0x457034
mov ecx, dword [esp + 8]
push esi
push edi
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call sub.LIBMYSQL.dll_mysql_fetch_lengths
cmp ebx, ebp
mov edi, eax
jle 0x457028
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push eax
call fcn.0047f1bd
mov edi, dword [edi + 8]
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
add esp, 4
test edi, edi
mov ebp, eax
jle 0x457006
mov ecx, 0x4d8fdc
call fcn.004368d0
push 0x6e
mov ecx, 0x4d8fdc
call fcn.00436910
push 0x2b73
mov ecx, 0x4d8fdc
call fcn.00436910
push ebp
mov ecx, 0x4d8fdc
call fcn.00436940
push ebx
mov ecx, 0x4d8fdc
call fcn.00436970
push edi
push esi
mov ecx, 0x4d8fdc
call fcn.00436c60
push 0
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esp + 0x3830]
push ecx
mov ecx, 0x4d8ea0
call fcn.00435110
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_fetch_lengths
mov edi, eax
dec dword [esp + 0x14]
jne 0x456f87
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x381c]
pop ebp
xor ecx, esp
call fcn.0047ece2
add esp, 0x381c
ret
Function at 0x45cf40
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x3818
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x3828]
mov dword [esp + 0x3818], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x3830]
push edi
mov edi, dword [esp + 0x382c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x3828]
push eax
lea ecx, [esp + 0x24]
push str.SELECT_ItemID_MaxID_BeginID_FROM_T_ItemID_WHERE_RegionID_d_LIMIT_1
push ecx
call fcn.0047f034
add esp, 0xc
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x45cfd3
mov ecx, dword [0x52f0ec]
push str.T_ItemID
push 0x4ab520
push ecx
call fcn.0048dda0
add esp, 0xc
xor al, al
jmp 0x45d04c
mov edx, dword [esp + 0xc]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jne 0x45d00e
mov eax, dword [0x52f0ec]
push 0x4b2b2c
push 0x4ab520
push eax
call fcn.0048dda0
push 0x19
push str..gw_item.cpp
push 0x4b2b2c
call fcn.0048df80
add esp, 0x18
xor al, al
jmp 0x45d04c
mov ecx, dword [esp + 0xc]
push esi
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov esi, eax
mov edx, dword [esi]
push edx
call fcn.0047f135
mov dword [ebx], eax
mov eax, dword [esi + 4]
push eax
call fcn.0047f135
mov dword [ebp], eax
mov ecx, dword [esi + 8]
push ecx
call fcn.0047f135
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov dword [edi], eax
call sub.LIBMYSQL.dll_mysql_free_result
mov al, 1
pop esi
mov ecx, dword [esp + 0x3820]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x3818
ret 0x10
Function at 0x45d1e0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x3818
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push edi
push 0xfe
mov dword [esp + 0x3820], eax
xor ebx, ebx
lea eax, [esp + 0x20]
push str.SELECT_ItemID_MaxID_BeginID_FROM_T_ItemID_WHERE_RegionID_d_LIMIT_1
push eax
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
call fcn.0047f034
add esp, 0xc
push 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x45d284
mov eax, dword [0x52f0ec]
push str.T_ItemID
push 0x4ab520
push eax
call fcn.0048dda0
push 0xbf
push str..gw_item.cpp
push str.T_ItemID
call fcn.0048df80
add esp, 0x18
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x3814]
xor ecx, esp
call fcn.0047ece2
add esp, 0x3818
ret
mov ecx, dword [esp + 8]
push ecx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jne 0x45d2d8
mov edx, dword [0x52f0ec]
push 0x4b2b2c
push 0x4ab520
push edx
call fcn.0048dda0
push 0xc9
push str..gw_item.cpp
push 0x4b2b2c
call fcn.0048df80
add esp, 0x18
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x3814]
xor ecx, esp
call fcn.0047ece2
add esp, 0x3818
ret
mov eax, dword [esp + 8]
push ebp
push esi
push eax
call sub.LIBMYSQL.dll_mysql_fetch_row
mov esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0047f135
mov edx, dword [esi + 4]
push edx
mov ebp, eax
call fcn.0047f135
mov eax, dword [esi + 8]
push eax
call fcn.0047f135
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
cmp byte [0x4d1084], bl
je 0x45d31d
mov byte [0x4d1084], bl
lea edx, [ebp + 1]
mov ecx, edi
mov dword [edi], edx
mov dword [edi + 4], ebp
call fcn.0045d120
mov ecx, dword [esp + 0x3824]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0047ece2
add esp, 0x3818
ret
Function at 0x4607e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a1d1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xdc]
mov dword [esi], 0x4b3274
xor ebx, ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 8], esi
mov byte [ecx + 4], bl
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov byte [esi + 0x58], bl
mov byte [esi + 0x78], bl
mov word [esi + 0x98], bx
mov word [esi + 0x9a], bx
mov word [esi + 0x9c], bx
mov word [esi + 0x9e], bx
mov word [esi + 0xa0], bx
xor eax, eax
mov dword [esi + 0xa2], eax
mov word [esi + 0xa6], ax
mov byte [esi + 0xa8], al
push ebx
push 0x4aa28a
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xac], 0xffffffff
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xb4], bl
mov byte [esi + 0xb5], bl
mov dword [esi + 0xb8], ebx
mov byte [esi + 0xbc], bl
call fcn.004018c0
mov ecx, dword [esp + 0xc]
mov al, 1
mov byte [esi + 0x104], al
mov byte [esi + 0x105], al
mov dword [esi + 0xf8], ebx
mov word [esi + 0xfc], bx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4655a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a1f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov esi, ecx
lea ecx, [edi + 0x10]
mov dword [esi], eax
fld qword [edi + 8]
push ecx
fstp qword [esi + 8]
lea ecx, [esi + 0x10]
mov dword [esp + 0xc], esi
call fcn.00464520
lea edx, [edi + 0x20]
push edx
lea ecx, [esi + 0x20]
mov dword [esp + 0x18], 0
call fcn.004645e0
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 1
call fcn.00464460
lea ecx, [edi + 0x40]
push ecx
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 2
call fcn.004645e0
lea edx, [edi + 0x50]
push edx
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 3
call fcn.004645e0
add edi, 0x60
push edi
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 4
call fcn.004645e0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x46f680
Capabilities:
Reference sql statements

Disassembly:
push esi
push 0
mov esi, ecx
call fcn.0047f0fc
mov ecx, dword [esi + 4]
add esp, 4
test ecx, ecx
je 0x46f6a0
mov ecx, dword [esi]
add ecx, 0x4b0
cmp ecx, eax
jge 0x46f6a8
mov ecx, esi
pop esi
jmp fcn.0046ee80
pop esi
ret
Function at 0x479b40
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
push eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
movsx ecx, byte [esp + 0x28]
push edx
push esi
push eax
push ecx
push str.INSERT_INTO__T_CardTrade___ID___CardType___GroupType___CardID___CardPwd___CardInfo___UserID___UserName___AccountID___AccountName___Price___StartTime___EndTime___VALUES_NULL___d___d___s__s__s___d___s___d___s___d__FROM_UNIXTIME__u___FROM_UNIXTIME__u__
push 0x52e0e8
call fcn.0047f034
add esp, 0x38
push 1
lea edx, [esp + 0x38]
push edx
push 0x52e0e8
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x479bfe
mov eax, dword [esp + 0x34]
push eax
call sub.LIBMYSQL.dll_mysql_free_result
push esi
push str.SELECT__ID__FROM__T_CardTrade__WHERE__CardID____s
push 0x52e0e8
call fcn.0047f034
add esp, 0xc
push 1
lea ecx, [esp + 0xc]
push ecx
push 0x52e0e8
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x479bfe
mov edx, dword [esp + 8]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
cmp eax, 1
jne 0x479bf4
test edx, edx
je 0x479c04
mov eax, dword [esp + 8]
push eax
call sub.LIBMYSQL.dll_mysql_free_result
xor eax, eax
pop esi
ret 0x30
mov ecx, dword [esp + 8]
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edx, dword [eax]
push edx
call fcn.0047f135
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call sub.LIBMYSQL.dll_mysql_free_result
mov eax, esi
pop esi
ret 0x30

Function at 0x47c340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a310b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0x20]
mov byte [esi + 4], cl
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [esi], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x14], esi
mov byte [ecx + 4], bl
call fcn.004017d0
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
lea ecx, [esi + 0x24]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
call fcn.004017d0
mov cx, word [esp + 0x2c]
mov dx, word [esp + 0x30]
mov word [esi + 0x40], cx
mov ecx, dword [esp + 0xc]
mov word [esi + 0x42], dx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x480b1b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4b6a38
call fcn.00482504
mov edi, 0x94
mov eax, edi
call fcn.0047f090
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x52cd54], ecx
mov eax, dword [esi + 4]
mov dword [0x52cd60], eax
mov edx, dword [esi + 8]
mov dword [0x52cd64], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x52cd58], esi
cmp ecx, 2
je 0x480b7b
or esi, 0x8000
mov dword [0x52cd58], esi
shl eax, 8
add eax, edx
mov dword [0x52cd5c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x480bb4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x480bb4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x480bcc
cmp eax, 0x20b
je 0x480bb9
mov dword [ebp - 0x1c], edi
jmp 0x480be0
cmp dword [ecx + 0x84], 0xe
jbe 0x480bb4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x480bda
cmp dword [ecx + 0x74], 0xe
jbe 0x480bb4
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048643f
pop ecx
test eax, eax
jne 0x480bf4
push 0x1c
call fcn.00480af7
pop ecx
call fcn.0048364c
test eax, eax
jne 0x480c05
push 0x10
call fcn.00480af7
pop ecx
call fcn.00488917
mov dword [ebp - 4], edi
call fcn.00487254
test eax, eax
jge 0x480c1e
push 0x1b
call fcn.00480ad2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5525b4], eax
call fcn.004887f5
mov dword [0x52cbc0], eax
call fcn.00488753
test eax, eax
jge 0x480c44
push 8
call fcn.00480ad2
pop ecx
call fcn.00488520
test eax, eax
jge 0x480c55
push 9
call fcn.00480ad2
pop ecx
push 1
call fcn.00484704
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x480c6b
push eax
call fcn.00480ad2
pop ecx
mov eax, dword [0x52cd74]
mov dword [0x52cd78], eax
push eax
push dword [0x52cd6c]
push dword [0x52cd68]
call fcn.00417630
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x480c9a
push esi
call fcn.00484831
call fcn.00484853
jmp 0x480ccc
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0048253f
ret
Function at 0x48476e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4b7510
call fcn.00482504
push 8
call fcn.004819a4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x52cd94], esi
jne 0x4847a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x52cd90], esi
mov al, byte [ebp + 0x10]
mov byte [0x52cd8c], al
cmp dword [ebp + 0xc], edi
jne 0x4847ec
cmp dword [0x55158c], edi
je 0x4847dc
mov eax, dword [0x551588]
sub eax, 4
mov dword [0x551588], eax
cmp eax, dword [0x55158c]
jb 0x4847dc
mov eax, dword [eax]
cmp eax, edi
je 0x4847bd
call eax
jmp 0x4847bd
push 0x4cf45c
mov eax, 0x4cf454
call fcn.004846ec
pop ecx
push 0x4cf468
mov eax, 0x4cf460
call fcn.004846ec
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x48481d
cmp dword [ebp + 0x10], edi
jne 0x48482b
mov dword [0x52cd94], esi
push dword [ebp + 8]
call fcn.004846aa
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x48482a
push 8
call fcn.004818ef
pop ecx
ret
call fcn.0048253f
ret
Function at 0x484a04
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4d2084]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x484a40
xor eax, eax
jmp 0x484baa
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x551460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x484a7e
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0048b20b
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x484b18
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x484b7b
jmp 0x484aa2
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x484add
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x484ace
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x484aae
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x484b3c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x484b45
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x484aa0
jmp 0x484b45
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x484b3c
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x484b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x484ba5
cmp dword [ebp - 0x68], eax
je 0x484b78
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x484b6d
call fcn.00480062
mov dword [eax], 9
call fcn.0048006b
mov dword [eax], esi
jmp 0x484ba0
push dword [ebp - 0x68]
call fcn.00480074
pop ecx
jmp 0x484ba0
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x484b8d
cmp byte [edi], 0x1a
jne 0x484b8d
xor eax, eax
jmp 0x484ba8
call fcn.00480062
mov dword [eax], 0x1c
call fcn.0048006b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x484ba8
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0047ece2
add ebp, 0x3a4
leave
ret
Function at 0x485715
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4858eb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x551460]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4858eb
test cl, 0x48
je 0x485780
cmp byte [eax + 5], 0xa
je 0x485780
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4857d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4857ba
call fcn.00480062
mov dword [eax], 9
call fcn.0048006b
mov dword [eax], esi
jmp 0x4857ca
cmp eax, 0x6d
je 0x4858eb
push eax
call fcn.00480074
pop ecx
or eax, 0xffffffff
jmp 0x4858ed
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4858e6
test eax, eax
je 0x4857f9
cmp byte [ebx], 0xa
jne 0x4857f9
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x485802
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4858e0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4858d0
cmp al, 0xd
je 0x485834
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4858c2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48584e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x485849
add dword [ebp + 0x10], 2
jmp 0x4858a2
mov dword [ebp + 0x10], eax
jmp 0x4858be
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x485876
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4858be
cmp dword [ebp - 0xc], 0
je 0x4858be
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x485897
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4858a2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4858c1
cmp ebx, dword [ebp + 0xc]
jne 0x4858a7
cmp byte [ebp - 1], 0xa
jne 0x4858a7
mov byte [ebx], 0xa
jmp 0x4858c1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048b20b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4858c2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x485818
jmp 0x4858e0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4858e0
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4858ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret