joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e200
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x480bbc]
cmp dword [eax + 0x30], 0
je 0x45e2aa
cmp dword [ebx + 0x94], 0
jne 0x45e2a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e190
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e2a4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e26a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e2a4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004176a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e279
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ee0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45ee41
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040413c
jmp 0x45ee4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ff40
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ff81
mov eax, esi
call fcn.004460c4
test al, al
je 0x45ff81
mov eax, dword [ebx + 0x84]
call fcn.00445dc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ff81
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445dc0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x463648
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x463676
mov eax, ebx
call fcn.004640fc
cmp dword [ebx + 0x40], 0
je 0x46366f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4636e7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4636d9
cmp dword [ebx + 8], 0
je 0x463698
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4636aa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4636d9
cmp dword [ebx + 8], 0
je 0x46368b
cmp eax, 3
je 0x4636bd
dec eax
jne 0x46368b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46368b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46368b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x463705
cmp dword [ebx + 0x14], 0xcc
je 0x463705
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00463710
pop ebx
ret
Function at 0x475488
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4148ec]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4755cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47f79c], 0
jne 0x4754db
mov ecx, dword [0x47f8d0]
mov dl, 1
mov eax, dword [0x407268]
call fcn.0040bb28
call fcn.00403a88
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d10
mov eax, ebx
call fcn.00404888
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4755dc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405970
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404898
test eax, eax
jle 0x475573
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47556c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004042d4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042bc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004080e0
test eax, eax
jne 0x47556c
mov ebx, 0x15
jmp 0x475578
mov ebx, 0x10
jmp 0x475578
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47f79c]
call fcn.004753e0
mov eax, dword [ebp - 8]
call fcn.004753e0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4755d3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404070
lea eax, [ebp - 0x10]
mov edx, dword [0x4148ec]
call fcn.00404a88
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xbc0108
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbc0258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbc012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbc011a
add dl, dl
jne 0xbc0139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbc018c
xor eax, eax
add dl, dl
jne 0xbc0146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbc022d
add dl, dl
jne 0xbc0155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbc0160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbc016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbc0176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbc0182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbc0125
mov eax, 1
add dl, dl
jne 0xbc019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbc01a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbc0191
sub eax, ebx
mov ebx, 1
jne 0xbc01d8
mov ecx, 1
add dl, dl
jne 0xbc01be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbc01c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbc01b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbc0125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbc01ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbc01fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbc01e6
cmp eax, 0x7d00
jae 0xbc021d
cmp eax, 0x500
jb 0xbc0218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbc0125
cmp eax, 0x7f
ja 0xbc0220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbc0125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbc024e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbc0125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4010aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 0x20]
call fcn.00402393
mov eax, dword [ebp + 8]
lea edi, [esi + 0x1c]
call fcn.00402393
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
je 0x4010dd
push eax
call edi
mov al, byte [ebp + 0x10]
mov byte [esi + 0x3c], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x3d], al
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x54], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x64], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x401258
push ebx
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x401120
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40114d
cmp byte [ebp + 0x14], bl
je 0x40114b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x14]
push eax
push dword [esi + 0xc]
mov dword [ebp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [esi + 0xc]
call edi
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ebx
jmp 0x40114d
xor eax, eax
pop edi
pop ebx
leave
ret 0x18
Function at 0x40168e
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
push edi
push dword [esi + 0x58]
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [esi + 0x3e], 0
push dword [ebp + 0x10]
mov dword [esi + 0x30], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40171e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0x3e5
cmp eax, ebx
jne 0x401720
jmp 0x4016fa
call edi
cmp eax, ebx
jne 0x401700
push 1
call fcn.00401fc9
mov eax, esi
call fcn.00401fb8
test al, al
jne 0x40170b
push 0xa
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x34], 0
je 0x4016d7
cmp dword [esi + 0x2c], 0
jne 0x401712
mov eax, dword [esi + 0x28]
jmp 0x401720
mov eax, 0xe0000008
jmp 0x401720
mov esi, dword [esi + 0x28]
test esi, esi
jle 0x40171e
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x401923
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, eax
mov eax, dword [0x41b208]
mov edi, 0x41b208
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [0x41b208]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebx]
test eax, eax
jbe 0x40197a
push eax
lea eax, [ebp - 0x10]
push str.Range:_bytes_u__r_n
push eax
call fcn.00402920
mov eax, dword [ebp - 0x10]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004028d2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40198b
push eax
lea eax, [ebp - 4]
push eax
call fcn.004029ae
push 4
pop edi
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 4]
push eax
jne 0x4019be
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00401b3c
test eax, eax
je 0x4019c8
mov esi, eax
jmp 0x401ae3
push dword [ebp + 8]
call fcn.00401b01
jmp 0x4019b3
mov eax, dword [esi]
test eax, eax
jne 0x4019d6
mov esi, dword [esi + 0x28]
jmp 0x401ae3
and dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x20000013
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push eax
call edi
test eax, eax
jne 0x401a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4019b7
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [esi]
call edi
xor ecx, ecx
test eax, eax
jne 0x401a1f
mov dword [ebp - 8], eax
jmp 0x401a22
mov eax, dword [ebp - 8]
cmp byte [esi + 0x54], 0
je 0x401a64
cmp dword [ebp - 0xc], 0x130
je 0x401a64
push ecx
lea ecx, [ebp + 8]
push ecx
lea eax, [esi + 0x44]
push eax
push 0x4000000b
push dword [esi]
mov dword [ebp + 8], 0x10
mov dword [ebp + 0xc], eax
call edi
test eax, eax
jne 0x401a5f
push 0x10
push eax
push dword [ebp + 0xc]
call fcn.00416080
add esp, 0xc
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
sub edx, 0xc8
je 0x401acb
sub edx, 6
je 0x401ab3
sub edx, 0x62
je 0x401aac
sub edx, 0x61
je 0x401a9e
dec edx
dec edx
je 0x401a90
sub edx, 4
je 0x401a9e
mov edx, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [edx], eax
jmp 0x401ae1
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
mov esi, 0xe0000016
jmp 0x401ae3
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
mov esi, 0xe0000012
jmp 0x401ae3
mov esi, 0xe0000013
jmp 0x401ae3
cmp eax, ecx
jne 0x401ac0
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
jmp 0x401ae1
mov edx, dword [ebx]
add edx, eax
mov eax, dword [ebp + 0x28]
mov dword [eax], edx
jmp 0x401ae1
cmp eax, ecx
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
jbe 0x401adf
cmp dword [ebx], eax
jb 0x401adf
mov esi, 0xe0000010
jmp 0x401ae3
mov dword [ebx], ecx
xor esi, esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402515
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x4021b9
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00416080
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4021f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402214
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x402212
cmp eax, 4
je 0x402212
cmp eax, 1
je 0x402212
cmp eax, 2
je 0x402212
push 2
pop eax
jmp 0x402214
xor eax, eax
leave
ret 4

