joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015b0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
test edi, edi
je 0x4015fb
test ebp, ebp
jle 0x4015fb
lea eax, [ebp + 2]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fdiv qword [0x680840]
call fcn.005c52f0
add eax, eax
add eax, eax
mov ecx, eax
mov eax, 2
sub eax, ecx
lea edx, [eax - 1]
cmp edx, dword [ebx]
jle 0x40160d
mov ecx, esi
test ecx, ecx
je 0x401606
mov byte [ecx], 0
pop esi
pop ebp
mov dword [ebx], 0
pop ebx
pop ecx
ret
pop esi
pop ebp
mov dword [ebx], eax
pop ebx
pop ecx
ret
add eax, 0xfffffffe
mov dword [ebx], eax
lea ecx, [ebp - 2]
xor eax, eax
test ecx, ecx
jle 0x401689
jmp 0x401620
movzx edx, byte [edi + eax]
shr edx, 2
movzx edx, byte [edx + 0x676448]
mov byte [esi], dl
movsx edx, byte [edi + eax]
movzx ebx, byte [edi + eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + 0x676448]
mov byte [esi + 1], dl
movsx ebx, byte [edi + eax + 1]
movzx edx, byte [edi + eax + 2]
inc esi
and ebx, 0xf
shr edx, 6
add ebx, ebx
add ebx, ebx
or edx, ebx
movzx edx, byte [edx + 0x676448]
inc esi
mov byte [esi], dl
movsx edx, byte [edi + eax + 2]
and edx, 0x3f
movzx edx, byte [edx + 0x676448]
inc esi
mov byte [esi], dl
add eax, 3
inc esi
cmp eax, ecx
jl 0x401620
cmp eax, ebp
jge 0x4016f8
movzx ecx, byte [eax + edi]
shr ecx, 2
mov dl, byte [ecx + 0x676448]
mov byte [esi], dl
dec ebp
inc esi
cmp eax, ebp
jne 0x4016c5
movsx eax, byte [eax + edi]
and eax, 3
shl eax, 4
mov cl, byte [eax + 0x676448]
mov byte [esi], cl
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
pop esi
pop ebp
pop ebx
pop ecx
ret
movsx edx, byte [eax + edi]
lea ecx, [eax + edi + 1]
movzx eax, byte [ecx]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + 0x676448]
mov byte [esi], dl
movsx eax, byte [ecx]
and eax, 0xf
mov cl, byte [eax*4 + 0x676448]
inc esi
mov byte [esi], cl
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
test ebp, ebp
jne 0x401b31
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0xc]
push ebx
push 0x67648c
push eax
call fcn.005c24a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401b4e
pop ebx
pop esi
pop ebp
ret
test esi, esi
jne 0x401b62
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b57
sub eax, edx
mov esi, eax
push edi
push esi
call fcn.005c052e
mov edi, eax
add esp, 4
test edi, edi
jne 0x401b82
push ebx
call fcn.005c217c
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
push esi
push ebp
push edi
call fcn.005bfdd0
push esi
mov eax, esi
call fcn.00403be0
push ebx
push 1
push 8
push 0x676490
mov dword [esp + 0x38], eax
call fcn.005c235a
push ebx
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call fcn.005c235a
push ebx
push 1
push esi
push edi
call fcn.005c235a
add esp, 0x40
push edi
call fcn.005c05f8
push ebx
call fcn.005c217c
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 2
push 0
push ebp
mov esi, eax
call fcn.005c2fa6
push ebp
call fcn.005c2eae
push 0
push 0
push ebp
mov ebx, eax
call fcn.005c2fa6
add esp, 0x1c
cmp ebx, 0x4000000
jle 0x4029e3
mov dword [esi + 0x20], 0xfffffffe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
lea eax, [ebx + 2]
push eax
mov dword [esi + 0x18], eax
call fcn.005c020b
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
jne 0x402a0a
mov dword [esi + 0x20], 0xfffffffb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push ebp
push 0xc
push 1
push eax
call fcn.005c2cf4
mov edi, eax
add esp, 0x10
cmp edi, 0xc
jne 0x402a8b
mov eax, dword [esi + 0x14]
cmp byte [eax], 0x31
jne 0x402a8b
cmp byte [eax + 1], 0x32
jne 0x402a8b
cmp byte [eax + 2], 0x78
jne 0x402a8b
cmp byte [eax + 3], 0
jne 0x402a8b
movsx ecx, byte [eax + 4]
mov edx, dword [eax + 8]
push ebp
push 1
lea edi, [ebx - 0xc]
push edi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
call fcn.005c2cf4
mov eax, dword [esi + 0x14]
push edi
push 0
push edi
push eax
call fcn.00403c20
add esp, 0x20
cmp eax, dword [esp + 0x18]
je 0x402a7c
mov dword [esi + 0x20], 0xfffffffd
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
xor ecx, ecx
cmp dword [esp + 0x10], ecx
setne cl
inc ecx
mov dword [esi + 0x20], ecx
jmp 0x402aaf
mov dword [esi + 0x20], 0
cmp ebx, edi
jbe 0x402aaf
mov eax, dword [esi + 0x14]
push ebp
mov edx, ebx
push 1
sub edx, edi
push edx
add eax, 0xc
push eax
call fcn.005c2cf4
add esp, 0x10
mov edi, ebx
test edi, edi
jbe 0x4029d9
mov ecx, dword [esi + 0x14]
mov byte [edi + ecx], 0
call fcn.00402ad0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4

Function at 0x403520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push ebx
push esi
push edi
mov edi, dword [esp + 0x818]
push 0x6764ac
push eax
xor ebx, ebx
call fcn.005c24a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4035c6
push 0x67648c
push edi
call fcn.005c24a0
mov edi, eax
add esp, 8
test edi, edi
je 0x4035bd
push esi
push 0x800
lea eax, [esp + 0x14]
push 1
push eax
call fcn.005c2cf4
add esp, 0x10
test eax, eax
jle 0x4035af
push edi
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005c235a
push esi
push 0x800
lea edx, [esp + 0x24]
push 1
push edx
call fcn.005c2cf4
add esp, 0x20
test eax, eax
jg 0x403588
push edi
call fcn.005c217c
add esp, 4
mov ebx, 1
push esi
call fcn.005c217c
add esp, 4
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0x804
ret
Function at 0x403610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, eax
lea eax, [edi + 6]
cmp dword [ebp], eax
jb 0x4036fa
cmp edi, 0xffff
ja 0x4036fa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403652
cmp byte [eax], 0
je 0x403652
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403643
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x403664
mov ecx, dword [0x69aaac]
mov dword [esp + 0x18], str.8437jhdf8834kmklsi7__kdf8lsdjf2__aksdjsd0__dkfk____sksldfjsa_sdasdkj23knfsmmjjd
mov dword [esp + 0x14], ecx
lea edx, [edi + 4]
push ebx
mov dword [ebp], edx
lea ebx, [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
xor ecx, eax
and ecx, 0x7ffff
xor ecx, dword [esi]
xor edx, edx
mov eax, ecx
and eax, 0x7ffff
div dword [esp + 0x18]
shl edx, 0x13
xor edx, ecx
and edx, 0x1f80000
xor edx, ecx
mov dword [esi], edx
and edx, 0x1ffffff
cmp edi, 0x7f
jbe 0x4036b5
mov dword [esi], edx
mov word [ebx], di
add ebx, 2
add dword [ebp], 2
jmp 0x4036be
mov eax, edi
shl eax, 0x19
or edx, eax
mov dword [esi], edx
mov edx, dword [esi]
shr edx, 0x13
and edx, 0x3f
test edi, edi
jbe 0x4036f0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, ebx
sub esi, ebx
mov al, byte [esi + ecx]
mov ebx, dword [esp + 0x1c]
xor al, byte [edx + ebx]
inc ecx
mov byte [ecx - 1], al
lea eax, [edx + 3]
xor edx, edx
div ebp
sub edi, 1
jne 0x4036d6
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret
pop edi
pop esi
mov dword [ebp], 0
xor eax, eax
pop ebp
ret

Function at 0x403710
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 4
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, eax
jae 0x40372a
mov dword [edi], 0
pop edi
xor eax, eax
pop ebx
ret
push ebp
push esi
test ebx, ebx
je 0x40374d
cmp byte [ebx], 0
je 0x40374d
mov eax, ebx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403740
sub eax, esi
mov ebp, eax
jmp 0x403758
mov ebp, dword [0x69aaac]
mov ebx, str.8437jhdf8834kmklsi7__kdf8lsdjf2__aksdjsd0__dkfk____sksldfjsa_sdasdkj23knfsmmjjd
mov edx, dword [ecx]
mov eax, edx
shr eax, 0x19
lea esi, [ecx + 4]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x403782
cmp ecx, 4
je 0x403782
movzx eax, word [esi]
cmp dword [edi], eax
jb 0x4037c1
add ecx, 0xfffffffa
cmp eax, ecx
jne 0x4037c1
add esi, 2
jmp 0x40378d
cmp dword [edi], eax
jb 0x4037c1
add ecx, 0xfffffffc
cmp eax, ecx
jne 0x4037c1
shr edx, 0x13
and edx, 0x3f
mov dword [edi], eax
test eax, eax
jbe 0x4037b7
mov ecx, dword [esp + 0x18]
sub esi, ecx
mov edi, eax
mov al, byte [esi + ecx]
xor al, byte [edx + ebx]
inc ecx
mov byte [ecx - 1], al
lea eax, [edx + 3]
xor edx, edx
div ebp
sub edi, 1
jne 0x4037a1
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebp
mov dword [edi], eax
pop edi
pop ebx
ret
Function at 0x403be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ecx, ecx
xor ebp, ebp
push esi
mov esi, eax
cmp dword [esp + 0xc], ecx
jbe 0x403c17
push ebx
nop
mov bl, byte [ecx + edi]
movsx eax, bl
add ebp, eax
xor edx, edx
mov eax, esi
div dword [0x69aaac]
inc ecx
inc esi
mov dl, byte [edx + str.8437jhdf8834kmklsi7__kdf8lsdjf2__aksdjsd0__dkfk____sksldfjsa_sdasdkj23knfsmmjjd]
xor dl, bl
mov byte [ecx + edi - 1], dl
cmp ecx, dword [esp + 0x10]
jb 0x403bf0
pop ebx
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x403c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor ecx, ecx
test ebp, ebp
jbe 0x403c68
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x20]
lea ebx, [ebx]
xor edx, edx
mov eax, edi
div dword [0x69aaac]
inc ecx
inc edi
mov al, byte [edx + str.8437jhdf8834kmklsi7__kdf8lsdjf2__aksdjsd0__dkfk____sksldfjsa_sdasdkj23knfsmmjjd]
xor byte [ecx + esi - 1], al
movsx edx, byte [ecx + esi - 1]
add ebx, edx
cmp ecx, ebp
jb 0x403c40
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x10]
pop ebp
ret

