joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c893
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004138d8
xor ebx, ebx
cmp dword [0x42e884], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41c968
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41c8d3
xor eax, eax
jmp 0x41ca2c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424ea0
push edi
call esi
cmp eax, ebx
je 0x41c8cc
push eax
call fcn.00413875
mov dword [esp], 0x424e90
push edi
mov dword [0x42e884], eax
call esi
push eax
call fcn.00413875
mov dword [esp], 0x424e7c
push edi
mov dword [0x42e888], eax
call esi
push eax
call fcn.00413875
mov dword [0x42e88c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e744
test eax, eax
pop ecx
pop ecx
je 0x41c936
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f99f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41c968
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413875
cmp eax, ebx
pop ecx
mov dword [0x42e894], eax
je 0x41c968
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413875
pop ecx
mov dword [0x42e890], eax
mov eax, dword [0x42e890]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41c9e1
cmp dword [0x42e894], esi
je 0x41c9e1
push eax
call fcn.004138e1
pop ecx
call eax
cmp eax, ebx
je 0x41c9ae
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42e894]
call fcn.004138e1
pop ecx
call eax
test eax, eax
je 0x41c9ae
test byte [ebp - 0x18], 1
jne 0x41c9e1
lea eax, [ebp - 0xc]
push eax
call fcn.0040e77b
test eax, eax
pop ecx
je 0x41c9c9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f99f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41c9d8
or dword [ebp + 0x10], 0x200000
jmp 0x41ca12
or dword [ebp + 0x10], 0x40000
jmp 0x41ca12
mov eax, dword [0x42e888]
cmp eax, esi
je 0x41ca12
push eax
call fcn.004138e1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ca12
mov eax, dword [0x42e88c]
cmp eax, esi
je 0x41ca12
push dword [ebp - 4]
push eax
call fcn.004138e1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42e884]
call fcn.004138e1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420405
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42aaa0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042039a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004109d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x420454
cmp dword [ebp - 0x1c], 5
jb 0x42046c
jmp 0x420468
cmp dword [ebp - 0x10], 1
jne 0x42046c
cmp dword [ebp - 0x1c], 4
ja 0x420468
jne 0x42046c
cmp dword [ebp - 0x18], 0
jbe 0x42046c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x425de4
call fcn.0042026e
test eax, eax
jge 0x42048d
mov byte [0x42ea30], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e571
add ebp, 0x78
leave
ret
Function at 0x40f810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40f82a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f831
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f820
mov eax, 1
add ebx, ebx
jne 0x40f843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f838
jne 0x40f854
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f838
xor ecx, ecx
sub eax, 3
jb 0x40f868
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f8da
mov ebp, eax
add ebx, ebx
jne 0x40f873
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f880
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f8a4
inc ecx
add ebx, ebx
jne 0x40f890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f885
jne 0x40f8a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f885
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f8c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f8b5
jmp 0x40f826
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f8c4
add edi, ecx
jmp 0x40f826
pop esi
mov edi, esi
mov ecx, 0x7000
jmp 0x40f916
mov al, byte [edi]
add edi, 1
cmp al, 0x80
jb 0x40f8f7
cmp al, 0x8f
ja 0x40f8f7
cmp byte [edi - 2], 0xf
je 0x40f8fd
sub al, 0xe8
cmp al, 1
ja 0x40f920
cmp byte [edi], 3
jne 0x40f920
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
mov dword [edi], eax
add edi, 4
sub ecx, 4
mov al, byte [edi]
add edi, 1
loop 0x40f8f7
sub ecx, 1
jg 0x40f8e4
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f96d
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf434]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf470]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f92b
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf474]
or eax, eax
je 0x40f967
mov dword [ebx], eax
add ebx, 4
jmp 0x40f948
call dword [esi + 0xf484]
mov ebp, dword [esi + 0xf478]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f9a1
sub esp, 0xffffff80
jmp 0x404687
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4022d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ecx + 0x14]
sub esp, 0xc
push esi
lea esi, [eax + ecx + 0x18]
lea edx, [esi + 0xc]
cmp ebx, dword [edx]
jae 0x4022ea
mov eax, ebx
jmp 0x40232b
push edi
movzx edi, word [ecx + 6]
xor eax, eax
test edi, edi
jbe 0x402327
mov dword [ebp - 4], edx
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
cmp edx, edi
jne 0x402307
mov edx, dword [ecx + 0x50]
jmp 0x40230d
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
cmp ebx, dword [edx]
jb 0x40231c
cmp ebx, dword [ebp - 8]
jb 0x40232e
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], 0x28
cmp eax, edi
jb 0x4022f8
or eax, 0xffffffff
pop edi
pop esi
leave
ret
imul eax, eax, 0x28
lea ecx, [eax + esi]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, ebx
jmp 0x40232a
Function at 0x4030af
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00414ce0
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call fcn.00414ce0
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
mov dword [ebp - 0x20], eax
mov eax, 0x80
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
lea ecx, [esi + 0x1048]
push dword [ebp + 8]
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], pe_nt_image_headers32
mov dword [ebp - 0x18], ecx
call fcn.00416d21
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x403185
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x403161
cmp eax, 4
je 0x403161
cmp eax, 1
jne 0x403185
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
jmp 0x403187
xor eax, eax
pop esi
leave
ret