Function at 0x402ab2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ac9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x402adb
xor eax, eax
jmp 0x402b0c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402afe
cmp edi, eax
jae 0x402ad7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402af0
cmp edi, eax
jae 0x402ad7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402e20
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
lea ebx, [esi + 4]
push ebx
xor eax, eax
call fcn.00402fe7
mov eax, dword [esi + 0x24]
push dword [eax + 0x1c]
call fcn.00409559
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040252d
mov edi, eax
add edi, 0x10
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 8]
push eax
xor eax, eax
push eax
lea ecx, [esi + 0x2c]
push ecx
push 0x402e7b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
lea eax, [edi - 0x10]
call fcn.00402515
pop edi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4032c7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x403347
push esi
lea eax, [ebp - 4]
push eax
call fcn.00404d35
test al, al
jne 0x4032fe
push 8
pop esi
jmp 0x403353
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403347
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4188b0
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403350
cmp dword [ebp - 0x14], 0
je 0x403350
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x40333c
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x403350
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
jmp 0x403350
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.00415c18
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x403361
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [edi]
push ebx
xor ebx, ebx
push esi
sub eax, 0x10
mov dword [ebp - 4], ebx
call fcn.0040252d
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 8]
call fcn.0040233c
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x403466
push esi
lea eax, [ebp - 4]
push eax
call fcn.00404d35
test al, al
je 0x40344f
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040233c
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40344f
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403417
cmp dword [ebp - 0x14], ebx
je 0x403417
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0xc]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.00402920
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0xc]
call fcn.0040233c
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403444
cmp dword [ebp - 0x1c], ebx
je 0x403444
push dword [ebp - 0x20]
push edi
call fcn.00402497
mov bl, 1
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
push dword [ebp - 4]
call fcn.00415c18
mov al, bl
jmp 0x403479
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
push ebx
call fcn.00415c18
xor al, al
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40347e
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x41b040]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov edi, 0xc8
push 0x80000001
mov esi, ecx
mov dword [ebp - 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4034c8
xor al, al
jmp 0x40350a
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4034e7
cmp dword [ebp - 0x5c], edi
jbe 0x4034ff
mov edi, dword [esi]
push dword [edi - 0xc]
call fcn.0040233c
push eax
push 1
push ebx
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x78
leave
ret
Function at 0x40351c
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov dword [ebp - 0x5c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40355b
xor al, al
jmp 0x40358d
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403582
push dword [esi]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00415ea8
add ebp, 0x78
leave
ret

Function at 0x40359c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], 0xc8
xor ebx, ebx
push dword [ebp - 4]
call fcn.00415c13
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x4035ab
cmp eax, ebx
jne 0x4035fb
push edi
push esi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00402321
mov edi, dword [ebp + 0x10]
call fcn.00402393
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402515
mov bl, 1
pop edi
push esi
call fcn.00415c18
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40384d
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40387b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40388e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x403891
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
sub eax, 0x10
call fcn.0040252d
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add ebx, 0x10
sub eax, 0x10
mov dword [ebp - 8], ebx
call fcn.0040252d
mov edi, eax
mov eax, dword [esi]
add edi, 0x10
xor esi, esi
cmp dword [eax - 0xc], esi
mov dword [ebp + 0x10], edi
jne 0x40397f
push 0x3c
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00416080
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push esi
push esi
push eax
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40391b
mov esi, dword [ebp + 8]
call fcn.00402ca3
lea eax, [edi - 0x10]
call fcn.00402515
lea eax, [ebx - 0x10]
jmp 0x4039ab
push dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00402321
cmp dword [ebp - 0x3c], 5
mov byte [ebp - 0xc], 0x2f
jne 0x403938
mov byte [ebp - 0xc], 0x5c
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00404ae7
mov ecx, eax
test ecx, ecx
jl 0x403974
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0xc]
dec eax
push ecx
call fcn.00404b01
lea edi, [ebp - 8]
call fcn.00402393
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402515
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
push 0x3a
xor ecx, ecx
lea esi, [ebp - 8]
call fcn.00402845
test eax, eax
jle 0x4039b4
add ebx, 0xfffffff0
mov eax, ebx
call fcn.0040252d
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
call fcn.00402515
mov eax, ebx
call fcn.00402515
mov eax, esi
jmp 0x403a13
mov edi, dword [edi - 0xc]
test edi, edi
je 0x4039e2
lea esi, [edi - 1]
lea edi, [ebp + 0x10]
call fcn.004027e2
cmp al, 0x5c
je 0x4039d3
push 0x5c
mov eax, edi
call fcn.00404fa7
push dword [ebx - 0xc]
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.004028d2
jmp 0x4039ed
lea eax, [ebp - 8]
lea edi, [ebp + 0x10]
call fcn.00402393
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040252d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00402515
lea eax, [ebx - 0x10]
call fcn.00402515
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret