joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49eb88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4a6ae8]
xor edi, edi
cmp ecx, edi
jne 0x40ba3b
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
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x40ba48
mov dword [ebp - 0x14], edi
jmp 0x40ba60
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x40baf6
mov ecx, dword [0x4a6ae8]
mov eax, dword [ecx]
cmp eax, edi
je 0x40ba27
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ba27
mov ebx, 0x4a6ae8
mov dword [ebp - 4], edi
call fcn.0040bb10
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x40ba9e
push 0x49a78c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.00450b31
mov ecx, dword [0x4a6ae8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x40bab8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x40bae2
push 0x49a78c
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.00450b31
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40bad9
call fcn.0040bf70
mov eax, 0x40badf
ret
mov eax, dword [0x4a6ae8]
mov eax, dword [eax]
test eax, eax
je 0x40baf4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
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 0x40bb10
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40bb3d
xor ecx, ecx
jmp 0x40bb49
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40bbfd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x40bb70
mov dword [esp + 0xc], esi
jmp 0x40bbd0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x40bbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bbbc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x40bbd0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bbd0
push 0x494690
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40bbd0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x40bbf3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x40bb62
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x40bc11
mov ecx, dword [ebx]
add ecx, 8
call fcn.0040bea0
test eax, eax
je 0x40bc11
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x40bc20
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x483ecb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49eb88]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00450880
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40bcb8
push 0x49a78c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.00450b31
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x40cc90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
test edx, edx
jle 0x40ccc0
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x49d090]
inc ecx
sub edx, 1
jne 0x40cca1
pop edi
pop esi
not eax
ret
Function at 0x40cf50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
test eax, eax
jne 0x40cf5d
pop esi
ret
push ebx
push 0x4859e0
push eax
call fcn.0045080a
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40cf75
pop ebx
pop esi
ret
push ebp
push edi
push 2
push 0
push ebx
call fcn.004506bf
push ebx
call fcn.004505c7
push 0
push 0
push ebx
mov ebp, eax
call fcn.004506bf
add esp, 0x1c
test ebp, ebp
jle 0x40cfd8
lea edi, [ebp + 2]
push edi
call fcn.00450360
mov esi, eax
add esp, 4
test esi, esi
jne 0x40cfb1
pop edi
pop ebp
pop ebx
pop esi
ret
mov eax, dword [esp + 0x1c]
push edi
push 0
push esi
mov dword [eax], edi
call fcn.00450880
push ebx
push 1
push ebp
push esi
call fcn.0045027a
mov ecx, dword [esp + 0x34]
mov dword [ecx], esi
add esp, 0x1c
mov esi, 1
push ebx
call fcn.0044ff41
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
ret