Function at 0x403526
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.00414ce0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.00416d21
mov edi, eax
add esp, 0x10
push 2
add edi, edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
neg eax
push eax
push dword [esi + 8]
call ebx
push 0
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x210]
jne 0x403614
lea eax, [ebp - 0x20c]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.00417dc8
pop ecx
pop ecx
test eax, eax
jne 0x403614
push 1
xor edi, edi
push edi
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x210]
push eax
push dword [esi + 8]
call ebx
push edi
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
push 1
add eax, ecx
push edi
neg eax
push eax
push dword [esi + 8]
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cce
leave
ret
Function at 0x40401e
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 0x61870]
xor ecx, ecx
mov dword [ebp - 0x82c], ebx
cmp cx, word [eax]
je 0x404059
mov dword [ebp - 0x82c], eax
jmp 0x404105
xor eax, eax
cmp ax, word [0x441030]
jne 0x4040fb
push 0x823
mov byte [ebp - 0x828], al
lea eax, [ebp - 0x827]
push ebx
push eax
call fcn.00414ce0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
mov dword [ebp - 0x830], 0x823
call fcn.0040a070
add esp, 0x18
test eax, eax
jne 0x4040f0
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4040c1
xor eax, eax
jmp 0x4040db
lea eax, [ebx + ebx]
call fcn.00417bc0
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0x828]
push ecx
push eax
call fcn.004031da
push 0x824
push 0x441030
push eax
call fcn.0040a15f
add esp, 0xc
xor ebx, ebx
xor eax, eax
cmp ax, word [0x441030]
je 0x404105
mov dword [ebp - 0x82c], 0x441030
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp - 0x82c]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x404250
mov edx, dword [esi + 0x20]
lea ecx, [edx + 0x2348]
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x830], 3
cmp word [ecx], bx
je 0x40414e
mov dword [ebp - 0x82c], ecx
lea ecx, [edx + 0x2048]
cmp word [ecx], bx
je 0x40415f
mov dword [ebp - 0x834], ecx
cmp dword [ebp - 0x82c], ebx
jne 0x404178
lea ecx, [edi + 0x60628]
cmp word [ecx], bx
je 0x404178
mov dword [ebp - 0x82c], ecx
cmp dword [ebp - 0x834], ebx
jne 0x404191
lea ecx, [edi + 0x60728]
cmp word [ecx], bx
je 0x404191
mov dword [ebp - 0x834], ecx
xor ecx, ecx
inc ecx
cmp dword [edx + 4], ecx
jne 0x40419f
mov dword [ebp - 0x830], ecx
push 0x403be2
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0x20]
movzx ecx, word [eax]
push esi
push dword [edi + 0x26e0]
add eax, 0x2148
push dword [ebp - 0x830]
push dword [ebp - 0x834]
push dword [ebp - 0x82c]
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x404250
add edi, 0x60828
cmp word [edi], bx
je 0x40424b
mov dword [ebp - 0x840], 3
cmp edi, ebx
je 0x404209
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x404211
mov dword [ebp - 0x83c], ebx
jmp 0x40422d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00417bc0
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.004027fe
mov dword [ebp - 0x83c], eax
push 0xc
lea eax, [ebp - 0x840]
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x838], 0x42d477
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x404252
xor eax, eax
lea esp, [ebp - 0x84c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414cce
leave
ret 4
Function at 0x404470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 2
xor edi, edi
lea esi, [ebx + 0x26fc]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push edi
push dword [ebx + 8]
sar eax, 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], edi
je 0x404536
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 4], 0
sar eax, 2
mov dword [ebp - 0x10], 4
test eax, eax
jbe 0x404504
push dword [ebp - 4]
mov ecx, esi
call fcn.0040375a
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push dword [eax]
push dword [ebx + 8]
call edi
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add dword [ebp - 0x10], 0x20
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jb 0x4044d6
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call edi
mov esi, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push esi
call fcn.00416d21
pop ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
add eax, eax
push eax
push esi
push dword [ebx + 8]
call edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d50
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004170c0
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x100c], 0x42f43c
cmp dword [edi + 0x2480], ebx
je 0x404d93
mov dword [ebp - 0x100c], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
mov dword [ebp - 0x101c], 0x42f428
mov dword [ebp - 0x1018], ebx
call fcn.00414ce0
mov eax, dword [esi + 0x20]
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
lea eax, [ebp - 0x1004]
push 0x42ec4c
push eax
call fcn.00403818
add esp, 0x1c
mov eax, 0x8400c300
cmp dword [edi + 0x62cd4], ebx
je 0x404df8
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x404e06
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x101c]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x404f0c
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x100c]
push ecx
push 2
push eax
mov dword [ebp - 0x100c], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1014]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1014], 1
call edi
push 0x28
pop edi
push edi
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1044]
push ebx
push eax
call fcn.00414ce0
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1044], edi
neg ecx
or ecx, eax
push ecx
call fcn.004170ad
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x404ee7
push 0xa2d0
push ebx
push edi
call fcn.00414ce0
mov ecx, dword [ebp - 0x1010]
add esp, 0xc
push dword [ebp - 0x1008]
push 0x5167
push edi
push esi
call fcn.00404269
push edi
mov dword [ebp - 0x103c], edi
call fcn.00416d21
pop ecx
mov dword [ebp - 0x1038], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x1008], eax
cmp edi, ebx
je 0x404f0c
push edi
call fcn.004170a2
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cce
leave
ret 4
Function at 0x40652b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
add ecx, 0x26e4
call fcn.0040375a
mov esi, dword [eax]
push 0x28
pop ebx
push ebx
lea edi, [esi + 0x8044]
push 0
push edi
call fcn.00414ce0
mov dword [edi], ebx
mov edi, 0x8000
push edi
lea ebx, [esi + 0x40]
push 0
push ebx
call fcn.00414ce0
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0x18
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test eax, eax
je 0x4065b6
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 0x4065b1
ja 0x4065ab
cmp ecx, edi
jbe 0x4065b1
and dword [ebp - 8], 0
jmp 0x4065ef
mov dword [ebp - 8], eax
jmp 0x4065ed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5d120]
mov edx, dword [eax + 0x5d124]
cmp ecx, 0xffffffff
jne 0x4065ce
cmp edx, ecx
je 0x4065f1
sub ecx, dword [eax + 0x5d130]
sbb edx, dword [eax + 0x5d134]
test edx, edx
jb 0x4065ea
ja 0x4065e4
cmp ecx, edi
jbe 0x4065ea
and dword [ebp - 8], 0
jmp 0x4065ef
mov dword [ebp - 8], edx
mov edi, ecx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x406650
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40662f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x406649
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40662b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00405c73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40661e