joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410177
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4518f8
call fcn.0044ca14
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
push eax
mov eax, edi
call fcn.00410164
mov eax, dword [edi + 0x50]
sub eax, 0
je 0x4102d3
dec eax
je 0x4101af
dec eax
je 0x410214
dec eax
jne 0x4102e6
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [edi + 0xbc]
push 1
push eax
call esi
call ebx
mov ecx, dword [edi + 0x48]
lea edx, [edi + 0x60]
push edx
lea edx, [edi + 0x58]
push edx
lea edx, [edi + 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 0x10], eax
call ebx
sub eax, dword [ebp - 0x14]
push 0
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xbc]
push eax
call esi
mov esi, dword [ebp - 0x10]
mov eax, esi
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 2
jne 0x410269
mov eax, dword [edi + 0x44]
push edi
push esi
push 0x1401
jmp 0x4102de
lea eax, [edi + 0xbc]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call ebx
mov esi, dword [edi + 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x58]
push eax
call fcn.0041ddfd
mov esi, eax
call ebx
sub eax, dword [ebp - 0x10]
push 0
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x64
mov eax, esi
cdq
pop ecx
idiv ecx
push edi
push esi
cmp eax, 2
mov eax, dword [edi + 0x44]
jne 0x4102d9
push 0x1401
jmp 0x4102de
cmp eax, 3
jne 0x4102b9
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi + 0x48]
call fcn.0041d59e
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
lea esi, [edi + 0x7c]
push eax
mov ecx, esi
call fcn.004016f1
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a5
lea ecx, [edi + 0xc]
mov eax, esi
call fcn.004030bb
push edi
push dword [ebp - 0x10]
test eax, eax
mov eax, dword [edi + 0x44]
je 0x4102d9
push 0x1403
jmp 0x4102de
push esi
push str.ret:__d_n
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x10
push edi
push esi
jmp 0x4102d6
push edi
push 0
mov eax, dword [edi + 0x44]
push 0x1402
push dword [eax]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call ebx
push eax
mov eax, edi
call fcn.00410164
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4109c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
or dword [ebp + 0xc], 0xffffffff
push edi
push 0
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x410a41
call edi
test eax, eax
je 0x410a41
push 0x45957c
push 0x80
push dword [0x468674]
call fcn.00429300
push dword [ebp - 4]
push dword [ebp - 8]
push str.LowPart:__d_HighPart:__d_n
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x20
call edi
mov ecx, dword [esi + 4]
mov dword [ecx + 0x8c], eax
mov eax, dword [esi + 4]
mov dword [eax + 0x90], 2
jmp 0x410a92
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410a97
push dword [ebp + 0x14]
push dword [ebp - 8]
call edi
push eax
push 0x459550
push 0x80
push dword [0x468674]
call fcn.00429300
add esp, 0x18
call edi
mov ecx, dword [esi + 4]
mov dword [ecx + 0x8c], eax
mov eax, dword [esi + 4]
mov dword [eax + 0x90], 1
or eax, 0xffffffff
jmp 0x410a9a
mov eax, dword [ebp + 0xc]
pop edi
leave
ret 0x10
Function at 0x411fdb
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, eax
push edi
lea edi, [esi + 0x158]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x411ffd
push eax
call ebp
or dword [edi], 0xffffffff
cmp byte [esp + 0x30], 0
push 8
pop ebx
je 0x412101
cmp dword [esi + 0x58], ebx
jb 0x412015
mov eax, dword [esi + 0x44]
jmp 0x412018
lea eax, [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp dword [esi + 0x3c], ebx
jb 0x41202b
mov eax, dword [esi + 0x28]
jmp 0x41202e
lea eax, [esi + 0x28]
push eax
call edi
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x412041
push eax
call fcn.0041f7e2
push 0x459740
push ebx
push dword [0x468674]
call fcn.00429300
add esp, 0xc
push dword [esi]
call ebp
push 0x459754
push ebx
push dword [0x468674]
call fcn.00429300
or dword [esi], 0xffffffff
mov eax, dword [esi + 4]
add esp, 0xc
add esi, 8
cmp dword [eax + 0x1690], 3
jne 0x412097
push str.._p4p_
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00414e63
add esp, 0xc
jmp 0x412169
cmp dword [esi + 0x18], ebx
jb 0x4120a1
mov eax, dword [esi + 4]
jmp 0x4120a4
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4120ca
cmp dword [esi + 0x18], ebx
jb 0x4120b9
mov eax, dword [esi + 4]
jmp 0x4120bc
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x4120ca
xor al, al
jmp 0x412188
push str.._p4p_
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00414e63
add esp, 0xc
cmp dword [esi + 0x18], ebx
jb 0x4120e7
mov esi, dword [esi + 4]
jmp 0x4120ea
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x4120f4
mov eax, dword [eax + 4]
jmp 0x4120f7
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x412179
cmp dword [esi + 0x58], ebx
jb 0x41210b
mov eax, dword [esi + 0x44]
jmp 0x41210e
lea eax, [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp dword [esi + 0x3c], ebx
jb 0x412121
mov eax, dword [esi + 0x28]
jmp 0x412124
lea eax, [esi + 0x28]
push eax
call edi
push 0x459740
push ebx
push dword [0x468674]
call fcn.00429300
add esp, 0xc
push dword [esi]
call ebp
push 0x459754
push ebx
push dword [0x468674]
call fcn.00429300
or dword [esi], 0xffffffff
push str.._p4p_
add esi, 8
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00414e63
add esp, 0x18
cmp dword [eax + 0x18], ebx
jb 0x412173
mov eax, dword [eax + 4]
jmp 0x412176
add eax, 4
push eax
call edi
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.004018a6
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x412551
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x451faa
call fcn.0044ca14
sub esp, 0x5c
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 0xbc]
push edi
cmp eax, esi
je 0x41257b
push eax
call fcn.0041f7e2
cmp dword [ebx + 0x154], esi
je 0x4125b2
push 1
call fcn.00413ef5
mov esi, dword [ebx + 0x154]
lea eax, [ebp - 0x30]
push eax
call fcn.00427450
pop ecx
push dword [ebx + 0x154]
call fcn.0043a3dd
and dword [ebx + 0x154], 0
pop ecx
jmp 0x4126b0
lea eax, [ebp - 0x48]
push eax
mov edi, 0x10000
call fcn.00414290
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
jne 0x4125d4
call fcn.0043b0d6
mov eax, dword [ebp - 0x3c]
push 0x58
mov dword [ebp - 0x14], eax
call fcn.0043a403
pop ecx
mov dword [ebx + 0x154], eax
call fcn.00427380
push esi
push esi
push esi
push dword [ebx]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x412671
cmp dword [ebp - 0x10], 0
je 0x412681
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xf4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41264b
fild qword [ebp - 0x28]
fmul qword [0x45b210]
fild qword [ebx + 0xb0]
fdivp st(1)
call fcn.0044cc30
push eax
mov eax, dword [ebx + 4]
push dword [eax + 0xf8]
push 0x2430
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x154]
call fcn.004273b0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x28], eax
pop ecx
push 0
adc dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebx]
call esi
test eax, eax
jne 0x412607
mov esi, dword [ebx + 0x154]
lea eax, [ebp - 0x30]
push eax
call fcn.00427450
pop ecx
push dword [ebx + 0x154]
call fcn.0043a3dd
and dword [ebx + 0x154], 0
pop ecx
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004140d3
mov ecx, dword [ebp + 8]
push 0x45842a
call fcn.0040162e
xor edi, edi
xor ebx, ebx
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
xor esi, esi
movzx eax, byte [ebp + esi - 0x30]
push eax
lea eax, [ebp - 0x18]
push 0x459770
push eax
call fcn.0043c1c2
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040162e
push 0xffffffffffffffff
push ebx
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
call fcn.00402eb1
push ebx
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.004017a5
inc esi
cmp esi, 0x10
jl 0x4126ca
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x413ef5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x451f77
call fcn.0044ca14
sub esp, 0x28
or eax, 0xffffffff
push esi
push edi
cmp dword [ebx + 0x158], eax
je 0x414038
mov eax, dword [ebx + 0x150]
cmp eax, dword [ebx + 0xb8]
jge 0x414036
xor esi, esi
cmp dword [ebx + 0x154], esi
je 0x414036
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x16d8]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], edi
call fcn.00414290
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], esi
jne 0x413f5b
call fcn.0043b0d6
mov eax, dword [ebx + 0x150]
cmp eax, dword [ebx + 0xb8]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
jge 0x41402e
lea esi, [ebx + 0x138]
mov eax, dword [ebx + 0x150]
shr eax, 3
push eax
call fcn.0040ede3
mov ecx, dword [ebx + 0x150]
movsx eax, byte [eax]
xor edx, edx
and ecx, 7
inc edx
shl edx, cl
test eax, edx
je 0x41402e
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push edi
push dword [ebx + 0x158]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414057
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x154]
push edi
call fcn.004273b0
mov eax, dword [ebx + 4]
cmp dword [eax + 0x1690], 3
pop ecx
jne 0x413ff6
mov ecx, dword [eax + 0x1850]
test ecx, ecx
je 0x413ff6
push dword [eax + 0x1870]
push dword [ebp - 0x10]
push edi
call ecx
add esp, 0xc
jmp 0x413ff8
xor eax, eax
test eax, eax
jl 0x414048
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx + 0x150]
inc dword [ebp - 0x14]
cmp byte [ebp + 8], 0
jne 0x41401c
cmp dword [ebp - 0x14], 0x2800
jge 0x41402e
mov eax, dword [ebx + 0x150]
cmp eax, dword [ebx + 0xb8]
jl 0x413f79
lea esi, [ebp - 0x30]
call fcn.004140d3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
push 0xfffffffffffffffe
pop edi
lea esi, [ebp - 0x30]
call fcn.004140d3
mov eax, edi
jmp 0x414038
push 0xfffffffffffffffd
jmp 0x41404a

