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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xbf8d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xbf8d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xbf8d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xbf8d94
push eax
push esi
call fcn.00bfb20b
add esp, 8
pop esi
ret 0x10

Function at 0xbf8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbf8e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xbf8e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xc11320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bfadff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xbf8dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xbf8e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbf8ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xbf8eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xc11320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bfadff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xbf8eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xbf8e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xbf9000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xbf9131
push esi
call fcn.00bfc145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00beb080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xbf9131
push 0
push ebp
call fcn.00beb3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00beb260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xbf908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00beb2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xbf9121
push 0xc11918
push edi
call fcn.00bfa3f0
push eax
push ebx
push esi
call fcn.00bf8f60
push 0xc118f8
push edi
call fcn.00bfa3f0
push eax
push ebx
push esi
call fcn.00bf8f60
push 0xc118d8
push edi
call fcn.00bfa3f0
push eax
push ebx
push esi
call fcn.00bf8f60
push 0xc118c0
push edi
call fcn.00bfa3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00bf8f60
push 0xc118a0
push edi
call fcn.00bfa3f0
push eax
push ebx
push esi
call fcn.00bf8f60
push 0xc11888
push edi
call fcn.00bfa3f0
push eax
push ebx
push esi
call fcn.00bf8f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xbfa1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bfa140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bfa140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bfa140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bfa140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbfabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbfac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc0c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbfac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbfac52
xor eax, eax
pop esi
leave
ret 4
Function at 0xa58f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa6d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa59002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a5cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa59002
lea edx, [esp + 0x14]
push edx
push 0xa73140
call fcn.00a546e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a5d20b
push 0x10
call fcn.00a5d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa58fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a491c0
jmp 0xa58fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a58b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa58ff0
mov ecx, edi
call fcn.00a492c0
push edi
call fcn.00a5d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa59021
inc ebx
cmp ebx, 0x20
jb 0xa58f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa5c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a5c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a5c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a5c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a5c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa5c230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa5c2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0xa5c2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00a5c230
mov esi, eax
add esp, 8
test esi, esi
jne 0xa5c2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0xa5c27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0xa5c2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0xa5cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa5cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa6e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa5cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa5cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438cb3
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
and ebx, edi
sub edi, 0xc2ccdb73
call fcn.00438ceb
add edi, 0xd96ffc0b
xor dword [ecx], esi
or edi, ebx
or edi, ebx
sub ebx, ebx
inc ecx
inc ebx
sub edi, 0x21e70340
cmp ecx, eax
jne fcn.00438cb3
inc edi
sub ebx, 0xd7c19c5d
ret

