joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
movzx ebp, ax
shr eax, 0x10
mov edi, 1
mov dword [esp + 0x14], eax
lea ebx, [edi + 0xf]
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x480b5b
mov eax, dword [esi + 0x40]
sub eax, ecx
sar eax, 4
cmp edi, eax
jb 0x480b60
call fcn.005d29f1
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
push ecx
add eax, ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x480ba3
mov ecx, dword [esi + 0x20]
lea edx, [esi + 0x7c]
push edx
add ecx, 0x24
call fcn.0048b500
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x480b90
xor eax, eax
jmp 0x480b98
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov ecx, dword [esi + 0x78]
lea edx, [ecx + edi - 1]
cmp edx, eax
jb 0x480bda
add ebx, 0x10
add edi, 1
cmp ebx, 0x50
jle 0x480b48
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esi + 0x100]
push 1
push 0
add edi, 0xffffffff
push 2
mov dword [esi + 0x74], edi
mov edi, dword [sym.imp.USER32.dll_SetScrollPos]
push eax
mov dword [esi + 0x6c], 1
call edi
mov ecx, dword [esi + 0x104]
push 1
push 0
push 2
push ecx
call edi
push esi
call fcn.00482540
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x480c45
mov edx, dword [esi + 0x40]
sub edx, eax
sar edx, 4
je 0x480c45
test eax, eax
je 0x480c30
mov ecx, dword [esi + 0x40]
sub ecx, eax
sar ecx, 4
jne 0x480c35
call fcn.005d29f1
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x6784cc]
push 1
push 3
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x1c]
pop edi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
add esp, 0xc
ret 4
Function at 0x480cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 1
mov ebx, eax
mov eax, dword [0x6784cc]
push 3
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x18]
add eax, 0xfffffb3e
xor ebp, ebp
cmp eax, 0x5a
ja case.0x480ce9.1220
movzx ecx, byte [eax + 0x480eb8]
jmp dword [ecx*4 + 0x480e9c]
call fcn.00482320
mov eax, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [ebx + 0x88]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 1
push 0xf1
push edx
call esi
mov eax, dword [ebx + 0x8c]
push ebp
push ebp
push 0xf1
push eax
call esi
mov ecx, dword [ebx + 0x90]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebx
mov dword [0x67d944], ebp
call fcn.004814b0
push ebx
call fcn.00482540
mov eax, dword [ebx + 0x3c]
cmp eax, ebp
lea esi, [ebx + 0x38]
je case.0x480ce9.1220
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
je case.0x480ce9.1220
xor edi, edi
call fcn.00483f90
push 1
push eax
mov eax, dword [ebx + 4]
push eax
jmp 0x480e82
mov ecx, dword [ebx + 0x88]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0xf1
push ecx
call esi
mov edx, dword [ebx + 0x8c]
push ebp
push 1
push 0xf1
push edx
call esi
mov eax, dword [ebx + 0x90]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x67d948], ebp
mov dword [0x67d944], 1
push ebp
je 0x480dda
mov ecx, dword [ebx + 0x90]
push 1
push 0xf1
push ecx
call esi
jmp 0x480e53
mov edx, dword [ebx + 0x90]
push ebp
push 0xf1
push edx
call esi
jmp 0x480e53
mov eax, dword [ebx + 0x90]
push ebp
push ebp
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
neg eax
mov dword [0x67d948], eax
jmp 0x480e5a
mov eax, dword [ebx + 0x78]
cmp eax, 5
jb 0x480e1c
add eax, 0xfffffffb
mov dword [ebx + 0x78], eax
jmp 0x480e50
mov dword [ebx + 0x78], ebp
jmp 0x480e50
mov ecx, dword [ebx + 0x20]
lea eax, [ebx + 0x7c]
push eax
add ecx, 0x24
call fcn.0048b500
mov ecx, dword [eax + 4]
cmp ecx, ebp
jne 0x480e3b
xor eax, eax
jmp 0x480e43
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov ecx, dword [ebx + 0x78]
add ecx, 5
cmp ecx, eax
ja 0x480e53
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x74], ebp
mov esi, ebx
call fcn.004814b0
push ebx
call fcn.00482540
mov eax, dword [ebx + 0x3c]
cmp eax, ebp
lea esi, [ebx + 0x38]
je case.0x480ce9.1220
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
je case.0x480ce9.1220
xor edi, edi
call fcn.00483f90
mov edx, dword [ebx + 4]
push 1
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x4830c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x60da88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x2c]
push 0
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x18], esp
mov edi, esp
call fcn.0040a210
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.00482da0
mov dword [esp + 0x1c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x483139
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc

Function at 0x483150
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x67d944], 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
je 0x4831c2
mov eax, dword [esi + 0x88]
push 0
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x8c]
push 0
push 1
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x90]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x67d948], 0
push 0
je 0x4831b0
mov eax, dword [esi + 0x90]
push 1
push 0xf1
push eax
call edi
pop edi
ret
mov ecx, dword [esi + 0x90]
push 0
push 0xf1
push ecx
call edi
pop edi
ret
mov edx, dword [esi + 0x88]
push 1
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x8c]
push 0
push 0
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x90]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
ret
Function at 0x484080
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5f9cd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor edi, edi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
call fcn.00484240
test eax, eax
je 0x484120
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x4840e6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48410a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x484be0
Capabilities:
Access peb ldr_data
Check if file exists
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x601919
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x28], ebx
mov ebp, 1
lea edi, [esp + 0x14]
mov dword [esp + 0x18], ebp
call fcn.0047ac70
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x484c77
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x484d08
cmp ecx, eax
jg 0x484d08
movzx eax, word [ebp + ecx*2]
cmp ax, 0x5c
je 0x484c77
push 0x5c
call fcn.0040af90
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x62ae70
call fcn.0040aab0
add esp, 8
mov edi, esi
mov byte [esp + 0x28], 2
call fcn.0040ab90
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x484cbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x484cd1
call fcn.004036c0
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00403650
int3
Function at 0x484d20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x6018c9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x24], edi
lea ebx, [esp + 0x10]
mov dword [esp + 0x14], 1
call fcn.0047a980
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x484db6
lea ecx, [eax - 1]
test ecx, ecx
jl 0x484e4a
cmp ecx, eax
jg 0x484e4a
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x484db6
push 0x5c
mov edi, ebx
call fcn.0040af90
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x62ae70
call fcn.0040aab0
add esp, 8
mov edi, esi
mov byte [esp + 0x24], 2
call fcn.0040ab90
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x484dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x484e10
call fcn.004036c0
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484e35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00403650
int3
Function at 0x484e60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x604e29
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00484be0
lea ecx, [esp + 0x14]
mov esi, 1
push ecx
mov dword [esp + 0x2c], esi
call fcn.00484d20
add esp, 8
mov byte [esp + 0x24], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], esi
jne 0x484efa
cmp dword [edx - 0xc], 0
jne 0x484ef6
mov esi, edi
call fcn.004036c0
jmp 0x484f4b
test eax, eax
je 0x484f3c
cmp dword [edx - 0xc], 0
je 0x484f38
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
push 0x6291fc
push str.Main
call ebp
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x6291fc
push str.Main
mov esi, eax
call ebp
cmp esi, eax
lea eax, [esp + 0x14]
jae 0x484f46
lea eax, [esp + 0x10]
jmp 0x484f46
test eax, eax
jne 0x484f42
lea eax, [esp + 0x10]
jmp 0x484f46
lea eax, [esp + 0x14]
call fcn.0040ab90
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x484f70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret

Function at 0x484fb0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
call fcn.00484e60
mov eax, dword [esp + 8]
add esp, 4
cmp dword [eax - 0xc], esi
je 0x484fe2
push eax
push esi
push str.Enable
push str.ImeList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ecx
ret
Function at 0x487130
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x487265
call fcn.0040f010
cmp eax, esi
jl 0x487250
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call edi
cmp eax, 0xffffffff
jne 0x4871a3
call fcn.0040f010
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], 0x51515346
mov dword [esp + 0x38], 0xd5b73da3
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0x24
lea edx, [esp + 0x3c]
push edx
push ebx
mov dword [esp + 0x64], 0x30
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48721b
call fcn.0040f010
mov esi, eax
test esi, esi
jl 0x487243
mov eax, dword [esp + 0x50]
xor esi, esi
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call edi
cmp eax, 0xffffffff
jne 0x48726e
call fcn.0040f010
cmp eax, esi
jge 0x48726e
mov esi, eax
test ebx, ebx
je 0x48724e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005d28b3
add esp, 0x4c
ret 8
mov dword [esp + 0x14], eax
jmp 0x48717d
xor eax, eax
add ebp, 0x35c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x359
xor edi, edi
test byte [edi + 0x621094], 2
jne 0x4872d5
mov ecx, dword [edi + 0x621090]
cmp ecx, 0xa
ja case.default.0x4872a4
jmp dword [ecx*4 + 0x487338]
mov edx, dword [ebp]
push edx
jmp 0x4872bb
mov ecx, dword [ebp]
push ecx
jmp 0x4872bb
mov eax, dword [ebp]
push eax
movzx ebx, word [edi + 0x621096]
lea esi, [esp + 0x1c]
call fcn.0044b8f0
mov ebx, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
jl 0x4872e3
add edi, 0x18
add ebp, 4
cmp edi, 0x22b0
jb 0x487290
mov edx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x487307
call fcn.0040f010
mov edi, eax
jmp 0x487309
xor edi, edi
test esi, esi
je 0x487316
push esi
call fcn.005d27e0
add esp, 4
test ebx, ebx
je 0x487321
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d28b3
add esp, 0x4c
ret 8
Function at 0x487a50
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x487a8a
call fcn.0040f010
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x487adf
call fcn.0040f010
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret

Function at 0x487c00
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x214
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x680a10], bl
mov dword [esp + 4], 0
jne 0x487c54
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
or dword [0x680a10], ebx
mov ecx, 0x677600
call edx
add eax, 0x10
push 0x613940
mov dword [0x680a0c], eax
call fcn.005d268a
add esp, 4
mov eax, dword [0x680a0c]
cmp dword [eax - 0xc], 0
jne 0x487cb1
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.005da970
add esp, 0xc
push ebx
push 7
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487c91
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x680a0c
call fcn.004037a0
mov eax, dword [0x680a0c]
add eax, 0xfffffff0
call fcn.0040a210
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.005d28b3
add esp, 0x214
ret
Function at 0x48a950
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov esi, ecx
call fcn.0044be10
test eax, eax
jne 0x48aa50
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x48a9a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test edi, edi
jne 0x48aa4e
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005d28b3
add esp, 0x1c
ret
xor ecx, ecx
mov dword [esp + 0xe], ecx
mov dword [esp + 0x12], ecx
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
mov dword [esp + 0x10], ecx
mov word [esp + 0xe], cx
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x48a983
mov edx, dword [esi]
mov eax, dword [esi + 4]
push 1
push 0x82cb
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov edi, eax
cmp edi, 0xffffffff
je 0x48a983
push 0x1f40
mov word [esi + 0x38], 0
mov byte [esi + 0x3b], 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x48aa1f
test eax, eax
jne 0x48aa3d
push str.srf.qq.com
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x48aa36
test eax, eax
jne 0x48aa3d
mov eax, esi
call fcn.0048adb0
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x48aa4e
test eax, eax
je 0x48aa4e
call fcn.0048ae50
mov eax, edi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x1c
ret

Function at 0x48ae50
Capabilities:
Send data
Send data on socket

Disassembly:
test esi, esi
push edi
je 0x48ae5a
lea edi, [esi - 0x24]
jmp 0x48ae5c
xor edi, edi
mov ecx, edi
call fcn.00489130
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
push 0x10
lea eax, [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
add word [esi + 0x38], 1
movzx eax, word [esi + 0x38]
cmp ax, 3
jb 0x48ae99
cmp byte [esi + 0x3c], 0
jne 0x48ae99
call fcn.00489530
pop edi
ret
mov ecx, dword [esi]
push 0
push 0xbb8
push 0xc2d
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
ret