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

Disassembly:
push 0xffffffffffffffff
push 0x5a6a33
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xbc]
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4f2540
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0042baa0
mov dword [esp + 0xac], ebx
cmp dword [esp + 0x3c], ebx
jbe 0x4f26de
mov ebp, dword [esp + 0xb8]
xor esi, esi
cmp esi, dword [esp + 0x3c]
jae 0x4f26de
push 1
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x20], 0x7c
call fcn.0042b0a0
mov esi, eax
cmp esi, ebx
jl 0x4f26de
push 2
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x38]
call fcn.0042bb90
push esi
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 1
call fcn.0042bb90
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
mov byte [esp + 0xac], 2
jae 0x4f25db
lea eax, [esp + 0x64]
push eax
call fcn.00583082
mov edi, eax
add esp, 4
cmp edi, 0x37
ja 0x4f2691
lea ecx, [esp + 0x80]
call fcn.0042f0f0
fld1
mov eax, dword [esp + 0x58]
fst dword [esp + 0x20]
lea ecx, [ebp - 2]
fstp dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0xb4]
lea ecx, [eax + edx*2 + 1]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x28]
fild dword [esp + 0x18]
mov byte [esp + 0xac], 3
test ecx, ecx
jns 0x4f2640
fadd dword [0x5b1610]
push ebx
fstp dword [esp + 0x28]
lea edx, [esp + 0x84]
push edx
add edi, 0x94
push edi
mov ecx, 0x6f42b0
call fcn.004346c0
fldz
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push ecx
fstp dword [esp]
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x94]
call fcn.0042f110
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 2
call fcn.0042f100
mov edi, 0x10
add esi, 2
cmp dword [esp + 0x5c], edi
jb 0x4f26ac
mov edx, dword [esp + 0x48]
push edx
call fcn.00582655
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov byte [esp + 0xac], bl
cmp dword [esp + 0x78], edi
jb 0x4f26d6
mov eax, dword [esp + 0x64]
push eax
call fcn.00582655
add esp, 4
cmp esi, ebx
jge 0x4f256e
cmp dword [esp + 0x40], 0x10
jb 0x4f26f2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00582655
add esp, 4
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005825b3
add esp, 0x9c
ret 0xc
Function at 0x4f5420
Capabilities:
Get number of processors

