joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebx + 4]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0xc]
mov eax, 0x456ab0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebx + 0x20], edx
cmp dword [eax], edx
je 0x412636
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x40
jb 0x412621
xor ecx, ecx
xor edx, edx
jmp 0x412648
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, dword [ebp + 8]
xor edi, edi
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41265a
mov eax, dword [esi]
push 0
push 0x80
push dword [ebp - 0xc]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebx + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4126cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x412698
cmp edi, 3
jge 0x4126e7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x412650
cmp eax, 5
jne 0x4126c0
cmp edi, 3
jge 0x4126e7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4126ac
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x412650
test eax, eax
jne 0x4126e7
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x4126e7
lea ecx, [ebx + 0x24]
cmp ecx, esi
je 0x4126e7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4126de
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00405750
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x412780
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x412776
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4127ab
pop edi
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x4127ba
mov dword [ecx], eax
add dword [esi + 0x3c], eax
test eax, eax
jne 0x4127cb
pop edi
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413db0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
call fcn.00401e00
add esp, 8
test al, al
je 0x41402d
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004240d0
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004240d0
add esp, 0x18
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call fcn.00423e50
add esp, 8
test eax, eax
je 0x413e2e
xor ecx, ecx
mov word [eax], cx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
push edi
push 0x44a7a4
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x41402b
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp word [ebp + edi*2 - 0x61e], 0x5c
je 0x413e91
push 0x44a758
lea eax, [ebp - 0x414]
push eax
call esi
push dword [0x45602c]
lea eax, [ebp - 0x414]
push eax
call esi
push 0x43eb60
lea eax, [ebp - 0x414]
push eax
call esi
push 0x458030
lea eax, [ebp - 0x414]
push eax
call esi
push 0x43eb60
lea eax, [ebp - 0x414]
push eax
call esi
push dword [0x456030]
lea eax, [ebp - 0x414]
push eax
call esi
push 0x43eb60
lea eax, [ebp - 0x414]
push eax
call esi
cmp byte [0x456028], 0
mov ecx, 0x450660
mov eax, 0x45065c
cmove eax, ecx
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push 0x44a7a4
lea eax, [ebp - 0x414]
push eax
call esi
push 0x5c
push 0x458440
call fcn.00423e50
mov edi, eax
add esp, 8
test edi, edi
je 0x413f51
push 0x43eb68
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push 0x44a7a4
lea eax, [ebp - 0x414]
push eax
call esi
push 0x5c
push 0x458238
call fcn.00423e50
mov edi, eax
add esp, 8
test edi, edi
je 0x413f8f
push 0x43eb68
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push 0x44a7a4
lea eax, [ebp - 0x414]
push eax
call esi
cmp byte [0x456028], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x65c], xmm0
movlpd qword [ebp - 0x654], xmm0
movlpd qword [ebp - 0x64c], xmm0
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
movlpd qword [ebp - 0x634], xmm0
movlpd qword [ebp - 0x62c], xmm0
movlpd qword [ebp - 0x624], xmm0
mov dword [ebp - 0x660], 0x44
je 0x413ffb
mov eax, 5
mov dword [ebp - 0x634], 1
mov word [ebp - 0x630], ax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x660]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0
movups xmmword [ebp - 0x670], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret
Function at 0x414600
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x40000003
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x400c0003
push 0
push 0
push 0x2000
mov esi, dword [edi]
cmp esi, 0xffffffff
push 0x2000
push 0xff
push 6
cmovne eax, edx
mov dword [ebp - 4], ecx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x414682
cmp esi, eax
jne 0x414677
mov eax, dword [ebp - 4]
push 0
push 0
push 0x2000
push 0x2000
push 0xff
push 0
push 0x40000003
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x414682
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x10000000
push 6
push eax
call fcn.00412320
push 6
push dword [edi]
call fcn.004123a0
add esp, 0x14
xor esi, esi
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4146eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 0x12
je 0x4146e2
cmp eax, 0x217
je 0x4146d9
cmp eax, 0x3e5
jne 0x4146eb
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebx + 0x10]
call edi
test eax, eax
jne 0x4146ed
push dword [ebx + 0x10]
call edi
test eax, eax
jne 0x4146ed
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415f40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c813
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x10], 0
cmp eax, dword [esi + 0x90]
jge 0x416122
lea ebx, [esi + 0x5c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x416122
mov eax, dword [esi + 0x94]
cmp eax, dword [esi + 0x90]
jge 0x4160f6
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4160f6
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x48]
call fcn.004162c0
cmp eax, 0xffffffff
je 0x41610d
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x41610d
inc dword [esi + 0x94]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x41606a
dec dword [esi + 0x94]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41604b
push 0x14
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x416035
push dword [esi + 4]
mov ecx, eax
call fcn.0041b770
jmp 0x416037
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41604b
mov ecx, dword [esi + 4]
push eax
call fcn.00417a30
cmp byte [esi + 0x85], 0
je 0x41605c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x8c], eax
jmp 0x4160e4
cmp byte [esi + 0x84], 0
je 0x4160c0
dec dword [esi + 0x94]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4160c0
push 0x14
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4160aa
push dword [esi + 4]
mov ecx, eax
call fcn.0041b770
jmp 0x4160ac
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4160c0
mov ecx, dword [esi + 4]
push eax
call fcn.00417a30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0x85], 0
mov dword [esi + 0x8c], eax
je 0x4160dd
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov dword [ebp - 0x10], 0
mov eax, dword [esi + 0x94]
cmp eax, dword [esi + 0x90]
jl 0x415fb1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea edi, [esi + 0xa4]
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x98]
mov ebx, eax
lea eax, [esi + 0x98]
mov esi, dword [ecx]
mov dword [ebp - 4], esi
cmp esi, ecx
je 0x417512
mov edi, eax
nop dword [eax]
mov eax, ebx
sub eax, dword [esi + 0x14]
test eax, eax
jle 0x417500
cmp dword [esi + 0x28], 0
je 0x4174d0
mov edx, dword [esi + 0x2c]
lea eax, [esi + 0x18]
mov ecx, eax
cmp edx, 8
jb 0x4174be
mov ecx, dword [eax]
test ecx, ecx
je 0x4174d0
cmp edx, 8
jb 0x4174c9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00415230
push esi
mov ecx, edi
call fcn.00415400
mov esi, eax
lea ecx, [esi + 0x14]
call fcn.00417230
push 0x30
push esi
call fcn.00422026
mov esi, dword [ebp - 4]
add esp, 8
mov dword [ebp - 4], esi
jmp 0x41750b
lea ecx, [ebp - 4]
call fcn.00415230
mov esi, dword [ebp - 4]
cmp esi, dword [edi]
jne 0x4174a0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edi
mov eax, dword [eax + 0xa0]
sub ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
shr ebx, 0x1f
pop edi
xor bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cbcd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 3
push dword [ebp + 0x20]
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0x1c]
mov dword [esi], vtable.t_ipcServerTaskConditionStart.0
push dword [ebp + 0x18]
push edx
call fcn.0040f820
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x30], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0x34], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4182a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cbcd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 3
push dword [ebp + 0x18]
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
push edx
mov dword [esi], vtable.t_ipcServerTaskConditionWait.0
call fcn.0040f6e0
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x2c], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0x30], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x419cd0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
push 0
push 4
mov esi, ecx
push esi
push 0x419d30
push 0
push 0
call fcn.00426051
mov edi, eax
add esp, 0x18
test edi, edi
je 0x419d13
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x419d13
push edi
push dword [esi + 4]
call fcn.004172f0
test al, al
je 0x419d13
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret
push 0x44a78c
push 0
push 0
push 0
push 0xc
mov ecx, esi
call fcn.0041ab90
pop edi
mov eax, 1
pop esi
ret
Function at 0x41aa30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 0x10]
push edi
push 0x20000013
mov dword [ebp - 4], 4
push dword [eax]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41aa61
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0xc8
jne 0x41aa70
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], 0
mov eax, dword [edi]
sub eax, 0x12c
cmp eax, 0x63
ja 0x41aab3
push esi
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a790
add esp, 0x18
test al, al
je 0x41aab2
inc esi
cmp esi, 5
jl 0x41aa90
pop esi
cmp dword [ebx], 0
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41b260
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0
push 4
mov esi, ecx
push esi
push 0x41b2a0
push 0
push 0
call fcn.00426051
add esp, 0x18
test eax, eax
jne 0x41b291
push 0x44a78c
push eax
push 0xc
mov ecx, esi
call fcn.0041b2e0
or eax, 0xffffffff
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
Function at 0x41b920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cf98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 3
lea esi, [ecx + 0x10]
mov dword [ecx], vtable.t_ipcServerTaskReplySGT.0
push 3
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
call fcn.0040e8c0
mov dword [esi], vtable.t_taskMsgReplySGT.0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
movups xmmword [esi + 0x34], xmm0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
mov byte [ebp - 4], 1
mov dword [esi + 0x74], eax
lea ecx, [esi + 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], eax
call fcn.004066d0
push dword [ebp + 0x20]
lea ecx, [esi + 0x44]
call fcn.004066d0
push dword [ebp + 0x24]
lea ecx, [esi + 0x5c]
call fcn.004066d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41d360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d304
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
call fcn.00414110
mov ebx, dword [ebp + 8]
mov edi, eax
test ebx, ebx
js 0x41d4d3
test edi, edi
je 0x41d4d3
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x41d3e4
nop dword [eax]
cmp dword [eax + 0x10], ebx
jge 0x41d3da
mov eax, dword [eax + 8]
jmp 0x41d3de
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41d3d0
cmp byte [ecx + 0xd], 0
jne 0x41d444
cmp ebx, dword [ecx + 0x10]
jl 0x41d444
cmp edx, ecx
je 0x41d444
cmp dword [ecx + 0x14], 1
jne 0x41d400
mov edi, 2
jmp 0x41d449
mov dword [ecx + 0x14], 1
cmp dword [ecx + 0x18], 0xffffffff
je 0x41d429
push 0
push 0
push dword [ebp - 0x2c]
push 0x41d6a0
push 0
push 0
call fcn.00426051
add esp, 0x18
test eax, eax
jne 0x41d42d
xor edi, edi
jmp 0x41d449
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d4d5
mov edi, 1
lea ecx, [ebp - 0x28]
call fcn.004110b0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00411160
push edi
lea ecx, [ebp - 0x28]
call fcn.00411170
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push dword [ebx + 8]
call fcn.0040ebb0
test eax, eax
je 0x41d4be
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x41d4be
push eax
call fcn.004142e0
push 0x14
call fcn.00421ff6
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41d4a7
push dword [ebx + 0x18]
mov ecx, eax
call fcn.0041b770
jmp 0x41d4a9
xor eax, eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41d4ba
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00417a30
mov bl, 1
jmp 0x41d4c0
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0040e8f0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d4d5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret 4
Function at 0x41e070
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x41e090
push 0
push 0
call fcn.00426051
add esp, 0x18
mov eax, 1
ret
Function at 0x41f1a0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.00421ff6
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41f1dd
push 0
call fcn.00429d1d
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x41f1df
xor ebx, ebx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41f238
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41f230
push 0
call fcn.00429d1d
sub eax, dword [ebx]
add esp, 4
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x3e8
cmp eax, dword [ecx + 0x24]
ja 0x41f227
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
jne 0x41f1f0
jmp 0x41f237
mov dword [ebp - 4], 0xfffffffe
jmp 0x41f237
mov dword [ebp - 4], 0xffffffff
pop edi
push 8
push ebx
call fcn.00422026
mov eax, dword [ebp - 4]
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f550
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d565
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x458ac8]
test al, al
jne 0x41f724
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f722
cmp dword [ebp - 0x198], 5
ja 0x41f5bf
cmp dword [ebp - 0x194], 1
jbe 0x41f722
lea eax, [ebp - 0x28]
push eax
call fcn.0041f320
add esp, 4
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0
cmovae esi, dword [ebp - 0x28]
call fcn.00404170
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00404330
test eax, eax
jne 0x41f70e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00404320
test edi, edi
je 0x41f71a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SGTInitialize
push edi
call esi
push str.SGTUninitialize
push edi
mov dword [0x458a88], eax
call esi
push str.SGTInitParams
push edi
mov dword [0x458a8c], eax
call esi
push str.SGTCreateTask
push edi
mov dword [0x458a90], eax
call esi
push str.SGTResumeTask
push edi
mov dword [0x458a94], eax
call esi
push str.SGTPauseTask
push edi
mov dword [0x458a98], eax
call esi
push str.SGTSetTaskUploadLimit
push edi
mov dword [0x458a9c], eax
call esi
push str.SGTSetTaskDownloadLimit
push edi
mov dword [0x458aa0], eax
call esi
push str.SGTReady
push edi
mov dword [0x458aa4], eax
call esi
push str.SGTIsMemoryTask
push edi
mov dword [0x458aa8], eax
call esi
push str.SGTProgress
push edi
mov dword [0x458aac], eax
call esi
push str.SGTGetTaskStatus
push edi
mov dword [0x458ab0], eax
call esi
push str.SGTGetFileContent
push edi
mov dword [0x458ab4], eax
call esi
push str.SGTGetFilePath
push edi
mov dword [0x458ab8], eax
call esi
push str.SGTRemoveTask
push edi
mov dword [0x458abc], eax
call esi
push str.SetCRTExceptionHandler
push edi
mov dword [0x458ac0], eax
call esi
mov dword [0x458ac4], eax
test eax, eax
je 0x41f6f8
push 0x413230
call eax
lea ecx, [ebp - 0x28]
mov byte [0x458ac8], 1
call fcn.00405540
mov al, byte [0x458ac8]
jmp 0x41f724
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00404320
lea ecx, [ebp - 0x28]
call fcn.00405540
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret
Function at 0x420160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x458acc]
test eax, eax
jne 0x4201ff
push esi
push 0x30
call fcn.00421ff6
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x4201bf
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
mov byte [esi + 0x2c], 0
mov dword [esi + 0x1c], 0
jmp 0x4201c1
xor esi, esi
cmp byte [esi + 0x2c], 0
mov dword [0x458acc], esi
jne 0x4201fc
push 0
push 0
push esi
push 0x420470
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.00426051
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
mov eax, dword [0x458acc]
jne 0x4201fe
mov byte [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420390
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x4203c1
push 0
push 0
push esi
push 0x420470
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.00426051
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4203c1
mov byte [esi + 0x2c], al
xor al, al
pop esi
ret
mov al, 1
pop esi
ret