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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x42d028
call fcn.00411686
call fcn.00411456
test eax, eax
je 0x41a046
mov esi, esp
push 0x42641c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7b0], eax
cmp dword [0x42a7b0], 0
jne 0x419eae
push str.loading_DLL_advapi32.dll_failed_n
push 0x425bc8
push str.usb_service_load_dll
call fcn.004115aa
add esp, 0xc
xor eax, eax
jmp 0x41a04b
mov esi, esp
push str.OpenSCManagerA
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7bc], eax
mov esi, esp
push str.OpenServiceA
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7c0], eax
mov esi, esp
push str.ChangeServiceConfigA
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7c4], eax
mov esi, esp
push str.CloseServiceHandle
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7c8], eax
mov esi, esp
push str.CreateServiceA
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7cc], eax
mov esi, esp
push str.DeleteService
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7d0], eax
mov esi, esp
push str.StartServiceA
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7d4], eax
mov esi, esp
push str.QueryServiceStatus
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7d8], eax
mov esi, esp
push str.ControlService
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004114a6
mov dword [0x42a7dc], eax
cmp dword [0x42a7bc], 0
je 0x41a016
cmp dword [0x42a7c0], 0
je 0x41a016
cmp dword [0x42a7c4], 0
je 0x41a016
cmp dword [0x42a7c8], 0
je 0x41a016
cmp dword [0x42a7cc], 0
je 0x41a016
cmp dword [0x42a7d0], 0
je 0x41a016
cmp dword [0x42a7d4], 0
je 0x41a016
cmp dword [0x42a7d8], 0
je 0x41a016
cmp dword [0x42a7dc], 0
jne 0x41a046
mov esi, esp
mov eax, dword [0x42a7b0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.004114a6
push str.loading_exported_functions_of_advapi32.dll_failed
push 0x425bc8
push str.usb_service_load_dll
call fcn.004115aa
add esp, 0xc
xor eax, eax
jmp 0x41a04b
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.004114a6
mov esp, ebp
pop ebp
ret
Function at 0x41b920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0x1c]
mov ecx, 7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42a15c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x42d04f
call fcn.00411686
mov dword [ebp - 0x18], 0x103
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x310
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.UpperFilters
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.004114a6
test eax, eax
je 0x41b99e
push 0x104
push 0
mov eax, dword [ebp + 8]
add eax, 0x310
push eax
call fcn.004112cb
add esp, 0xc
mov dword [ebp - 0x18], 0x103
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x414
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.LowerFilters
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.004114a6
test eax, eax
je 0x41b9ed
push 0x104
push 0
mov eax, dword [ebp + 8]
add eax, 0x414
push eax
call fcn.004112cb
add esp, 0xc
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x41ba24]
call fcn.004113e3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004112c1
add esp, 0xdc
cmp ebp, esp
call fcn.004114a6
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x840ed8]
mov ecx, dword [0x83fe28]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x4012bb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x840ed8], 0x959
jne 0x4012a5
push 0
push 0
call esi
push 0
push 0
push str.zunalicohejonasuwizozuluhudo
push str.kutanapilobidoleminovagowopoheve
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 4]
push eax
call fcn.00401050
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401273
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
cmp dword [0x840ed8], 0x400
push ebx
push esi
push edi
jne 0x4016a3
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov eax, dword [esp + 0x10]
push eax
push ecx
push 0x41f4b4
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [esp + 0x1c]
call fcn.004017a0
lea esi, [esp + 0x1c]
call fcn.004017c0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
cmp esi, 0x988
jge 0x4016c5
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
call edi
cmp esi, 0x2af2a3
jle 0x4016d7
cmp ebx, 0x78abdb45
jne 0x4016e0
inc esi
cmp esi, 0x1c5d
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, edi
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40170d
inc esi
cmp esi, 0x4f6a4
jl 0x4016f0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40172d
cmp ebx, 0x785074d5
jne 0x401736
inc esi
cmp esi, 0x11915
jl 0x401719
mov eax, dword [0x421e9c]
mov dword [0x840ed8], eax
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_SetSystemTime]
mov edi, 0x3078f
cmp dword [0x840ed8], 0x51f
jne 0x40177d
xor eax, eax
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + 0x10], cx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call esi
sub edi, 1
jne 0x401750
mov eax, dword [0x83fe28]
mov dword [0x84046c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4027a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4210c8]
jne 0x4027aa
repz ret
jmp fcn.00405f6e
Function at 0x405b9a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040350a
and dword [ebp - 4], 0
cmp dword [0x4228a4], 0
mov ebx, eax
jne 0x405c4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405cfc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405cfc
push eax
call fcn.00403498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4228a4], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4228a8], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4228ac], eax
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x4228b4], eax
test eax, eax
je 0x405c4b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x4228b0], eax
mov eax, dword [0x4228b0]
cmp eax, ebx
je 0x405ca3
cmp dword [0x4228b4], ebx
je 0x405ca3
push eax
call fcn.00403513
push dword [0x4228b4]
mov esi, eax
call fcn.00403513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ca3
test edi, edi
je 0x405ca3
call esi
test eax, eax
je 0x405c9a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c9a
test byte [ebp - 0xc], 1
jne 0x405ca3
or dword [ebp + 0x10], 0x200000
jmp 0x405cdc
mov eax, dword [0x4228a8]
cmp eax, ebx
je 0x405cdc
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x405cdc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405cdc
mov eax, dword [0x4228ac]
cmp eax, ebx
je 0x405cdc
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x405cdc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4228a4]
call fcn.00403513
pop ecx
test eax, eax
je 0x405cfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405cfe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x402eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c1f0]
jne 0x402eba
repz ret
jmp fcn.00405b0e