Function at 0x415517
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x45172f
call fcn.0044ca14
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov dword [esi], eax
mov al, byte [ebp + 0x10]
lea ecx, [esi + 8]
mov byte [esi + 4], al
call fcn.00401650
push dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 4], eax
or dword [esi + 0x28], 0xffffffff
lea ecx, [esi + 0x54]
mov dword [esi + 0x24], 0x64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
call fcn.00401650
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x418ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [esi + 0x1690], 3
push edi
je 0x418ed6
mov eax, dword [esi + 0x16d8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebx + 4]
push dword [esi + 0x1698]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418f11
jmp 0x418f0d
mov edi, dword [esi + 0x1850]
test edi, edi
je 0x418f2f
cmp dword [esi + 0x1694], 0
je 0x418ef4
push dword [ebx]
mov ecx, esi
call fcn.0040810d
jmp 0x418efa
mov eax, dword [esi + 0x16d8]
push dword [esi + 0x1870]
push eax
push dword [ebx + 4]
call edi
add esp, 0xc
test eax, eax
jge 0x418f11
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x418f2f
push 0x28
push 0
push 0x1441
push dword [esi]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
xor eax, eax
jmp 0x418fe4
lea eax, [esi + 0x1640]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x16d8]
mov ecx, dword [edi]
lea eax, [esi + 0x628]
add dword [eax], ecx
adc dword [eax + 4], 0
lea eax, [esi + 0x1640]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi]
lea eax, [esi + 0xb8]
add dword [eax], ecx
adc dword [eax + 4], 0
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x418fbc
cmp byte [esi + 0xf0], 0
je 0x418fbc
mov ecx, dword [ebx]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0xf8]
push 0x2411
push eax
call edi
mov eax, dword [ebx]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xf8]
push 0x2410
push dword [esi + 0xf4]
call edi
cmp dword [esi + 0x1690], 3
jne 0x418fe1
mov eax, dword [esi + 0x1694]
test eax, eax
je 0x418fe1
mov eax, dword [eax + 0xb8]
dec eax
cmp dword [ebx], eax
jne 0x418fe1
push 0
jmp 0x418f19
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x418fe7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [edi + 0xc], 0x1f3
push ebx
jne 0x4190c2
mov ecx, dword [edi + 8]
xor ebx, ebx
cmp ecx, ebx
jbe 0x41908e
cmp dword [esi + 0x1690], 3
mov dword [ebp - 4], ebx
je 0x41902e
push ebx
lea eax, [ebp - 4]
push eax
push ecx
push dword [edi + 4]
push dword [esi + 0x1698]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41904f
jmp 0x41904b
mov eax, dword [esi + 0x1850]
cmp eax, ebx
je 0x41905a
push dword [esi + 0x1870]
push ecx
push dword [edi + 4]
call eax
add esp, 0xc
test eax, eax
jge 0x41904f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x41905a
push 0x28
push ebx
jmp 0x4190c6
lea ebx, [esi + 0x1640]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
lea eax, [esi + 0x628]
add dword [eax], ecx
push ebx
adc dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 8]
lea eax, [esi + 0xb8]
add dword [eax], ecx
adc dword [eax + 4], 0
xor ebx, ebx
mov eax, dword [esi + 0xf4]
cmp eax, ebx
je 0x4190bf
cmp byte [esi + 0xf0], 0
je 0x4190bf
mov ecx, dword [edi]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xf8]
mov dword [ebp - 4], ebx
push 0x2411
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
jmp 0x419057
push 0x33
push 0
push 0x1441
push dword [esi]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
xor eax, eax
pop ebx
leave
ret
Function at 0x41953f
Capabilities:
Get file size

Disassembly:
mov eax, 0x4518f8
call fcn.0044ca14
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41957c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x14], ebx
je 0x419592
or eax, 0xffffffff
push esi
cmp dword [ebp + 0xc], eax
je 0x4195a0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41956c
lea eax, [ebp - 0x30]
push eax
call fcn.00419494
pop ecx
pop ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
call fcn.004030bb
test eax, eax
je 0x4195d8
mov byte [ebp - 0xd], 1
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004017a5
mov al, byte [ebp - 0xd]
jmp 0x41956e
mov byte [ebp - 0xd], bl
jmp 0x4195c8
Function at 0x41b178
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x451a8e
call fcn.0044ca14
mov eax, dword [edi]
sub esp, 0xc
push ebx
push esi
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
cmp dword [edi + 0x204], ebx
je 0x41b278
mov ecx, dword [edi + 0xe8]
cmp ecx, ebx
je 0x41b1b2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xe8], ebx
push 0xc
call fcn.0043a403
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x41b1cd
call fcn.004218e6
jmp 0x41b1cf
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0xe8], eax
mov byte [edi + 0xef], bl
cmp byte [edi + 0x1ec], bl
jne 0x41b23f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esp, 0x1c
lea esi, [edi + 0x104]
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.00401650
call fcn.0041d22d
add esp, 0x1c
push dword [edi + 0x120]
mov ecx, esi
push dword [edi + 0xe8]
mov byte [ebp - 0xe], al
call fcn.00421990
mov byte [ebp - 0xd], al
cmp byte [edi + 0xef], bl
jne 0x41b254
cmp byte [edi + 0xac], bl
je 0x41b254
cmp byte [ebp - 0xe], bl
je 0x41b254
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41b254
push dword [edi + 0x194]
lea ecx, [edi + 0x178]
push eax
call fcn.00421990
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], bl
je 0x41b278
cmp byte [edi + 0xef], bl
jne 0x41b278
mov byte [edi + 0xec], bl
mov byte [edi + 0xef], bl
mov byte [edi + 0x100], 1
xor eax, eax
jmp 0x41b27b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41dc77
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov eax, ebx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dc7e
sub eax, esi
mov edi, eax
xor esi, esi
test edi, edi
jle 0x41dcab
push 0
push edi
lea eax, [esi + ebx]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41dcb0
add esi, eax
cmp esi, edi
jl 0x41dc8f
mov eax, esi
pop edi
pop esi
ret
or eax, 0xffffffff
jmp 0x41dcad