Function at 0x4127b0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00450880
mov esi, dword [esp + 0x58]
push 0x2454
push 0
push esi
call fcn.00450880
lea eax, [esi + 0x48]
lea edx, [esi + 0x2148]
mov dword [esp + 0x4c], eax
mov eax, 0x800
lea ecx, [esi + 8]
mov dword [esp + 0x30], edx
lea edx, [esi + 0x2348]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov eax, 0x80
lea ecx, [esi + 0x1048]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea ecx, [esi + 0x2048]
mov eax, edx
add esp, 0x18
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 0x2c], ecx
lea edi, [eax + 2]
jmp 0x412850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412850
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x54]
sub eax, edi
push ecx
sar eax, 1
push eax
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4128bc
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x412888
cmp eax, 4
je 0x412888
cmp eax, 1
jne 0x4128bc
mov dx, word [esp + 0x20]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x2448], 0
mov dword [esi + 0x244c], 0
mov word [esi], dx
mov dword [esi + 0x2450], 0xffffffff
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
Function at 0x412e30
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x7bc]
sub esp, 0x83c
mov eax, dword [0x49eb88]
xor eax, ebp
mov dword [ebp + 0x7b8], eax
mov eax, ecx
push ebx
mov dword [ebp - 0x74], eax
push esi
mov esi, dword [ebp + 0x7c4]
add eax, 0x61870
xor ecx, ecx
xor ebx, ebx
push edi
cmp cx, word [eax]
je 0x412e6e
mov ebx, eax
jmp 0x412efb
xor edx, edx
cmp dx, word [0x4a0b00]
jne 0x412ef6
push 0x823
push edx
lea eax, [ebp - 0x6b]
push eax
mov byte [ebp - 0x6c], cl
call fcn.00450880
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x6c]
push edx
push 0
mov dword [ebp - 0x70], 0x823
call fcn.00421e50
add esp, 0x18
test eax, eax
jne 0x412eeb
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x412ec1
xor eax, eax
jmp 0x412ed8
lea eax, [edi + edi]
call fcn.004521b0
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.004126f0
push 0x824
push 0x4a0b00
push eax
call fcn.00421ce0
add esp, 0xc
xor edx, edx
cmp dx, word [0x4a0b00]
je 0x412efb
mov ebx, 0x4a0b00
push 0x10000000
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x14], eax
test eax, eax
je 0x41301d
mov edx, dword [esi + 0x20]
xor edi, edi
lea ecx, [edx + 0x2348]
xor ebx, ebx
mov dword [ebp - 0x70], 3
cmp word [ecx], di
je 0x412f33
mov ebx, ecx
cmp word [edx + 0x2048], 0
lea ecx, [edx + 0x2048]
je 0x412f45
mov edi, ecx
test ebx, ebx
jne 0x412f59
mov ecx, dword [ebp - 0x74]
add ecx, 0x60628
cmp word [ecx], bx
je 0x412f59
mov ebx, ecx
test edi, edi
jne 0x412f6d
mov ecx, dword [ebp - 0x74]
add ecx, 0x60728
cmp word [ecx], di
je 0x412f6d
mov edi, ecx
mov ecx, 1
cmp dword [edx + 4], ecx
jne 0x412f7a
mov dword [ebp - 0x70], ecx
push 0x412950
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x26e0]
mov ecx, dword [ebp - 0x70]
mov eax, dword [esi + 0x20]
push esi
push edx
movzx edx, word [eax]
push ecx
push edi
push ebx
push edx
add eax, 0x2148
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
xor ebx, ebx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x41301d
mov edi, dword [ebp - 0x74]
add edi, 0x60828
cmp word [edi], bx
je 0x413016
mov dword [ebp - 0x80], 3
cmp edi, ebx
je 0x412fdf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x412fe4
mov dword [ebp - 0x7c], ebx
jmp 0x412ffd
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004521b0
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.00412730
mov dword [ebp - 0x7c], eax
mov edx, dword [esi + 0x14]
push 0xc
lea ecx, [ebp - 0x80]
push ecx
push 0x26
push edx
mov dword [ebp - 0x78], 0x485a1f
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
jmp 0x41301f
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7b8]
xor ecx, ebp
call fcn.0044f9f3
add ebp, 0x7bc
mov esp, ebp
pop ebp
ret 4
Function at 0x413920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x49eb88]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1e]
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], ax
call fcn.00450880
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push 0
push 0xffffffffffffff96
push edx
call edi
mov edx, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x6a
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
cmp dword [esp + 0xc], 0x6a
jne 0x413a0f
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea ecx, [esp + 0x14]
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4139c6
test ax, ax
je 0x4139c2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4139c6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4139a0
xor eax, eax
jmp 0x4139cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x413a0f
push 1
push eax
mov eax, dword [esi + 8]
push 0xffffffffffffff92
push eax
call edi
mov eax, dword [esi + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 8]
push 1
add ecx, edx
push 0
neg ecx
push ecx
push eax
call edi
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044f9f3
add esp, 0x214
ret
Function at 0x4150b0
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x103c
call fcn.0044fa10
mov eax, dword [0x49eb88]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x1050]
mov esi, 0x485dd4
cmp dword [ebx + 0x2480], ebp
je 0x4150e9
mov esi, str.POST
push 0xffe
lea ecx, [esp + 0x4e]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x24], 0x485dc0
mov dword [esp + 0x28], ebp
mov word [esp + 0x54], ax
call fcn.00450880
mov eax, dword [edi + 0x20]
lea edx, [eax + 0x1048]
push edx
add eax, 0x48
push eax
push 0x485d70
lea eax, [esp + 0x60]
push 0x7ff
push eax
call fcn.0044fdd8
add esp, 0x20
mov eax, 0x8400c300
cmp dword [ebx + 0x62cd4], ebp
je 0x415143
mov eax, 0x8408c300
mov ecx, dword [edi + 0x20]
cmp dword [ecx + 4], 4
jne 0x415151
or eax, 0x803000
mov ecx, dword [edi + 0x18]
push edi
push eax
lea edx, [esp + 0x20]
push edx
push 0
push str.HTTP_1.1
lea eax, [esp + 0x5c]
push eax
push esi
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x41526a
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [esp + 0x14]
push edx
push 2
push eax
mov dword [esp + 0x20], 0x3a98
call esi
mov ecx, dword [edi + 0x1c]
push 4
lea eax, [esp + 0x18]
push eax
push 0x41
push ecx
mov dword [esp + 0x24], 1
call esi
mov ebp, eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
xor ecx, ecx
mov eax, 0x5168
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x20], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.0044e92a
mov esi, eax
add esp, 4
test esi, esi
je 0x415243
push 0xa2d0
push 0
push esi
call fcn.00450880
add esp, 0xc
push ebp
push 0xa2cf
push esi
push edi
mov ecx, ebx
call fcn.00413050
mov eax, esi
mov dword [esp + 0x28], esi
lea edx, [eax + 2]
jmp 0x415230
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415230
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x1c]
push edi
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov edi, eax
test esi, esi
je 0x415266
push esi
call fcn.00451364
add esp, 4
mov eax, edi
jmp 0x41526c
mov eax, ebp
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044f9f3
add esp, 0x103c
ret 4
Function at 0x415290
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x270c]
sub eax, dword [esi + 0x2708]
mov ecx, dword [esi + 8]
push 2
xor edi, edi
push edi
push edi
sar eax, 2
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x415376
mov ecx, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
push edi
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x270c]
sub edx, dword [esi + 0x2708]
lea ebp, [edi + 4]
sar edx, 2
test edx, edx
jbe 0x415348
lea esp, [esp]
mov eax, dword [esi + 0x270c]
sub eax, dword [esi + 0x2708]
sar eax, 2
cmp edi, eax
jb 0x415318
call fcn.00450a96
mov edx, dword [esi + 0x2708]
mov eax, dword [edx + edi*4]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 8]
push 0x20
push eax
push ecx
call ebx
mov edx, dword [esi + 0x270c]
sub edx, dword [esi + 0x2708]
inc edi
sar edx, 2
add ebp, 0x20
cmp edi, edx
jb 0x415300
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x18]
push eax
push 0x6a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push ecx
call ebx
pop ebp
pop ebx
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x4191f0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x26f4]
sub eax, dword [ebp + 0x26f0]
push esi
mov esi, dword [esp + 0x18]
sar eax, 2
push edi
cmp esi, eax
jb 0x419215
call fcn.00450a96
mov ecx, dword [ebp + 0x26f0]
mov edi, dword [ecx + esi*4]
xor eax, eax
lea esi, [edi + 0x8044]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x8000
mov dword [esi + 0x20], eax
push eax
lea ebx, [edi + 0x40]
mov dword [esi + 0x24], eax
push ebx
mov dword [esi], 0x28
call fcn.00450880
mov eax, dword [edi + 0x8040]
mov dword [edi + 0x8058], ebx
add esp, 0xc
lea ebx, [edi + 0x805c]
mov dword [ebx], 0x8000
test eax, eax
je 0x4192b6
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
test eax, eax
jb 0x4192ae
ja 0x41929d
cmp ecx, 0x8000
jbe 0x4192ae
mov ecx, 0x8000
mov dword [esp + 0x14], 0
mov dword [ebx], ecx
jmp 0x4192f9
mov dword [esp + 0x14], eax
mov dword [ebx], ecx
jmp 0x4192f9
mov eax, dword [ebp + 0x5d120]
mov ecx, dword [ebp + 0x5d124]
cmp eax, 0xffffffff
jne 0x4192cb
cmp ecx, eax
je 0x4192f9
sub eax, dword [ebp + 0x5d130]
sbb ecx, dword [ebp + 0x5d134]
test ecx, ecx
jb 0x4192f3
ja 0x4192e4
cmp eax, 0x8000
jbe 0x4192f3
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4192f7
mov dword [esp + 0x14], ecx
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x28], 9
cmp dword [ecx + 4], 1
je 0x41935a
mov edx, dword [edi + 0x1c]
push edi
push 1
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x41933e
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x419399
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [ebx]
mov edx, dword [edi + 0x8058]
mov eax, dword [edi + 0x1c]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41938c
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41932f
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.004181a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x41af00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x224
mov eax, dword [0x49eb88]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
mov edi, ecx
lea ecx, [esp + 0x2e]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov word [esp + 0x34], ax
call fcn.00450880
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebp
push 0xffffffffffffff96
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call esi
mov edx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x6a
lea ecx, [esp + 0x34]
push ecx
push edx
call ebx
cmp dword [esp + 0x10], 0x6a
jne 0x41b0ac
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea ecx, [esp + 0x28]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41afae
cmp ax, bp
je 0x41afaa
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41afae
add ecx, 4
add edx, 4
cmp ax, bp
jne 0x41af88
xor eax, eax
jmp 0x41afb3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x41b0ac
mov eax, dword [edi + 8]
push 1
push ebp
push 0xffffffffffffff92
push eax
call esi
mov eax, dword [edi + 8]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 8]
push 1
add ecx, edx
push ebp
neg ecx
push ecx
push eax
call esi
mov eax, dword [edi + 8]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push eax
call ebx
cmp dword [esp + 0x14], ebp
jbe 0x41b075
lea esi, [edi + 0x5cfe0]
mov edi, edi
mov edx, dword [edi + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x20
lea ebx, [esi - 8]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
xor eax, eax
add dword [esi], ecx
mov ecx, dword [esi + 8]
mov dword [ebx], eax
adc dword [esi + 4], edx
sub ecx, dword [esi]
mov edx, dword [esi + 0xc]
sbb edx, dword [esi + 4]
add ecx, 1
adc edx, eax
add dword [esp + 0x18], ecx
mov dword [esi - 4], eax
mov dword [esi + 0x10], eax
adc dword [esp + 0x1c], edx
mov dword [esi + 0x14], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x26fc]
mov dword [esp + 0x28], ebx
call fcn.0041acd0
inc ebp
add esi, 0x20
cmp ebp, dword [esp + 0x14]
jb 0x41b010
mov ecx, dword [edi + 0x5d120]
sub ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x5d124]
sbb edx, dword [esp + 0x1c]
mov eax, ecx
mov dword [edi + 0x5d138], ecx
mov ecx, edx
mov dword [edi + 0x5d130], eax
mov dword [edi + 0x5d13c], edx
mov dword [edi + 0x5d134], ecx
mov eax, 1
jmp 0x41b0ae
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044f9f3
add esp, 0x224
ret
Function at 0x41c060
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
mov eax, dword [0x49eb88]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x41c08d
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044f9f3
add esp, 0x1c
ret
push edi
lea edi, [esi + 0x5d140]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov word [esp + 0x1c], ax
push ebx
mov eax, 0x3a
mov word [esp + 0x22], ax
mov ecx, 0x5c
push ebx
lea eax, [esp + 0x14]
mov word [esp + 0x28], cx
push eax
lea ecx, [esp + 0x28]
xor edx, edx
push ecx
mov word [esp + 0x32], dx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41c237
mov eax, dword [esi + 0x5d120]
mov ecx, dword [esi + 0x5d124]
cmp eax, 0xffffffff
jne 0x41c0f5
cmp ecx, eax
je 0x41c125
mov edx, dword [esp + 0x10]
cmp edx, ecx
ja 0x41c125
jb 0x41c107
mov ecx, dword [esp + 0xc]
cmp ecx, eax
ja 0x41c125
pop edi
mov dword [esi + 0x2470], 2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044f9f3
add esp, 0x1c
ret
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41c221
cmp dword [esi + 0x2714], ebx
je 0x41c20a
lea edi, [esi + 0x26fc]
mov ecx, edi
call fcn.00417d90
mov ecx, esi
call fcn.0041af00
test eax, eax
jne 0x41c20a
cmp dword [esi + 0x2468], ebx
ja 0x41c17f
mov dword [esi + 0x2468], 5
mov eax, 0xa
cmp dword [esi + 0x2468], eax
jbe 0x41c192
mov dword [esi + 0x2468], eax
mov edx, dword [esi + 0x5d120]
mov eax, dword [esi + 0x5d124]
add edx, 0xffffffff
mov dword [esi + 0x5cfe8], edx
lea ecx, [esi + 0x5cfd8]
lea edx, [esp + 0x18]
adc eax, 0xffffffff
mov dword [esp + 0x18], ecx
push edx
mov ecx, edi
mov dword [esi + 0x5cfe0], ebx
mov dword [esi + 0x5cfe4], ebx
mov dword [esi + 0x5cfec], eax
call fcn.0041acd0
mov eax, dword [esi + 0x5d120]
mov edx, dword [esi + 0x5d124]
mov cl, 0x20
call fcn.004524e0
mov ecx, dword [esi + 0x5d120]
mov edx, dword [esi + 8]
push ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044f9f3
add esp, 0x1c
ret
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044f9f3
add esp, 0x1c
ret