joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453f35
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x134], ecx
push dword [ebp + 8]
push str._s.bak.perf
lea eax, [ebp - 0x120]
push eax
call fcn.0045567a
add esp, 0xc
push 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x134]
call fcn.00453d9c
movzx eax, al
test eax, eax
jne 0x453fa2
xor al, al
jmp 0x45412b
push 0x570f98
lea eax, [ebp - 0x120]
push eax
call fcn.004b9444
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x453fc5
xor al, al
jmp 0x45412b
push 0x570f9c
push dword [ebp + 8]
call fcn.004b9444
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x453ff3
push dword [ebp - 0x14]
call fcn.004b42b0
pop ecx
xor al, al
jmp 0x45412b
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
imul eax, eax, 0x4c
mov ecx, dword [ebp + 0x10]
shl ecx, 6
lea eax, [eax + ecx + 0x28]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x128]
call fcn.004b3b45
pop ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], eax
push dword [ebp - 0x128]
push 0
push dword [ebp - 4]
call fcn.004b7da0
add esp, 0xc
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004ba18e
add esp, 0xc
test eax, eax
jne 0x4540f2
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x124]
call fcn.004ba18e
add esp, 0xc
test eax, eax
je 0x4540a1
jmp 0x4540f2
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004b9709
add esp, 0x10
cmp eax, 1
je 0x4540bb
jmp 0x4540f2
push dword [ebp - 0x124]
push 1
push dword [ebp - 0x128]
push dword [ebp - 4]
call fcn.004b4592
add esp, 0x10
cmp eax, 1
je 0x4540db
jmp 0x4540f2
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0xc], eax
jmp 0x454074
mov eax, dword [ebp - 4]
mov dword [ebp - 0x130], eax
push dword [ebp - 0x130]
call fcn.004b3165
pop ecx
push dword [ebp - 0x14]
call fcn.004b42b0
pop ecx
push dword [ebp - 0x124]
call fcn.004b42b0
pop ecx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 0x10
Function at 0x454301
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0
jne 0x454317
xor al, al
jmp 0x454437
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
call fcn.00455529
movzx eax, al
test eax, eax
jne 0x454336
xor al, al
jmp 0x454437
push 0x570fa0
push dword [ebp + 8]
call fcn.004b9444
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x454355
xor al, al
jmp 0x454437
cmp dword [ebp + 0xc], 0
jne 0x45435f
and dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp + 0x14]
lea eax, [eax + ecx*4 + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.004b3b45
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4543a4
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.004b3170
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004b97c1
pop ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
mov ecx, dword [ebp - 0x30]
call fcn.00454261
mov byte [ebp - 0x11], 1
push dword [ebp - 8]
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004b4592
add esp, 0x10
cmp eax, 1
je 0x45441c
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.004b3165
pop ecx
push dword [ebp - 8]
call fcn.004b42b0
pop ecx
mov al, byte [ebp - 0x11]
leave
ret 0x10
Function at 0x455529
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x40], ecx
push 0x570fc4
push dword [ebp + 8]
call fcn.004b9444
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x455558
jmp 0x4555d0
push dword [ebp - 8]
push 1
push 0x28
lea eax, [ebp - 0x38]
push eax
call fcn.004b9709
add esp, 0x10
cmp eax, 1
je 0x45557d
push dword [ebp - 8]
call fcn.004b42b0
pop ecx
jmp 0x4555d0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call fcn.004b42b0
pop ecx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0xc]
je 0x45559e
jmp 0x4555d0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jne 0x4555ac
mov al, 1
jmp 0x4555e1
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jle 0x4555ba
jmp 0x4555d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.00453f35
jmp 0x4555e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
call fcn.00453d9c
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 0xc
Function at 0x457bd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x457bfd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x457c03
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 4
push 0
push 1
push 3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0xffffffff
jne 0x457c2e
xor al, al
jmp 0x457c97
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x457c4e
xor al, al
jmp 0x457c97
cmp dword [ebp - 4], 0
ja 0x457c5d
cmp dword [ebp - 8], 0x1400000
jb 0x457c83
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x457c83
xor al, al
jmp 0x457c97
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
leave
ret

Function at 0x457c99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x457cbe
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x457cc4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x457ce4
xor al, al
jmp 0x457ce6
mov al, 1
leave
ret 4
Function at 0x458c34
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x458c3c
xor eax, eax
jne 0x458c3c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x458c5d
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
and dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x458c74
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x458cb8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x458c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x458c9b
push dword [ebp - 4]
call fcn.00458cf2
pop ecx
jmp 0x458cb8
push dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x458cb6
call fcn.00458cbc
jmp 0x458cb8
xor eax, eax
leave
ret 4