Function at 0x41dd7c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
sub esp, 0x194
push edi
xor eax, eax
push 0x3c
push eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
push eax
call fcn.0043ae00
mov edi, 0x1000
push edi
call fcn.0043a3d2
push edi
mov dword [esi + 0x20], eax
call fcn.0043a3d2
push edi
mov dword [esi + 0x2c], eax
call fcn.0043a3d2
push edi
mov dword [esi + 0x34], eax
call fcn.0043a3d2
add esp, 0x1c
mov dword [esi + 0x3c], eax
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41ddf6
push str.An_error_occured_at_WSAStartup___function__n
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41e61c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Parse url
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0043b380
push ebx
push esi
push 0xfff
xor esi, esi
lea eax, [ebp - 0x100f]
push esi
push eax
mov byte [ebp - 0x1010], 0
call fcn.0043ae00
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.0041e5bc
lea ecx, [ebx + 0x10]
push ecx
push esi
mov eax, 0x1000
push esi
push dword [ebp + 0xc]
mov dword [ecx], 0x3c
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x40], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x41e685
or eax, 0xffffffff
jmp 0x41e7c4
push edi
cmp dword [ebx + 0x30], esi
jne 0x41e6a4
mov edi, dword [ebx + 0x2c]
mov esi, str.anonymous
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebx + 0x34]
mov esi, str.you_youraddr.com
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 6
push 1
push 2
pop esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
or edi, 0xffffffff
mov dword [ebx], eax
cmp eax, edi
jne 0x41e6c2
mov eax, edi
jmp 0x41e7c3
push dword [ebx + 0x20]
mov eax, esi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x41e6f3
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41e7b6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
movzx eax, word [ebx + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
je 0x41e7b6
push dword [ebx]
lea edi, [ebp - 0x1010]
call fcn.0041dd2d
pop ecx
cmp eax, 0xdc
jne 0x41e7b6
push dword [ebx + 0x2c]
mov eax, edi
push str.USER__s_r_n
push eax
call fcn.0043c1c2
push dword [ebx]
mov ebx, edi
call fcn.0041dc77
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0041dd2d
add esp, 0x14
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, esi
je 0x41e796
cmp eax, 3
jne 0x41e7b3
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
mov eax, ebx
push str.PASS__s_r_n
push eax
call fcn.0043c1c2
push dword [edi]
call fcn.0041dc77
push dword [edi]
mov edi, ebx
call fcn.0041dd2d
add esp, 0x14
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, esi
jne 0x41e7b3
mov eax, dword [ebp + 8]
push 0xfff
push dword [ebp + 0xc]
add eax, 0x104c
push eax
call fcn.0043c7a0
add esp, 0xc
xor eax, eax
jmp 0x41e7c3
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov dword [ebx], eax
pop edi
pop esi
pop ebx
leave
ret 8