Function at 0x404330
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x60d69b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x698b9c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor ebp, ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], esi
mov dword [esp + 0x2c], ebp
or eax, 0xffffffff
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esi], vtable.TPinger::PING_ITEM.0
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], ebp
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
push ecx
mov ecx, dword [edi + 0x24]
call fcn.004040c0
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4043ad
mov ebx, dword [eax]
cmp ebx, ebp
jne 0x4043b1
xor eax, eax
jmp 0x4043d9
push ebx
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
jne 0x4043d5
push ebx
call sub.WS2_32.dll_gethostbyname
cmp eax, ebp
je 0x4043d5
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ebp
push 1
push 2
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
call sub.WS2_32.dll_socket
mov dword [esi + 0x24], eax
cmp dword [edi + 0x28], ebp
je 0x404402
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004045d0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4044f0
Capabilities:
Check for time delay via gettickcount
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov dx, word [esi + 0x20]
mov eax, dword [esi + 0x1c]
rol dx, 8
cmp dword [esi + 0x24], 0xffffffff
mov ecx, 2
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], cx
mov word [esp + 0xe], dx
je 0x40458b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x18], eax
cmp dword [ecx + 0x28], 0
je 0x40455c
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40454d
mov eax, dword [eax]
test eax, eax
jne 0x40454f
xor eax, eax
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call fcn.004049c0
jmp 0x404571
mov edx, dword [esi + 0x24]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call sub.WS2_32.dll_connect
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x40458b
call edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
cmp eax, ecx
jb 0x404585
sub eax, ecx
jmp 0x404588
sub eax, ecx
dec eax
mov dword [esi + 0x14], eax
push esi
mov esi, dword [esi + 0x10]
call fcn.00404b50
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x4046a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x60dd65
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
mov eax, dword [0x698b9c]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.TArray_class_TInI::TInISection___10__class_TDefaultAllocator_.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x128]
mov dword [esp + 0x120], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], vtable.TArray_class_TPinger::PING_ITEM___10__class_TDefaultAllocator_.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea eax, [esi + 0x3c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea ecx, [esi + 0x54]
mov byte [esp + 0x120], 2
call fcn.00403f10
mov byte [esp + 0x120], 3
push str.GOTOHTTP_PROXY
mov dword [esi + 0x460], 0xffffffff
call fcn.005c5422
add esp, 4
cmp eax, edi
jne 0x404781
push str.proxy.ini
lea ecx, [esp + 0x18]
push pe_nt_image_headers32
push ecx
call fcn.00403460
add esp, 0xc
lea eax, [esp + 0x14]
push 0x6764ac
push eax
call fcn.005c24a0
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x40479e
mov dword [esi + 0x20], 0xffffffff
jmp 0x4047af
push ebx
mov eax, esi
call fcn.004029a0
push ebx
call fcn.005c217c
add esp, 4
push edi
push str.proxy
mov ecx, esi
call fcn.004027d0
mov ebx, eax
cmp ebx, edi
je 0x4047e8
push str.type
mov ecx, ebx
call fcn.00401e00
cmp eax, edi
jl 0x4047e8
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*8 + 4]
cmp eax, edi
je 0x4047e8
push eax
call fcn.00404f80
add esp, 4
jmp 0x4047ea
xor eax, eax
mov dword [esi + 0x28], eax
cmp eax, edi
je 0x404857
push edi
push str.proxy
mov ecx, esi
call fcn.004027d0
mov ebx, eax
cmp ebx, edi
je 0x404857
push str.passc
mov ecx, ebx
call fcn.00401e00
cmp eax, edi
jl 0x404857
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + eax*8 + 4]
cmp eax, edi
je 0x404857
push edi
push pe_nt_image_headers32
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004038c0
add esp, 0x10
test eax, eax
jbe 0x404857
push esi
mov eax, str.proxy
call fcn.00402920
mov ecx, eax
cmp ecx, edi
je 0x404857
lea eax, [esp + 0x14]
push eax
mov eax, str.pass
call fcn.00402010
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005bfcb8
add esp, 0x114
ret 4
Function at 0x404c50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x60da28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x698b9c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x3c]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 0x5c], ebx
cmp ebp, ebx
je 0x404cca
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x404cca
nop
mov eax, dword [ebp + 4]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x404cc4
mov eax, dword [eax]
cmp eax, ebx
je 0x404cb9
mov eax, dword [eax]
cmp eax, ebx
jne 0x404cbb
xor eax, eax
push edi
push eax
mov ecx, esi
call fcn.00404de0
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x404ca0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x5c]
mov edi, eax
cmp ecx, dword [esi + 0x38]
jae 0x404d21
lea esp, [esp]
cmp eax, edi
jb 0x404ce8
sub eax, edi
jmp 0x404ceb
sub eax, edi
dec eax
cmp eax, 0x2710
jae 0x404d21
mov eax, dword [esi + 0x58]
push 0x3e8
test eax, eax
je 0x404d0b
lea ecx, [esi + 0x3c]
push ecx
push eax
call dword [0x69da48]
jmp 0x404d17
mov ecx, dword [esi + 0x54]
lea eax, [esi + 0x3c]
push eax
call fcn.00401250
call ebx
mov edx, dword [esi + 0x5c]
cmp edx, dword [esi + 0x38]
jb 0x404ce0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x38], eax
jbe 0x404d5c
mov edi, dword [esi + 0x30]
xor edx, edx
mov ebx, dword [edi + eax*4]
mov ebp, dword [edx + edi]
mov ebx, dword [ebx + 0x14]
lea ecx, [eax*4]
cmp ebx, dword [ebp + 0x14]
jae 0x404d4e
mov dword [esp + 0x14], eax
mov edx, ecx
inc eax
cmp eax, dword [esi + 0x38]
jb 0x404d33
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x38]
jae 0x404daf
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0x2710
jae 0x404daf
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp + 0xc]
jae 0x404daf
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x404d9e
mov eax, dword [eax]
test eax, eax
je 0x404d9e
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x404dbe
mov eax, dword [esp + 0x18]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x404dbe
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x404de0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x60d3fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x698b9c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
push 0x30
call fcn.005c020b
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x404e32
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push eax
call fcn.00404330
mov esi, eax
jmp 0x404e34
xor esi, esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], esi
test esi, esi
je 0x404e90
cmp dword [esi + 4], 0
jne 0x404e85
mov eax, dword [esi + 0xc]
lea edx, [esi + 8]
push edx
push 0x10000
push eax
push 0x401070
push 0xa004
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x404e79
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
cmp dword [esi + 4], eax
setne al
test eax, eax
jne 0x404ea6
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
lea ecx, [esp + 0x24]
push ecx
lea esi, [edi + 0x2c]
call fcn.00405070
movzx eax, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x407300
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60cd01
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x698b9c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
push 2
push 0
push edi
mov dword [esp + 0x24], 0
call fcn.005c2fa6
push edi
call fcn.005c2eae
push 0
mov ebx, eax
push 0
push edi
mov dword [esp + 0x38], ebx
call fcn.005c2fa6
add esp, 0x1c
cmp ebx, 0x4000000
jle 0x40738a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40736c
mov dword [eax], 0xfffffffe
mov eax, dword [esp + 0x34]
mov dword [eax], 0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x18]
call fcn.00402f80
mov dword [esp + 0x2c], 1
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4073ae
mov esi, dword [ebp]
test esi, esi
jne 0x4073b0
xor esi, esi
push edi
push 0xc
push 1
push esi
call fcn.005c2cf4
mov edi, eax
add esp, 0x10
cmp edi, 0xc
jne 0x40748e
cmp byte [esi], 0x31
jne 0x40748e
cmp byte [esi + 1], 0x32
jne 0x40748e
cmp byte [esi + 2], 0x78
jne 0x40748e
cmp byte [esi + 3], 0
jne 0x40748e
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
movsx ecx, byte [esi + 4]
mov ebx, dword [esi + 8]
push edx
push 1
add edi, 0xfffffff4
push edi
push esi
mov dword [esp + 0x30], ecx
call fcn.005c2cf4
push edi
push 0
push edi
push esi
call fcn.00403c20
add esp, 0x20
cmp eax, ebx
je 0x407478
cmp dword [0x69aaa4], 3
jg 0x407445
push ebx
push eax
push str.check_sum_err:__u__u
push 0x657
push str..._.._base_hTString.h
push 3
call fcn.00401310
add esp, 0x18
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407453
mov dword [eax], 0xfffffffd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x14]
mov dword [esi], 0
mov dword [esp + 0x18], 1
mov byte [esp + 0x2c], 0
call fcn.00402fe0
jmp 0x407534
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4074ba
xor ecx, ecx
cmp dword [esp + 0x20], ecx
setne cl
inc ecx
mov dword [eax], ecx
jmp 0x4074ba
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40749c
mov dword [eax], 0
cmp ebx, edi
jbe 0x4074ba
mov edx, dword [esp + 0x38]
push edx
mov eax, ebx
push 1
sub eax, edi
push eax
add esi, 0xc
push esi
call fcn.005c2cf4
add esp, 0x10
mov edi, ebx
test edi, edi
jbe 0x4074df
test ebp, ebp
je 0x4074c9
mov eax, dword [ebp]
test eax, eax
jne 0x4074cb
xor eax, eax
add edi, 1
mov byte [eax + edi - 1], 0
js 0x4074f4
cmp edi, dword [ebp + 4]
jg 0x4074f4
mov dword [ebp + 8], edi
jmp 0x4074f4
test ebp, ebp
je 0x4074f4
mov eax, dword [ebp]
mov dword [ebp + 8], 0
test eax, eax
je 0x4074f4
mov byte [eax], 0
mov esi, dword [esp + 0x34]
mov dword [esi], ebp
test ebp, ebp
je 0x407501
inc dword [ebp + 0xc]
mov dword [esp + 0x18], 1
mov byte [esp + 0x2c], 0
test ebp, ebp
je 0x407534
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
jg 0x407534
mov eax, dword [ebp]
test eax, eax
je 0x40752b
push eax
call fcn.005c05f8
add esp, 4
push ebp
call fcn.005bf7fb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret