joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
lea eax, [ebp - 0x20c]
push esi
push edi
push eax
push 0
push 0
push 0x8005
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [edi + 0x38], 8
jb 0x414ae0
mov ecx, dword [edi + 0x24]
jmp 0x414ae3
lea ecx, [edi + 0x24]
push 0xb
push str.SHADOWARENA
push dword [edi + 0x34]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
jne 0x414b01
push str.Shadow_Arena_
jmp 0x414b32
cmp dword [edi + 0x50], 8
jb 0x414b0c
mov ecx, dword [edi + 0x3c]
jmp 0x414b0f
lea ecx, [edi + 0x3c]
push 2
push 0x4d56a4
push dword [edi + 0x4c]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
jne 0x414b2d
push str.Black_Desert_Lab_
jmp 0x414b32
push str.Black_Desert_
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x208
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.0049edb0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x514]
push 0x104
push eax
call fcn.004b0409
add esp, 0x18
lea eax, [ebp - 0x514]
push str.EventLog.txt
push eax
call esi
push 0x4d5710
lea eax, [ebp - 0x514]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
call fcn.004a77d8
mov esi, dword [ebp - 4]
add esp, 0xc
test esi, esi
jne 0x414bb3
mov dword [edi + 0xa0], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.0049edb0
push 0x400
lea eax, [ebp - 0x914]
push 0
push eax
call fcn.0049edb0
push 0x100
lea eax, [ebp - 0x30c]
push eax
push 0x4d5714
push esi
call fcn.00419a60
push 0x100
lea eax, [ebp - 0x914]
push eax
push 0x4d571c
push dword [ebp - 4]
call fcn.00419a60
add esp, 0x38
test eax, eax
js 0x414c25
lea eax, [ebp - 0x914]
push eax
call fcn.004b1a39
add esp, 4
mov dword [edi + 0xa0], eax
push dword [ebp - 4]
call fcn.004b1ad9
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.004b208f
add esp, 0xc
test eax, eax
je 0x414c68
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
call fcn.004b2601
mov esi, eax
add esp, 4
test esi, esi
jns 0x414c85
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x414c91
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 1]
push edi
push eax
call fcn.00424518
mov edi, eax
add esp, 4
test edi, edi
jne 0x414cb0
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.004b208f
push ebx
push esi
push 1
push edi
call fcn.004b1d25
add esp, 0x1c
cmp eax, esi
je 0x414ce6
push edi
call fcn.00424050
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004147a0
push edi
mov esi, eax
call fcn.00424050
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.004b208f
add esp, 0xc
test eax, eax
je 0x414d38
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
call fcn.004b2601
mov esi, eax
add esp, 4
test esi, esi
jns 0x414d55
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x414d61
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 1]
push edi
push eax
call fcn.00424518
mov edi, eax
add esp, 4
test edi, edi
jne 0x414d80
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.004b208f
push ebx
push esi
push 1
push edi
call fcn.004b1d25
add esp, 0x1c
cmp eax, esi
je 0x414db6
push edi
call fcn.00424050
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00414900
push edi
mov esi, eax
call fcn.00424050
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b500
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 8], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41b739
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push ecx
push eax
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41b739
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x4d5f9c
lea eax, [ebp - 0x214]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b586
test dx, dx
je 0x41b582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b586
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b560
xor eax, eax
jmp 0x41b58b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b59e
test esi, esi
jne 0x41b6f3
mov dword [ebp - 8], 1
mov ecx, str.BlackDesertPatcher32.pae
lea eax, [ebp - 0x214]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b5d6
test dx, dx
je 0x41b5d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b5d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b5b0
xor eax, eax
jmp 0x41b5db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b62c
cmp dword [ebp - 4], eax
jne 0x41b62c
push 4
push str.Launcher
push 0x58
call fcn.00419de0
add esp, 4
push eax
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41b730
push dword [ebp - 0x230]
push 0
push 1
call edi
mov esi, eax
push 9
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
mov ecx, str.PERS.exe
lea eax, [ebp - 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b65d
test dx, dx
je 0x41b659
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b65d
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b637
xor eax, eax
jmp 0x41b662
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b67f
push dword [ebp - 0x230]
push eax
push 1
call edi
mov esi, eax
push 9
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, str.dotNetFx45_Full_setup.exe
lea eax, [ebp - 0x214]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b6b6
test dx, dx
je 0x41b6b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b6b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b690
xor eax, eax
jmp 0x41b6bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b6d8
push dword [ebp - 0x230]
push eax
push 1
call edi
mov esi, eax
push 9
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x41b739
mov esi, dword [ebp - 8]
jmp 0x41b552
push 4
push str.Launcher
push 0x57
call fcn.00419de0
add esp, 4
push eax
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41b730
push dword [ebp - 0x230]
push 0
push 1
call edi
mov esi, eax
push 9
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf27b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov esi, eax
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0049e830
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x41ba21
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x41ba23
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41e750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41e780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x41e85c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x41e7fe
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x41e853
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041e720
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x41e851
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x41e87a
jmp 0x41e7f5
mov dword [ebp - 0x10], 0
jmp 0x41e877
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41fc80
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
lea eax, [ebp - 0x820]
push 0x800
push 0
push eax
call fcn.0049edb0
push dword [ebp + 8]
lea eax, [ebp - 0x820]
push 0x400
push eax
call fcn.004b0409
lea eax, [ebp - 0x820]
add esp, 0x18
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fcc0
sub eax, edx
mov dword [ebp - 0x1c], 3
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov word [ebp + eax*2 - 0x81e], cx
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41fd21
push dword [ebp + 8]
push eax
push str.RemoveFileErrorLog._ErrorCode_:__d__s_
push 3
push 0x57
call fcn.00423ab0
add esp, 0x14
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x41fd30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004245e0
push 0x800
lea eax, [ebp - 0x820]
push 0
push eax
call fcn.0049edb0
push 0x800
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.0049edb0
push dword [ebp + 8]
lea eax, [ebp - 0x820]
push 0x400
push eax
call fcn.004b0409
push dword [ebp + 0xc]
lea eax, [ebp - 0x1020]
push 0x400
push eax
call fcn.004b0409
lea ecx, [ebp - 0x1020]
add esp, 0x30
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fd97
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [ebp + ecx*2 - 0x101e], ax
lea ecx, [ebp - 0x820]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fdc0
sub ecx, edx
mov dword [ebp - 0x1c], 4
xor eax, eax
sar ecx, 1
mov dword [ebp - 0x20], eax
mov word [ebp + ecx*2 - 0x81e], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41fe27
push eax
push str.RenameFileErrorLog._ErrorCode_:__d
push 3
push 0x84
call fcn.00423ab0
add esp, 0x10
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x420c80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x208
push 0
push eax
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x420cf4
push eax
push str.Launcher
push 0x54
call fcn.00419de0
add esp, 4
push eax
push dword [0x501ef8]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x423320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0x4d6400
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x423379
mov ecx, esi
call fcn.00423620
push 0x40
push 0x4d6fd0
push 0x4d5a18
call fcn.004a781f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x423358
xor al, al
pop esi
ret
push 0x4d3608
push esi
call fcn.00423670
push esi
call fcn.004b1ad9
add esp, 0xc
push 0
push str.locales
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
pop esi
ret

Function at 0x423380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cfaf7
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x501efc]
test eax, eax
jne 0x4233d3
push 0x58
call fcn.0042400f
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4233c5
mov ecx, eax
call fcn.00421c50
jmp 0x4233c7
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x501efc], eax
push 1
push str.patcher_version_tmp
push 0x4d6400
push 0x4d374c
mov ecx, eax
call fcn.00422ab0
test al, al
jne 0x42345f
push 0x35
call fcn.00419de0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.00403840
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 3
push 0x94
call fcn.00423ab0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push str.Launcher
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x4d6400
push str.Failed_to_download_patcher_version_information._:__s
push 3
push 0x96
call fcn.00423ab0
add esp, 0x10
push 0xffffffffffffffff
call fcn.004b59ad
push esi
push 0x40
push 0x4d5710
push str.patcher_version_tmp
call fcn.004a781f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4234b4
mov edx, dword [ebp + 8]
lea ecx, [edx + 4]
push ecx
push edx
push str._d_d
push esi
call fcn.00419a60
push esi
call fcn.004b1ad9
add esp, 0x14
push str.patcher_version_tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.patcher_version_tmp
push str.Failed_to_read_patcher_version_information._:__s
push 3
push 0x9f
call fcn.00423ab0
add esp, 0x10
push 0
push str.Launcher
push str.Failed_to_read_patcher_version_information.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x43b91a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x45bd20
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
push edi
xor edi, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
test ebx, ebx
je 0x45bd85
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
call esi
test eax, eax
jne 0x45bd85
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call esi
test eax, eax
jne 0x45bd85
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.0045cc40
push dword [ebp - 0x20]
push eax
call fcn.0045c460
add esp, 0x10
mov ecx, eax
jmp 0x45bd87
xor ecx, ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45bf01
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x24], ecx
cmp dword [ecx], edi
je 0x45bf01
push eax
call fcn.0045ce00
add esp, 4
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
call esi
test eax, eax
jne 0x45bdc7
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call esi
test eax, eax
jne 0x45bdc7
xor cl, cl
jmp 0x45bdc9
mov cl, 1
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x15], cl
mov esi, dword [esi]
test esi, esi
je 0x45bee5
nop dword [eax]
cmp byte [esi + 0x2d], 0
je 0x45bdee
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x45be5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45be2a
cmp byte [esi + 0x2c], 0
je 0x45be1a
test cl, cl
jne 0x45be0d
push ebx
push eax
call fcn.0045cfd0
add esp, 8
test al, al
jne 0x45be2a
cmp byte [esi + 0x2c], 0
je 0x45be1a
mov cl, byte [ebp - 0x15]
test cl, cl
je 0x45be5f
push dword [esi + 0x14]
push ebx
call fcn.0046ade0
add esp, 8
test eax, eax
je 0x45be64
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45be41
push dword [ebp - 0x28]
push eax
call fcn.0045cd00
add esp, 8
test al, al
je 0x45be64
push esi
call fcn.0045ca00
add esp, 4
test eax, eax
je 0x45bef8
mov dword [eax], edi
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x45be67
mov eax, dword [ebp - 0x1c]
jmp 0x45be6a
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x15]
mov esi, dword [esi]
test esi, esi
jne 0x45bde0
test eax, eax
je 0x45bee5
shl eax, 2
push eax
mov dword [ebp - 0x28], eax
call dword [0x4ff158]
mov esi, eax
add esp, 4
test esi, esi
je 0x45bef8
test edi, edi
je 0x45be9f
mov ecx, esi
mov dword [ecx], edi
lea ecx, [ecx + 4]
mov edi, dword [edi]
test edi, edi
jne 0x45be94
mov ebx, dword [ebp - 0x1c]
push 0x45c880
push 4
push ebx
push esi
call fcn.004ba850
mov edi, dword [esi]
add esp, 0x10
xor edx, edx
add ebx, 0xffffffff
je 0x45bece
nop dword [eax]
mov ecx, dword [esi + edx*4]
mov eax, dword [esi + edx*4 + 4]
inc edx
mov dword [ecx], eax
cmp edx, ebx
jb 0x45bec0
mov eax, dword [ebp - 0x28]
push esi
mov eax, dword [eax + esi - 4]
mov dword [eax], 0
call dword [0x4ff15c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
push edi
call fcn.0045bcb0
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret
Function at 0x45c460
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x45c4b3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.0046ad90
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x45c476
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x45c990
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45c9ef
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x45c9ef
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x45c9ef
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0045cc40
push dword [ebp - 0x18]
push eax
call fcn.0045c460
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004250dc
mov esp, ebp
pop ebp
ret

Function at 0x45cca0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x45cce7
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x45cce7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004250dc
mov esp, ebp
pop ebp
ret