Function at 0x408ac0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov esp, dword [edi + 0x758b560c]
adc byte [ecx + 0x10605e4d], cl
je 0x408b3e
add byte [edi], ah
in eax, 0x6a
add byte [ebp + 0x4589fc55], cl
add ebp, dword [edx]
push edx
pushal
push ecx
add al, 0x8d
inc ebp
hlt
cld
add byte [eax], al
add byte [eax], al
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0x52
shr dword [ebx + esi*8], 0x8b
cmp eax, sym.imp.WSOCK32.dll_WSAGetLastError
inc ebp
push es
sal byte [ebp + 0xa], 0x89
push es
pop edi
pop esi
jmp ebp
nop
nop
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
xchg ebp, eax
stosb byte es:[edi], al
jne 0x408b5d
push 0
invalid
push esi
inc ebp
jne 0x408aee
fdiv st(4)
push eax
je 0x408ba8
add al, 0x8d
dec ebp
lock xchg byte [ecx], al
push ecx
out 0xc7, al
dec ebp
cld
add byte [eax], al
add byte [eax], al
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
psubb mm7, mm7
jne 0x408bb3
push edi
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
test eax, eax
loope 0x408b9e
mov dword [esi], eax
dec dword [edi + edi*8 + 0x25c25de5]
add bh, bh
xlatb
call edi
invalid
cmp ah, 0xa
add byte [esi - 0x75], bl
in eax, 0x5d
ret 0xc
je 0x408bfa
cld
mov dword [esi], eax
pop esi
neg eax
xchg esp, eax
shl byte [0xfffeee82], 5
jle 0x408bd6
add dword [eax], eax
mov esp, ebp
movsb byte es:[edi], byte [esi]
ret 0xc
call esi
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
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
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1000d50f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x100156af
call fcn.10013e2a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1000d730
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.10010b27
add esp, 0x10
test eax, eax
js 0x1000d72a
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x1000d5b3
push edi
call fcn.10008238
pop ecx
test al, al
je 0x1000d5b3
mov eax, edi
call fcn.10014020
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d5c5
push edi
lea ecx, [ebp - 0x424]
call fcn.10010b27
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.10010b27
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000d72a
push 0x60
push ebx
push eax
call fcn.1000eab1
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1000d61d
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.1000eab1
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x1000d61d
call fcn.10003821
mov ebx, eax
jmp 0x1000d6f9
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1000d644
call fcn.10003821
jmp 0x1000d6ec
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000d63a
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x1000d677
mov ebx, 0x8007000e
jmp 0x1000d6ee
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10010b27
jmp 0x1000d69d
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000d670
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.10010b27
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.10010b27
mov ebx, eax
test edi, edi
je 0x1000d6f9
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d712
lea ecx, [ebp - 0x418]
call fcn.1000ccf9
or dword [ebp - 4], 0xffffffff
jmp 0x1000d722
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d718
mov eax, ebx
jmp 0x1000d75e
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000d745
lea ecx, [ebp - 0x418]
call fcn.1000ccf9
or dword [ebp - 4], 0xffffffff
jmp 0x1000d755
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d74b
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10013d77
ret 0x10
Function at 0x1000f2f0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10018bc0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f37c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000f37f
mov eax, dword [ebp - 0x30]
sub eax, 1
je 0x1000f378
dec eax
sub eax, 1
je 0x1000f378
sub eax, 1
jne 0x1000f37f
mov esi, edi
jmp 0x1000f37f
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.10010b27
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x10010b27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10010b36
pop dword [ebp - 0x2c]
mov eax, 0xa5647b28
sub eax, 0x95636ff2
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3bb58
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xb37dd153
add ecx, 0x4c827deb
mov ebx, eax
mov esi, 0xced94aeb
add esi, 0x41290915
add esi, dword [ebp - 0x2c]
mov edi, 0x7132fb40
add edi, 0x9b643d08
sub dword [ebp - 0x10], 0x87f9ac53
mov edx, dword [esi]
xor dword [ebp - 0x18], 0xdf399670
add edx, edi
xor dword [ebp - 0x24], ebx
mov dword [ebx], edx
add dword [ebp - 4], esi
add ebx, 4
add esi, 0xb6bb953c
add esi, 0x49446ac8
loop 0x10010b90
add eax, 0x12fcb
mov ebx, eax
add eax, 0xf1dfb8c6
add eax, 0xe20473f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40b0d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b10f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b10f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b10f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b10f
cmp dword [ecx + 0x74], 0xe
jbe 0x40b10f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4648e4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x464912
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x464930
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046484a
jmp 0x464930
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464930
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046484a
test edi, edi
mov eax, edi
jne 0x46491a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x408030]
push edi
mov dword [esp + 0xa4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x40122b
cmp dword [esp + 0xc], 4
jne 0x40127c
mov eax, dword [esp + 0x10]
cmp eax, 0x5a
jb 0x4011d0
mov eax, 0x18
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x401213
mov eax, dword [esp + 0x14]
cmp eax, 0x8ae
jb 0x4011f6
mov eax, 0x14
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x7ce
jb 0x40127c
mov eax, 0x12
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
jae 0x40127c
mov eax, 0x11
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40127c
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x40124f
mov eax, 0x21
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x40127c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401272
mov eax, 0x22
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 1
mov eax, 0x24
je 0x401281
mov eax, 0x50
mov ecx, dword [esp + 0xa4]
call fcn.004019c1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4012c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x408030]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push esi
push edi
push str._r:n__q:a
mov dword [esp + 0x170], eax
xor eax, eax
push str.50COMUPD.EXE
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x17c]
push str.RedistCOMCTL32_
push edi
lea eax, [esp + 0x74]
push 0x406368
push eax
mov dword [esp + 0x38], 0x44
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x84]
push eax
push 0
call ebp
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x178]
test eax, eax
je 0x4013c7
push str._r:n__q:a
push str.DCOM95.EXE
push str.RedistDCOM_
push edi
lea ecx, [esp + 0x74]
push 0x406368
push ecx
call ebx
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
push 0
call ebp
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004019c1
add esp, 0x160
ret