Function at 0x40c5ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406963
and dword [ebp - 0x14], 0
cmp dword [0x41e3e8], 0
mov dword [ebp - 0x18], eax
jne 0x40c65f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e3e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e3ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e3f0], eax
call edi
push eax
call esi
mov dword [0x41e3f8], eax
test eax, eax
je 0x40c65f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e3f4], eax
mov eax, dword [0x41e3f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c6b8
cmp dword [0x41e3f8], ecx
je 0x40c6b8
push eax
call esi
push dword [0x41e3f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c6b8
test ebx, ebx
je 0x40c6b8
call edi
test eax, eax
je 0x40c6af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c6af
test byte [ebp - 8], 1
jne 0x40c6b8
or dword [ebp + 0x10], 0x200000
jmp 0x40c6eb
mov eax, dword [0x41e3ec]
cmp eax, dword [ebp - 0x18]
je 0x40c6eb
push eax
call esi
test eax, eax
je 0x40c6eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c6eb
mov eax, dword [0x41e3f0]
cmp eax, dword [ebp - 0x18]
je 0x40c6eb
push eax
call esi
test eax, eax
je 0x40c6eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e3e8]
call esi
test eax, eax
je 0x40c707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402eb0
leave
ret

Function at 0x40d6f1
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [0x41e840]
cmp dword [ebp + 8], esi
jle 0x40d738
call fcn.0040d6cd
xor byte [edi + esi], al
push 0
call dword [sym.imp.USER32.dll_SwitchDesktop]
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
inc esi
cmp esi, dword [ebp + 8]
jl 0x40d713
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402eb0
leave
ret 4
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x41fd30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x41fd57
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41fd5e
mov al, 1
jmp 0x41fe4b
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.00427740
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.00427740
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.00427780
add esp, 8
movzx eax, al
test eax, eax
je 0x41fda4
xor al, al
jmp 0x41fe4b
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41fde7
cmp dword [ebp - 0x34], 1
je 0x41fdee
cmp dword [ebp - 0x34], 3
je 0x41fe3e
jmp 0x41fe49
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x41fe1e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x41fe1e
xor al, al
jmp 0x41fe4b
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x41fe32
mov dword [ebp - 0x3c], 1
jmp 0x41fe39
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x41fe4b
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x41fe4b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret
Function at 0x42a7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x42a81c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x42a902
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x42a8b3
jg 0x42a845
cmp dword [ebp + 0xc], 0
jbe 0x42a8b3
cmp dword [ebp - 8], 0
jl 0x42a8b3
jg 0x42a853
cmp dword [ebp - 0xc], 0
jbe 0x42a8b3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x42a871
jl 0x42a865
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x42a871
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00426c80
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x42a8f6
jg 0x42a8c1
cmp dword [ebp + 0xc], 0
jbe 0x42a8f6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x42a8f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42aa30
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50568c
mov eax, dword fs:[0]
push eax
mov eax, 0x1fe0
call fcn.00503200
mov eax, dword [0x5845f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1fc0], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.00419fb0
mov dword [ebp - 0x1fc8], eax
mov eax, dword [ebp - 0x1fc0]
or eax, 1
mov dword [ebp - 0x1fc0], eax
push 0
push 0
push 0
push 0
mov ecx, 0x50c000
call fcn.0041c700
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1fbc], eax
push 0
push 0x80000000
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00426820
push eax
mov ecx, dword [ebp - 0x1fbc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x1fb8], eax
cmp dword [ebp - 0x1fb8], 0
je 0x42aaec
cmp dword [ebp - 0x1fbc], 0
jne 0x42ab63
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1fcc], esp
push str.error_making_request_to_remote_uri
call fcn.00419a20
mov ecx, 0x584e40
call fcn.0042b0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1fc4], eax
cmp dword [ebp - 0x1fc4], 0x2efd
je 0x42ab25
jmp 0x42ab45
push 0
lea ecx, [ebp - 0x1fdc]
call fcn.0042ac90
push 0x553b6c
lea edx, [ebp - 0x1fdc]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x42ab63
push 2
lea ecx, [ebp - 0x1fec]
call fcn.0042ac90
push 0x553b6c
lea eax, [ebp - 0x1fec]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 0x1fb4], 0
lea ecx, [ebp - 0x1fb4]
push ecx
push 0x1fa0
lea edx, [ebp - 0x1fb0]
push edx
mov eax, dword [ebp - 0x1fb8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42abb2
cmp dword [ebp - 0x1fb4], 0
je 0x42abb2
mov ecx, dword [ebp - 0x1fb4]
push ecx
lea edx, [ebp - 0x1fb0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00426080
jmp 0x42ab6d
mov eax, dword [ebp - 0x1fb8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1fbc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0041b960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502b55
mov esp, ebp
pop ebp
ret