Disassembly:
mov ecx, dword [ecx + 0x228]
jmp 0x470bb0
push 0xffffffffffffffff
push 0x5a25b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x470d6a
cmp dword [ebx + 0x40], 0
lea ecx, [ebp + 0x2e4]
jne 0x470ce4
call fcn.0057d5b0
mov dword [esp + 0x30], eax
test eax, eax
je 0x470c35
jmp 0x470c10
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0x2e4]
call fcn.0057d610
mov esi, dword [eax]
test esi, esi
je 0x470c35
mov eax, dword [ebx + 0x3c]
cmp dword [esi + 8], eax
je 0x470c42
cmp dword [esp + 0x30], 0
jne 0x470c10
push ebx
mov ecx, ebp
call fcn.0046f940
jmp 0x470d63
lea ecx, [esi + 0x10]
call fcn.0057d5b0
mov dword [esp + 0x18], eax
test eax, eax
je 0x470c72
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.0057d610
mov eax, dword [eax]
cmp dword [eax + 0x40], 0
je 0x470d6a
cmp dword [esp + 0x18], 0
jne 0x470c52
mov ebp, 1
push ebx
lea ecx, [esi + 0x10]
mov dword [esi], ebp
call fcn.0057cfd0
add dword [esi + 4], ebp
push 0x48
call fcn.00582660
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
test eax, eax
je 0x470ca8
mov ecx, eax
call fcn.004f9690
jmp 0x470caa
xor eax, eax
mov edx, dword [ebx + 0x3c]
mov ecx, edx
imul ecx, ecx, 0x64
add ecx, 0x63
mov dword [eax + 0x44], ecx
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], 0x63
call fcn.0057d060
mov eax, dword [esp + 0x14]
add dword [esi + 4], ebp
add dword [eax + 0x2e0], ebp
mov ebp, eax
jmp 0x470d63
call fcn.0057d5b0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x470d5b
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebp + 0x2e4]
call fcn.0057d610
mov esi, dword [eax]
test esi, esi
je 0x470d5b
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x3c]
je 0x470d18
cmp dword [esp + 0x1c], 0
jne 0x470cf1
jmp 0x470d5b
lea ecx, [esi + 0x10]
call fcn.0057d5e0
mov ebp, eax
test ebp, ebp
je 0x470d57
lea ecx, [esi + 0x10]
call fcn.0057d560
mov eax, dword [eax]
cmp dword [eax + 0x40], 0x63
push ebx
lea ecx, [esi + 0x10]
jne 0x470d49
push ebp
call fcn.0057d230
inc dword [esi + 4]
mov ebp, dword [esp + 0x14]
jmp 0x470d63
call fcn.0057d060
inc dword [esi + 4]
mov ebp, dword [esp + 0x14]
jmp 0x470d63
mov ebp, dword [esp + 0x14]
push ebx
mov ecx, ebp
call fcn.0046fa40
mov ecx, ebp
call fcn.00470750
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov ecx, dword [0x6e744c]
jmp 0x46f480
Function at 0x4fb750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a75c3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
movzx edi, word [esp + 0x40]
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0042f0f0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], 0
cmp eax, 3
ja case.default.0x4fb7a1
jmp dword [eax*4 + 0x4fb88c]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, 0x6f54b8
call fcn.004af680
jmp case.default.0x4fb7a1
push 0
lea edx, [esp + 0x10]
push edx
push 0x59
jmp 0x4fb7dd
push 0
lea eax, [esp + 0x10]
push eax
push 0x58
jmp 0x4fb7dd
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x5b
mov ecx, 0x6f42b0
call fcn.004346c0
mov esi, dword [esi + 0x234]
movzx edx, word [esi + 0x226]
movzx eax, word [esi + 0x224]
imul edx, eax
cmp edi, edx
jl 0x4fb813
push 0
push 0x31
push str.c:userspsk_elp1desktop_src_update_src_client_mh._Interface_cIconGridDialog.h
call fcn.0052b690
add esp, 0xc
mov ecx, dword [esi + 0x220]
mov ecx, dword [ecx + edi*8]
mov edx, dword [esp + 0x10]
lea eax, [ecx + 0x194]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x1c], edx
mov dword [ecx + 0x1b4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0042f100
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005825b3
add esp, 0x30
ret 0xc
Function at 0x4fd060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a7759
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xbc]
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4fd0c0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0042baa0
mov dword [esp + 0xac], ebx
cmp dword [esp + 0x3c], ebx
jbe 0x4fd266
mov ebp, dword [esp + 0xb8]
xor esi, esi
cmp esi, dword [esp + 0x3c]
jae 0x4fd266
push 1
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x20], 0x7c
call fcn.0042b0a0
mov esi, eax
cmp esi, ebx
jl 0x4fd266
push 2
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x38]
call fcn.0042bb90
push esi
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 1
call fcn.0042bb90
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
mov byte [esp + 0xac], 2
jae 0x4fd15b
lea eax, [esp + 0x64]
push eax
call fcn.00583082
mov edi, eax
add esp, 4
cmp edi, 0x37
ja 0x4fd219
lea ecx, [esp + 0x80]
call fcn.0042f0f0
fld dword [0x5bf180]
mov eax, dword [esp + 0x58]
fst dword [esp + 0x20]
lea ecx, [ebp - 2]
fstp dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
lea edx, [eax + eax*2]
add edx, edx
mov dword [esp + 0x18], edx
fstp dword [esp + 0x28]
mov byte [esp + 0xac], 3
fild dword [esp + 0x18]
jns 0x4fd1b9
fadd dword [0x5b1610]
fild dword [esp + 0xb4]
push ebx
lea eax, [esp + 0x84]
push eax
fadd qword [0x5bf178]
add edi, 0x94
push edi
mov ecx, 0x6f42b0
faddp st(1)
fstp dword [esp + 0x30]
call fcn.004346c0
fldz
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push ecx
push ecx
fstp dword [esp]
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x94]
call fcn.0042f110
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 2
call fcn.0042f100
mov edi, 0x10
add esi, 2
cmp dword [esp + 0x5c], edi
jb 0x4fd234
mov eax, dword [esp + 0x48]
push eax
call fcn.00582655
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov byte [esp + 0xac], bl
cmp dword [esp + 0x78], edi
jb 0x4fd25e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00582655
add esp, 4
cmp esi, ebx
jge 0x4fd0ee
cmp dword [esp + 0x40], 0x10
jb 0x4fd27a
mov edx, dword [esp + 0x2c]
push edx
call fcn.00582655
add esp, 4
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005825b3
add esp, 0x9c
ret 0xc
Function at 0x4feb00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4febd8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x4feb60
cmp dword [esp + 0x10], 0x6060801
je 0x4feb7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005825b3
add esp, 0x18
ret 4
push 0
lea edx, [esp + 0x10]
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4feb61
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4febd7
mov ecx, dword [0x6f48ac]
test ecx, ecx
je 0x4febd7
mov edx, dword [esp + 0x18]
push edx
call fcn.0049b2b0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x6f48ac]
push eax
call fcn.0049a5e0
fld dword [esp + 0x1c]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x719610
call fcn.0055aa40
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.005825b3
add esp, 0x18
ret 4