Function at 0x458fd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
xor eax, eax
jne 0x458ff0
xor eax, eax
jne 0x458ff0
cmp dword [ebp + 8], 0
jne 0x459043
lea eax, [ebp - 0x110]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x45902b
call fcn.00458cbc
jmp 0x45913c
cmp dword [ebp - 0x228], 0x100
jbe 0x459041
mov eax, 0x80020013
jmp 0x45913c
jmp 0x45907d
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.004ba73f
add esp, 0x10
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x22c]
call fcn.0045914a
pop ecx
cmp eax, 0x50
jne 0x45907d
mov eax, 0x80020013
jmp 0x45913c
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5712a0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4590a6
call fcn.00458cbc
jmp 0x45913c
mov byte [ebp - 0x115], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0x101
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
call fcn.004ba73f
add esp, 0x10
mov dword [ebp - 0x230], eax
push dword [ebp - 0x230]
call fcn.0045914a
pop ecx
mov dword [ebp - 0x224], 0xc
and dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10c], ecx
push 0
lea eax, [ebp - 0x224]
push eax
push 0x2100
push 2
push 0
mov eax, dword [ebp - 0x238]
push dword [eax + 0x10c]
mov eax, dword [ebp - 0x238]
add eax, 8
push eax
mov ecx, dword [ebp - 0x238]
call fcn.0045919d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 8
Function at 0x45944c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x450], ax
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call fcn.004b7da0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x450]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov dword [0x5c2ac4], eax
mov eax, dword [ebp + 0xc]
mov dword [0x5c2ac8], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00459582
pop ecx
pop ecx
push 0xffffffffffffffff
push 0xf754f013
push 0x804
push 1
push 1
push dword [ebp - 0x238]
mov eax, dword [ebp - 0x23c]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0x23c]
shr eax, 0x10
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x450]
push eax
push 0x5712cc
push 0x5712e0
call fcn.00460128
add esp, 0x30
push 0x989681
call fcn.00460a37
pop ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004b7da0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00459690
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x210]
push eax
push 0x5712e8
call fcn.0045ff3e
add esp, 0xc
push 3
call fcn.0045ff1e
pop ecx
call fcn.004609a9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret

Function at 0x459582
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x459597
xor eax, eax
jmp 0x459618
mov dword [ebp - 8], 0x34
and dword [ebp - 0xc], 0
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x459615
push dword [ebp - 4]
call fcn.004a518c
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x459606
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5712f0
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x459606
mov esi, dword [ebp - 0x10]
push 0xd
pop ecx
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.004b7e54
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x45ff3e
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x45ff5e
xor eax, eax
jmp 0x4600e0
mov dword [ebp - 8], str.SOFTWARETencent_bugReport_
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [ebp - 8]
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004ba78a
add esp, 0xc
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004b7e5f
pop ecx
mov ecx, 0x104
sub ecx, eax
push ecx
push dword [ebp - 8]
call fcn.004b7e5f
pop ecx
lea eax, [ebp + eax*2 - 0x218]
push eax
call fcn.004ba7ed
add esp, 0xc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460036
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460036
xor eax, eax
jmp 0x4600e0
push dword [ebp + 0xc]
call fcn.004b7e5f
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.InstallDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x460075
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4600e0
cmp dword [ebp + 0x10], 0
je 0x4600c6
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, eax
je 0x4600c6
push dword [ebp + 0x10]
call fcn.004b7e5f
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push 0x571520
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4600c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4600e0
jmp 0x4600d4
push str.ExcDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b2f5a
leave
ret
Function at 0x46062a
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x460649
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004b7da0
add esp, 0xc
mov dword [ebp - 0x20], 0x1c
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4606d1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x4606c1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
je 0x4606c1
push dword [ebp - 0x18]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4606c1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x460685
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret
Function at 0x476350
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4763a2
mov eax, dword [esp]
cmp al, 2
jne 0x47639c
shr eax, 8
cmp al, 2
jne 0x47639c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b2f5a
add esp, 0x194
ret
Function at 0x482990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4829c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x482b60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x298], 0
push edi
je case.default.0x482bc0
test eax, eax
je case.default.0x482bc0
mov eax, dword [eax + 0x84]
test eax, eax
je case.default.0x482bc0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x482bc0
jmp dword [edx*4 + 0x482cdc]
mov ecx, str.Header
mov edx, str.from
jmp 0x482bdd
mov ecx, str.Header
mov edx, 0x5744b4
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.0048b460
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482c00
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482c55
mov ecx, dword [esi + 0xf4]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x482cc0
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482c83
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x482cc0
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x574490
call fcn.004b4592
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.004b4592
add esp, 0x20
jmp case.default.0x482bc0
test ebx, ebx
js 0x482cbe
cmp ebx, 2
jg 0x482cbe
mov eax, dword [esi + 0xf0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x574490]
push 2
push ecx
call fcn.004b4592
mov edx, dword [esi + 0xf0]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.004b4592
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0xa4
ret
Function at 0x482d80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x55c]
push 0x4000
push ebx
call fcn.0048b400
mov eax, dword [esi + 0xf8]
add esp, 0x10
test eax, eax
je 0x482de0
cmp dword [esi + 0x8588], 0
jne 0x482de0
push ebx
push 0x5713f8
push 0x100
push eax
call fcn.0048b460
add esp, 0x10
mov dword [esi + 0x8588], 1
cmp dword [esi + 0x2e4], 0
je 0x482e67
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482df0
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x482e14
mov byte [esi + edi + 0x55c], 0xa
inc edi
mov byte [esi + edi + 0x55c], cl
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482e3e
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.004b2f5a
pop ecx
ret
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x574490
call fcn.004b4592
mov ecx, dword [esi + 0xf0]
push ecx
push 1
push edi
push ebx
call fcn.004b4592
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
pop ecx
ret
Function at 0x482ffe
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.0048bf30
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x482edd
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004b2f5a
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482ee0
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x134]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x148]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x482f46
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x483029
cmp eax, 0x51
jne 0x483023
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x2e4], ecx
je 0x482fde
cmp dword [esi + 0x298], ecx
je 0x482fbf
mov eax, dword [ebx + 0x84]
cmp eax, ecx
je 0x482fbf
push eax
push 0x5744b4
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.0048b460
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482f91
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482ff5
mov ecx, dword [esi + 0xf4]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x482fde
mov eax, dword [esi + 0x164]
test eax, eax
je 0x482fde
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x483031
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x482ef0
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x574490
call fcn.004b4592
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.004b4592
add esp, 0x20
jmp 0x482fbf
mov dword [esp + 0x14], eax
jmp 0x483031
mov dword [esp + 0x14], 0x37
push edi
call dword [0x5b4654]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0xb8
ret