joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4029bd
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0xc]
push 0x208
push edx
push esi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4029e3
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x402a24
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
cmp edx, esi
mov ecx, dword [eax - 4]
ja 0x402a10
mov edx, esi
cmp edi, ecx
jb 0x402a1a
add edx, ecx
cmp edi, edx
jbe 0x402a2e
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x402a02
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ebx, 1
pop ebp
mov dword [edx], ebx
pop ebx
sub edi, ecx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x402b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x4531e4]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00420bdf
add esp, 0x808
ret

Function at 0x402c00
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0042aed0
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00422b60
add esp, 0xc
test esi, esi
je 0x402c3a
mov word [esi], 0
lea ecx, [esp + 4]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x402cd9
cmp eax, 0x1fff
ja 0x402cd9
lea edx, [esp + 0xc]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402cd9
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x441118
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402cd9
push 0x208
push 0
push esi
call fcn.00422b60
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x44111c
push 0x207
push esi
call fcn.0042137d
add esp, 0x28
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.00420bdf
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.00420bdf
add esp, 0x2010
ret
Function at 0x403a00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
lea eax, [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
sub eax, esi
mov dword [esp + 0x1c], eax
cdq
sub eax, edx
sar eax, 1
add eax, esi
mov dword [esp + 0x20], eax
sub ecx, edi
mov eax, ecx
cdq
push str.SCALESHOWEXIT
sub eax, edx
push 0
sar eax, 1
push 0
add eax, edi
push 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
push 0
push 1
push ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push ebp
call esi
push 0
push ebp
call esi
fild dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
fld st(0)
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
fld qword [0x442ae8]
mov dword [esp + 0x10], 1
fdiv st(1), st(0)
fxch st(1)
fstp qword [esp + 0x28]
fild dword [esp + 0x1c]
fld st(0)
fdivrp st(2)
fxch st(1)
fstp qword [esp + 0x30]
fild dword [esp + 0x24]
fstp dword [esp + 0x18]
fld qword [0x442ae0]
fdiv st(2), st(0)
fxch st(2)
fstp qword [esp + 0x38]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fdivrp st(1)
fstp qword [esp + 0x40]
fild dword [esp + 0x10]
push 0x40
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld qword [esp + 0x2c]
fmul st(1)
call fcn.00424910
fld qword [esp + 0x34]
fmul st(1)
push eax
call fcn.00424910
fld dword [esp + 0x20]
fld st(1)
push eax
fmul qword [esp + 0x44]
fsubp st(1)
call fcn.00424910
fld dword [esp + 0x2c]
fxch st(1)
push eax
fmul qword [esp + 0x50]
fsubp st(1)
call fcn.00424910
push eax
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push ecx
call esi
test eax, eax
je 0x403b71
lea esp, [esp]
lea edx, [esp + 0x5c]
push edx
call edi
lea eax, [esp + 0x5c]
push eax
call ebx
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push ecx
call esi
test eax, eax
jne 0x403b50
push 0x4bf
push 0xa
push 0
lea edx, [esp + 0x20]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x403be5
cmp eax, 0xffffffff
je 0x403be5
cmp eax, 0x102
je 0x403bd1
cmp eax, 1
jne 0x403bd1
push eax
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
je 0x403bd1
mov edi, edi
lea ecx, [esp + 0x5c]
push ecx
call edi
lea edx, [esp + 0x5c]
push edx
call ebx
push 1
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call esi
test eax, eax
jne 0x403bb0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 0x15
mov dword [esp + 0x10], eax
jl 0x403ae3
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x4060b0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x45345c]
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x58
call fcn.00420c4c
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4060eb
mov dword [eax], vtable.CLoading.0
mov dword [eax + 0x44], edi
mov dword [eax + 0x48], edi
mov dword [eax + 0x4c], edi
mov dword [eax + 0x50], edi
jmp 0x4060ed
xor eax, eax
mov edx, dword [0x45345c]
push str.LOADINGDIALOGTHREAD
push edi
mov dword [0x453760], eax
push 1
mov dword [eax + 0x44], edx
mov esi, dword [0x453760]
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x54]
push eax
push edi
push esi
push 0x402410
push edi
push edi
call fcn.00421124
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x406148
mov ecx, dword [esi + 0x50]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x407ab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43b098
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x40]
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 4]
lea edi, [ebp + 0x28]
mov ecx, edi
call edx
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407b02
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
lea eax, [esp + 0x14]
push eax
lea esi, [ebp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.00406330
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x407b49
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00420bda
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
call eax
mov esi, ebp
call fcn.0040c3a0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x407b80
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43ab19
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
push edi
mov esi, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
push 0x44124c
mov ecx, ebp
mov dword [esp + 0x20], ebp
mov word [ebp + 4], di
call fcn.00401ce0
mov dword [esp + 0x28], edi
mov eax, dword [esi + 0x28]
mov edx, dword [eax + 4]
lea ebx, [esi + 0x28]
mov ecx, ebx
mov dword [esp + 0x1c], 1
call edx
mov edi, dword [esi + 0x1c]
add esi, 0x18
cmp edi, dword [esi + 8]
jbe 0x407bff
call fcn.00421af8
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x407c10
call fcn.00421af8
cmp esi, esi
je 0x407c19
call fcn.00421af8
cmp edi, dword [esp + 0x14]
je 0x407c6e
cmp edi, dword [esi + 8]
jb 0x407c29
call fcn.00421af8
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebp
call fcn.00401dc0
mov ecx, dword [esi + 8]
mov byte [esp + 0x14], 0
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x20]
push edx
lea eax, [edi + 0x1c]
push edi
mov edi, ecx
call fcn.00408160
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x28]
lea eax, [edi - 0x1c]
push ecx
call fcn.004070e0
add esp, 0x14
add dword [esi + 8], 0xffffffe4
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x408420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a58a
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.W3Client.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov byte [esp + 0x14], 3
call fcn.004084d0
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ebx
mov byte [esp + 0x14], 4
call fcn.004084d0
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4089c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor ebx, ebx
push 0x40e
lea eax, [esp + 0x4a]
push ebx
push eax
mov word [esp + 0x50], bx
call fcn.00422b60
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x44]
push edx
call esi
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408a37
sub eax, edx
sar eax, 1
mov ecx, 0x208
sub ecx, eax
push ecx
push str.storm
lea edx, [esp + 0x4c]
push 0x208
push edx
call fcn.00421daa
add esp, 0x10
lea eax, [esp + 0x44]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
push edi
lea esi, [esp + 0x30]
call fcn.00408f60
push str.mdproxyd.xml
push eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x470], ebx
call fcn.00408f60
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x46c], 1
call fcn.00401dc0
mov esi, 8
cmp dword [esp + 0x24], esi
jb 0x408abf
mov edx, dword [esp + 0x10]
push edx
call fcn.00420bda
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], bx
jb 0x408ae3
mov eax, dword [esp + 0x2c]
push eax
call fcn.00420bda
add esp, 4
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00420bdf
add esp, 0x458
ret
Function at 0x408f60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43aa58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401dc0
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408fc0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.004038c0
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401dc0
cmp dword [esp + 0x28], 8
jb 0x409007
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00420bda
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret

Function at 0x4092f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a02e
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
lea edi, [esi + 4]
mov dword [esi], vtable.CStormLivDaily.0
mov dword [esp + 0x10], esi
mov dword [edi], 0
push 0
mov dword [esp + 0x434], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x206
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.00422b60
push 0x206
lea ecx, [esp + 0x22e]
push 0
push ecx
mov word [esp + 0x234], 0
call fcn.00422b60
lea edx, [esp + 0x2c]
add esp, 0x18
test edx, edx
je 0x4093d0
lea eax, [esp + 8]
push eax
mov ecx, edx
push ecx
lea edx, [esp + 0x14]
push edx
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_storm2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4093d0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x14]
push ecx
push str._scorelog.dll
lea edx, [esp + 0x224]
push 0x104
push edx
call fcn.0042137d
lea eax, [esp + 0x22c]
push edi
push eax
call fcn.00409650
add esp, 0x18
test eax, eax
jl 0x409411
mov edi, dword [edi]
test edi, edi
je 0x409411
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push 0
push edi
call edx
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00420bdf
add esp, 0x42c
ret
Function at 0x40a620
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
xor ecx, ecx
cmp dword [eax + 0x90], ecx
push esi
push edi
mov dword [esp + 0x10], ecx
jbe 0x40a6d9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edi, [eax + 0x88]
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x14], edi
mov edi, edi
cmp edi, edi
mov esi, dword [edi + 4]
je 0x40a65c
call fcn.00421af8
cmp ebx, esi
je 0x40a6cd
cmp ebx, dword [edi + 4]
jne 0x40a66a
call fcn.00421af8
mov eax, dword [ebx + 8]
cmp byte [eax + 0x38], 0
je 0x40a6b6
cmp dword [eax + 0x34], 0x10
jb 0x40a67e
mov eax, dword [eax + 0x20]
jmp 0x40a681
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
jmp 0x40a6bb
mov esi, 0x2000
add dword [esp + 0x10], esi
cmp ebx, dword [edi + 4]
jne 0x40a6c9
call fcn.00421af8
mov ebx, dword [ebx]
jmp 0x40a650
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 8
ret
Function at 0x40b210
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43af80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x10]
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x10000000
push 0
push 0
push 0
push str.Mozilla_4.0__compatible___
mov byte [ebp + 0x13], 1
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
je 0x40b3db
cmp eax, 0xffffffff
je 0x40b3db
push 0x408060
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x40b2c8
sub eax, 1
je 0x40b2af
sub eax, 1
jne 0x40b2f6
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b2a2
mov eax, 0x1bb
mov ecx, dword [esi + 0xa0]
push ecx
push 0
push 3
jmp 0x40b2e2
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b2bb
mov eax, 0x50
mov ecx, dword [esi + 0xa0]
push ecx
push 0
push 3
jmp 0x40b2e2
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b2d4
mov eax, 0x15
mov ecx, dword [esi + 0xa0]
push ecx
push 0x8000000
push 1
mov edx, dword [ebp + 0x14]
push edx
push ebx
push eax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40b3c6
cmp eax, 0xffffffff
je 0x40b3c6
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40b32b
push 0x4462cc
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], str.connect_failed...
call fcn.00422a93
lea edx, [esi + 0x10]
push edx
mov edx, edi
call fcn.004081c0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b373
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x40b367
sub eax, 1
je 0x40b35b
sub eax, 1
jne 0x40b379
mov dword [esi + 0x80], 0x1bb
jmp 0x40b379
mov dword [esi + 0x80], 0x50
jmp 0x40b379
mov dword [esi + 0x80], 0x15
jmp 0x40b379
mov dword [esi + 0x80], eax
test ebx, ebx
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x84], eax
je 0x40b391
lea ecx, [esi + 0x2c]
push ecx
mov edx, ebx
call fcn.004081c0
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x40b3a1
lea eax, [esi + 0x48]
push eax
call fcn.004081c0
mov eax, esi
call fcn.0040a080
mov eax, esi
call fcn.00409fa0
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4462cc
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.connect_failed...
call fcn.00422a93
push 0x4462cc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.open_internet_failed...
call fcn.00422a93
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
mov byte [ebp + 0x13], 0
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
mov eax, 0x40b40f
ret
Function at 0x40c120
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
push edi
mov edi, 0x10
je 0x40c23d
cmp dword [esi + 0x34], edi
jb 0x40c140
mov ecx, dword [esi + 0x20]
jmp 0x40c143
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x40c14d
mov eax, dword [esi + 4]
jmp 0x40c150
lea eax, [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebp
call fcn.00421f49
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c172
mov ecx, dword [esi + 0x30]
add ecx, dword [esi + 0x14]
sub eax, edx
cmp dword [esi + 0x34], edi
push ebx
lea ebx, [ecx + eax + 0x3c]
mov dword [esp + 0x18], ebx
jb 0x40c196
mov esi, dword [esi + 0x20]
jmp 0x40c199
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40c295
cmp edi, 0xffffffff
je 0x40c295
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edx, [esp + 0x14]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x40c219
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40c219
cmp esi, dword [esp + 0x14]
ja 0x40c219
push 0
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x40c1f2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esi, edx
push edi
mov word [esi + eax], 0xa0d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 0xc
ret 4
cmp dword [esi + 0x34], edi
jb 0x40c247
mov ecx, dword [esi + 0x20]
jmp 0x40c24a
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x40c254
mov eax, dword [esi + 4]
jmp 0x40c257
lea eax, [esi + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push ecx
call fcn.00421f49
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c278
sub eax, edx
mov edx, dword [esi + 0x30]
add edx, dword [esi + 0x14]
pop edi
lea eax, [edx + eax + 0x31]
pop esi
add esp, 0xc
ret 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40c3a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x40c3dc
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c3cc
mov dword [esi + 0xc], edi
pop edi
mov eax, 1
pop ebp
ret
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40c3d9
push eax
call ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
push edi
lea ecx, [esi + 4]
push ecx
push 0x40c360
push edi
push edi
call fcn.00421124
mov ebx, eax
add esp, 0x18
cmp ebx, edi
je 0x40c430
mov eax, dword [esi + 8]
cmp eax, edi
je 0x40c424
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call ebp
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
pop ebx
pop edi
mov eax, 1
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop ebp
ret