Function at 0x4febf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x6f48ac]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x4fec8a
call fcn.0049b2a0
fld dword [0x719650]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x6f48ac]
mov cx, word [eax + 0x688]
fstp dword [esp + 0x24]
push 0
push 0x40000000
push esi
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fec8a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x6060801
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.005825b3
add esp, 0x18
ret 4
Function at 0x4ffb7c
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, ecx
test ebx, ebx
je 0x4ffc49
push ebp
push edi
push 0
mov ecx, 0x6e4700
call fcn.005685c0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x14]
push str._sData
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
mov edx, dword [esi + 0x18]
push edx
push 0
mov ecx, 0x6e4700
call fcn.005685c0
push eax
lea eax, [esp + 0x18]
push str._sData_d
push eax
call edi
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
test bl, 1
je 0x4ffc15
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e4700
call fcn.005685c0
push eax
lea edx, [esp + 0x1c]
push str._sData_d_d.UII
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004ff4b0
test bl, 2
je 0x4ffc47
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x6e4700
call fcn.005685c0
push eax
lea ecx, [esp + 0x1c]
push str._sData_d_d.UIS
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004febf0
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.005825b3
add esp, 0x108
ret 4
Function at 0x513bc0
Capabilities:
Delete file

Disassembly:
sub esp, 0x2cc
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push esi
push edi
push 0xff
lea eax, [esp + 0x1dc]
push eax
push 0
mov ebp, ecx
call ebx
lea ecx, [esp + 0x1d8]
push 0x5c
push ecx
call fcn.00584d50
lea edi, [esp + 0x1e0]
add esp, 8
mov byte [eax + 1], 0
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x513c10
mov ecx, 6
mov esi, str.._Ini_AdvancedSet_Cfg.ini
rep movsd dword es:[edi], dword [esi]
push 0xff
lea edx, [esp + 0xdc]
push edx
push 0
movsw word es:[edi], word [esi]
call ebx
lea eax, [esp + 0xd8]
push 0x5c
push eax
call fcn.00584d50
lea edi, [esp + 0xe0]
add esp, 8
mov byte [eax + 1], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x513c55
mov ecx, 7
mov esi, str.._Ini_AdvancedSet_Config.ini
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x1dc]
push str.admin
push edx
movsb byte es:[edi], byte [esi]
call fcn.00513fd0
push 0xc8
lea eax, [esp + 0x20]
push 0
push eax
call fcn.005825d0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [esp + 0x2c]
push ecx
push str.Power
push str.AddPoint
call fcn.0051a3b0
lea edx, [esp + 0x38]
push edx
call fcn.00583082
push 0xc8
mov dword [ebp + 0x24c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.005825d0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [esp + 0x4c]
push ecx
push 0x5bfc80
push str.AddPoint
call fcn.0051a3b0
lea edx, [esp + 0x58]
add esp, 0x48
push edx
call fcn.00583082
push 0xc8
mov dword [ebp + 0x250], eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.005825d0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [esp + 0x24]
push ecx
push 0x5bfc7c
push str.AddPoint
call fcn.0051a3b0
lea edx, [esp + 0x30]
push edx
call fcn.00583082
push 0xc8
mov dword [ebp + 0x254], eax
lea eax, [esp + 0x38]
push 0
push eax
call fcn.005825d0
push str.._Ini_AdvancedSet_Config.ini
lea ecx, [esp + 0x44]
push ecx
push 0x5bfc78
push str.AddPoint
call fcn.0051a3b0
lea edx, [esp + 0x50]
add esp, 0x40
push edx
call fcn.00583082
mov dword [ebp + 0x258], eax
add esp, 4
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005825b3
add esp, 0x2cc
ret
Function at 0x5150d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x5bfed4
push eax
mov esi, ecx
xor bl, bl
call fcn.00582c01
mov edi, eax
add esp, 8
test edi, edi
je 0x51519d
push edi
push 0x118
lea ecx, [esi + 0x14]
push 1
push ecx
call fcn.00582f4b
add esp, 0x10
cmp eax, 0x118
jne 0x51516b
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
lea ecx, [eax + edx*2]
cmp dword [esi + 0x120], ecx
jne 0x51516b
mov edx, dword [esi + 0x124]
push edx
call fcn.00581ac8
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x51516b
push ebp
mov ebp, dword [esi + 0x124]
push edi
push ebp
push 1
push eax
call fcn.00582f4b
add esp, 0x10
cmp ebp, eax
jne 0x51516a
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov bl, 1
pop ebp
push edi
call fcn.00582900
add esp, 4
test bl, bl
jne 0x51518f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x51518f
push eax
call fcn.00582655
add esp, 4
mov dword [esi + 0x10], 0
pop edi
mov byte [esi + 0x128], bl
pop esi
mov al, bl
pop ebx
ret 4
pop edi
pop esi
xor al, al
pop ebx
ret 4

Function at 0x516610
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x5173d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a8720
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e50b4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x517585
cmp byte [esi + 0x49], 0
je 0x517585
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x51756c
push 0
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0
call fcn.0042b230
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.005175b0
mov dword [esp + 0x4c], 1
lea ebx, [esi + 0x4c]
lea ecx, [esp + 0x24]
call fcn.0042b070
cmp dword [esp + 0x38], 0x10
mov ebp, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x24]
jae 0x517475
lea eax, [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00517bd0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
add edi, ebp
push edi
push eax
push ebx
call edx
sub eax, 0
je 0x5174c9
dec eax
je 0x5174cd
sub eax, 2
je 0x51754d
push 0
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 5
call fcn.0042b230
xor al, al
jmp 0x517587
mov byte [esi + 0x49], 0
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
jae 0x5174e0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00517bd0
mov edi, dword [esp + 0x20]
sub edi, dword [esp + 0x14]
je 0x51752e
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x517507
lea eax, [esp + 0x24]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00517bd0
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push 1
push ecx
call fcn.00582acb
add esp, 0x10
cmp edi, eax
jne 0x517557
cmp byte [esi + 0x49], 0
je 0x517570
test edi, edi
jne 0x517457
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.00517110
jmp 0x517457
mov dword [esp + 0x4c], 4
jmp 0x517578
push 0
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 2
call fcn.0042b230
xor al, al
jmp 0x517587
mov dword [esp + 0x4c], 3
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.0042b230
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005825b3
add esp, 0x3c
ret
Function at 0x51a3b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x124]
push edi
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00584d50
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51a411
lea edi, [esp + 0x14]
sub eax, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x51a420
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
push eax
push 0xff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005825b3
add esp, 0x108
ret

Function at 0x51bab0
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x198
mov eax, dword [0x6e50b4]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
xor eax, eax
push 0x18e
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.005825d0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x51bb0c
xor al, al
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005825b3
add esp, 0x198
ret
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x51baf4
push 4
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x18], 0x7d0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x51baf4
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 8]
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x18], 0x7d0
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esp + 0x198]
cmp eax, 0xffffffff
setne al
pop esi
xor ecx, esp
call fcn.005825b3
add esp, 0x198
ret