joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ae364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0044c1c2
mov edi, eax
add esp, 4
test edi, edi
je 0x42e2cd
push 1
mov dword [ebp - 4], 0
call fcn.004493d3
add esp, 4
mov dword [edi + 4], eax
jmp 0x42e2cf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403f50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ebx, ax
mov dword [ebp - 4], 3
test edi, edi
je 0x42e330
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x42e330
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], bx
jne 0x42e354
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x42e377
cmp byte [ebp + 0xc], 0
je 0x42e363
push esi
call fcn.004495fd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x42e383
mov esi, str.ios_base::badbit_set
jmp 0x42e393
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00409770
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404c80
push 0x4a2a34
lea eax, [ebp - 0x30]
push eax
call fcn.00462ed2
int3
Function at 0x42f070
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485530
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ae364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
mov dword [edi], 0
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 4], 0
sub eax, 0
je 0x42f0d0
sub eax, esi
je 0x42f0cb
sub eax, esi
jne 0x42f0d0
xor esi, esi
jmp 0x42f0d0
mov esi, 4
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00411980
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x42f0e9
mov eax, dword [eax]
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
push eax
mov ecx, edi
call fcn.00430d30
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42f135
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f12b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f154
push edx
push ecx
call fcn.0044c1f2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 8
call fcn.00466d4c
int3
Function at 0x431310
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4859c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ae364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], ebx
call fcn.00404430
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.00404430
mov ax, word [esi + 0x30]
lea ecx, [ebx + 0x34]
mov word [ebx + 0x30], ax
lea eax, [esi + 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00404430
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x4c]
call fcn.00404430
lea eax, [esi + 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x64]
call fcn.00404430
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0x7c]
call fcn.00404430
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 0x9c]
mov edi, dword [ebp + 0xc]
push 2
mov dword [ebp - 4], 5
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x98], eax
call fcn.0042f070
lea eax, [ebx + 0xa0]
mov byte [ebp - 4], 6
push esi
push eax
lea ecx, [ebx + 0x9c]
call fcn.00430600
mov byte [ebp - 4], 7
test edi, edi
jne 0x4313fc
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x43140e
lea eax, [ebx + 0xa0]
push eax
push dword [ebp + 8]
call fcn.00431890
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add eax, ecx
mov dword [eax + 0x10], 6
mov ecx, dword [eax + 0xc]
and ecx, 0x17
mov dword [eax + 0xc], ecx
test cl, 6
jne 0x43144f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test cl, 4
je 0x43145b
mov esi, str.ios_base::badbit_set
jmp 0x43146b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00409770
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.00404c80
push 0x4a2a34
lea eax, [ebp - 0x34]
push eax
call fcn.00462ed2
int3
Function at 0x434be0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x434bec
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00434c00
Function at 0x43f830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], 2
setne al
mov dword [ebp - 8], eax
call fcn.0043f660
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.0043f660
mov ecx, dword [ebx]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
jne 0x43f96d
mov eax, dword [ebp - 8]
push esi
push edi
lea edi, [ebp - 4]
add edi, eax
lea esi, [ebp - 4]
xor eax, 1
mov dword [ebp - 0xc], edi
add eax, esi
mov dword [ebp - 8], eax
movzx esi, byte [edi]
shl esi, 8
movzx eax, byte [eax]
or esi, eax
lea eax, [esi - 0xdc00]
cmp eax, 0x3ff
jbe 0x43f95a
lea eax, [esi - 0xd800]
cmp eax, 0x3ff
ja 0x43f985
mov ecx, ebx
call fcn.0043f660
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.0043f660
mov ecx, dword [ebx]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
jne 0x43f95a
mov eax, dword [ebp - 8]
movzx edi, byte [edi]
shl edi, 8
movzx eax, byte [eax]
or edi, eax
cmp edi, 0xdc00
jb 0x43f90b
cmp esi, 0xe000
jae 0x43f90b
and esi, 0x3ff
and edi, 0x3ff
shl esi, 0xa
or esi, edi
add esi, 0x10000
jmp 0x43f931
lea eax, [ebx + 0x14]
push 0xfffd
push eax
mov dword [ebp - 0x10], eax
call fcn.0043f730
add esp, 8
cmp edi, 0xd800
jb 0x43f972
cmp esi, 0xe000
jae 0x43f972
mov esi, edi
mov ecx, ebx
call fcn.0043f660
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.0043f660
mov ecx, dword [ebx]
mov edi, dword [ebp - 0xc]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
je 0x43f8d4
lea eax, [ebx + 0x14]
push 0xfffd
push eax
call fcn.0043f730
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x10]
call fcn.0043f730
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x14]
push esi
push eax
call fcn.0043f730
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f2a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x475726
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047559c
Function at 0x100296c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100b158]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
test byte [0x100b9f4], 0xc1
je 0x10029f3
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], ebx
call fcn.01008808
cmp dword [ebp - 0x210], ebx
jne 0x10029f3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetModuleFileNameW]
test eax, eax
jbe 0x10029f3
inc edi
push edi
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10014ac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x100b9f4], 0xc0
je 0x10029f3
cmp eax, 0x20
jge 0x10029f3
and dword [0x100b9f4], 0xffffffbf
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008059
leave
ret 4

Function at 0x1002c02
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
test ebx, ebx
je 0x1002c2e
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
jmp 0x1002c34
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
test esi, esi
jne 0x1002cf3
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1002cb8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1002caa
cmp ecx, dword [ebp + 8]
je 0x1002caa
push 0xd
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002c91
test byte [eax + 0x1c], 4
je 0x1002c91
push ecx
push dword [ebp + 8]
push 0x1001480
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010025bb
test ebx, ebx
je 0x1002d19
cmp dword [ebp - 4], 0
je 0x1002d19
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002d19
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1002ce1
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x1002ce1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ce1
test byte [eax + 0x1c], 4
je 0x1002ce1
push esi
push ebx
push dword [ebp + 0x10]
push 0x1001480
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100265a
test esi, esi
jne 0x1002c91
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1002c91
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x1002d19
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d19
test byte [eax + 0x1c], 4
je 0x1002d19
push esi
push ebx
push 0x1001480
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002727
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x10042aa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x100b008]
call fcn.01005dfe
push 0xf4
mov ebx, eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
xor esi, esi
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10043f3
push edi
mov edi, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x100430e
mov eax, 0x1001538
cmp dword [ebp + 0xc], esi
jne 0x10042ef
mov eax, 0x10015d0
push eax
push 0x7a
push dword [ebp - 4]
call fcn.010038ff
test eax, eax
jl 0x100430e
push esi
push dword [edi]
push edi
push 3
push dword [ebp - 4]
push esi
push ebx
call fcn.01002e53
push dword [0x100b008]
call fcn.01005e15
mov ebx, eax
cmp ebx, esi
je 0x10043f2
push 0x7a
push esi
push dword [ebp - 4]
mov dword [ebp + 8], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x10014c0
cmp dword [ebp + 0xc], esi
jne 0x1004343
mov eax, 0x1001560
push eax
push 0x7a
push dword [ebp - 4]
call fcn.010038ff
test eax, eax
jl 0x10043ce
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp - 4]
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10043a5
push esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x100439a
push esi
push dword [edi]
push edi
push 3
push ebx
push esi
push dword [ebp + 8]
call fcn.01002e53
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x10043f2
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10043f2
test byte [ecx + 0x1c], 2
je 0x10043f2
push eax
push 0x1001480
push 0x36
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100279a
jmp 0x10043f2
mov eax, dword [section..data]
cmp eax, section..data
je 0x10043f2
test byte [eax + 0x1c], 2
je 0x10043f2
push 0x1001480
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002595
pop edi
push 0x1001618
push 0xc8
call fcn.01008779
cmp dword [ebp - 4], esi
pop esi
pop ebx
je 0x1004412
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
inc eax
leave
ret 8
Function at 0x100804a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1008d50
call fcn.01008324
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100ce6c
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007e02
cmp eax, esi
jne 0x1007df5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1007e05
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1007ddc
xor esi, esi
inc esi
mov eax, dword [0x100ce68]
cmp eax, esi
jne 0x1007e18
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1007e47
mov eax, dword [0x100ce68]
test eax, eax
jne 0x1007e41
mov dword [0x100ce68], esi
push 0x10012d0
push 0x10012c4
call fcn.01007d3e
pop ecx
pop ecx
test eax, eax
je 0x1007e47
jmp 0x1007f6b
mov dword [0x100cb2c], esi
mov eax, dword [0x100ce68]
cmp eax, esi
jne 0x1007e6b
push 0x10012c0
push 0x10012b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100ce68], 2
cmp dword [ebp - 0x20], ebx
jne 0x1007e78
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x100ce78], ebx
je 0x1007e99
push 0x100ce78
call fcn.01008299
pop ecx
test eax, eax
je 0x1007e99
push ebx
push 2
push ebx
call dword [0x100ce78]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1007f6b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1007f03
cmp cx, bx
je 0x1007ebe
cmp dword [ebp - 0x1c], ebx
jne 0x1007f03
movzx ecx, word [eax]
cmp cx, bx
je 0x1007ed3
cmp cx, 0x20
ja 0x1007ed3
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1007ebe
test byte [ebp - 0x40], 1
je 0x1007edf
movzx ecx, word [ebp - 0x3c]
jmp 0x1007ee2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100cb28], eax
cmp dword [0x100cb1c], ebx
jne 0x1007f48
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1007f14
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1007ea8
cmp dword [0x100cb2c], ebx
jne 0x1007f56
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cb28]
jmp 0x1007f77
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008369
ret
call fcn.01008471
jmp 0x1007d9f
Function at 0x4010d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010ec
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4010fe
xor eax, eax
jmp 0x401130
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401122
cmp esi, eax
jae 0x4010fa
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401114
cmp esi, eax
jae 0x4010fa
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40375c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
push esi
xor esi, esi
push esi
push 0x8000027
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4037a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40388c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.00403707
test al, al
pop ecx
pop ecx
jne 0x4037ca
mov dword [ebp - 0xc], 0x18
jmp 0x403887
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x403887
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4037fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x403887
cmp dword [ebp - 0x14], esi
jl 0x403887
jg 0x40380a
cmp dword [ebp - 0x18], esi
jbe 0x403887
push ebx
push edi
jmp 0x403810
xor esi, esi
cmp dword [ebp - 0x14], esi
jg 0x403825
jl 0x403820
cmp dword [ebp - 0x18], 0xa00000
jae 0x403825
mov esi, dword [ebp - 0x18]
jmp 0x40382a
mov esi, 0xa00000
mov eax, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
sar eax, 0x1f
push dword [ebp - 0x1c]
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test esi, esi
mov edi, eax
mov ebx, edi
jbe 0x403862
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.004036e3
pop ecx
inc ebx
dec dword [ebp - 0x10]
pop ecx
jne 0x40384d
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
add dword [ebp - 0x20], esi
adc dword [ebp - 0x1c], eax
sub dword [ebp - 0x18], esi
sbb dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], eax
jg 0x40380e
jl 0x403883
cmp dword [ebp - 0x18], eax
ja 0x40380e
pop edi
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x403895
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
pop esi
je 0x4038a4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
not dword [eax]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4069dc
Capabilities:
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4030
call fcn.00428310
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
push edi
je 0x406b22
cmp dword [ebp + 8], esi
je 0x406b22
mov eax, dword [ebp + 0xc]
push 0x10
pop ebx
cmp dword [eax + 0x18], ebx
jb 0x406a10
mov eax, dword [eax + 4]
jmp 0x406a13
add eax, 4
push esi
push closesocket
push esi
push esi
push str.HTTP_1.0
push eax
push 0x449764
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x406b22
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x406b22
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 5
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x406a8d
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jb 0x406a79
mov eax, dword [eax]
push 0x449760
push eax
call fcn.004282f4
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x406a93
push edi
jmp 0x406b1c
lea eax, [ebp - 0x30]
push eax
call fcn.0042820b
mov edi, 0x4000
cmp eax, edi
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], eax
jb 0x406ae3
mov dword [ebp - 8], edi
jmp 0x406ae3
cmp dword [ebp - 0xc], 0
jbe 0x406afe
push dword [ebp - 0x14]
lea eax, [ebp - 0x4030]
push dword [ebp - 0xc]
push 1
push eax
call fcn.004281bf
add esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
sub eax, esi
add esp, 0x10
cmp eax, edi
jae 0x406add
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406b29
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x4030]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406ab1
push dword [ebp - 0x14]
call fcn.00428067
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp - 4]
pop ecx
jb 0x406b12
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call fcn.00428067
cmp dword [ebx + 0x18], 0x10
mov esi, dword [ebp - 4]
pop ecx
jb 0x406b48
mov eax, dword [esi]
jmp 0x406b4b
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0040375c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
pop ecx
pop ecx
je 0x406b70
cmp dword [ebx + 0x18], 0x10
jb 0x406b67
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406b22
mov ecx, dword [ebp + 0x18]
push ebx
call fcn.004059c4
cmp dword [ebx + 0x18], 0x10
jb 0x406b81
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
jmp 0x406b24
Function at 0x406b8c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x1c]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, 0x4000
cmp eax, edi
mov ebx, eax
jb 0x406baf
mov ebx, edi
test ebx, ebx
jbe 0x406c2a
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406c31
cmp byte [0x45f95c], 1
je 0x406c31
cmp dword [ebp - 4], 0
je 0x406c2a
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x406be8
mov eax, dword [eax + 4]
jmp 0x406beb
add eax, 4
push dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040ba5b
test eax, eax
je 0x406c31
mov eax, dword [ebp - 4]
add dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x1c]
cmp ecx, edi
jae 0x406c14
mov ebx, ecx
add dword [esi], eax
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
push dword [ebp + 0x24]
call fcn.00405d91
add esp, 0xc
test ebx, ebx
ja 0x406bb6
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x406c2c