joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a05c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a073
add esp, 0xfffffff0
call fcn.00403444
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d230
mov eax, dword [0x45f110]
cmp word [eax + 2], 0
jne 0x45a09b
mov eax, dword [0x45f110]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b734
mov eax, dword [0x45f1c4]
cmp word [eax + 2], 0
jne 0x45a0b5
mov eax, dword [0x45f1c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b92c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415528]
call fcn.004030f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415528]
call fcn.004030f0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f774]
call fcn.00426be0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a23c
mov eax, dword [0x45f034]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426fb0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45becc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45f034]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c4bc
test eax, eax
je 0x45a1aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408798
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4e4
test eax, eax
je 0x45a1be
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040e0
mov eax, dword [0x45ef20]
cmp byte [eax], 0
jne 0x45a1f2
mov eax, ebx
call fcn.0045a364
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045c0a8
mov eax, ebx
call fcn.0045ca6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a232
call fcn.0040349c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a5e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460bdc]
cmp dword [eax + 0x30], 0
je 0x45a68e
cmp dword [ebx + 0x94], 0
jne 0x45a688
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a574
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a688
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 0x45a64e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a688
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.00417890
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a65d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b1f0
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 0x45b225
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.00403f60
jmp 0x45b232
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ec4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c284
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c2c5
mov eax, esi
call fcn.004429e4
test al, al
je 0x45c2c5
mov eax, dword [ebx + 0x84]
call fcn.004426e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c2c5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004426e0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401081
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4010ca
push 0xea60
push eax
mov byte [esi + 0x70], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4010c1
cmp dword [ebp - 4], 0x103
jne 0x4010c1
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x60]
sub eax, 0x10
call fcn.00402f79
mov eax, dword [esi + 0x38]
sub eax, 0x10
call fcn.00402f79
mov eax, dword [esi + 0x20]
sub eax, 0x10
call fcn.00402f79
mov eax, dword [esi + 0x1c]
sub eax, 0x10
call fcn.00402f79
mov eax, dword [esi + 0x18]
sub eax, 0x10
call fcn.00402f79
leave
ret

Function at 0x401103
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 0x20]
call fcn.00402d6c
mov eax, dword [ebp + 8]
lea edi, [esi + 0x1c]
call fcn.00402d6c
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 0x401136
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 0x4012b1
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 0x401179
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4011a6
cmp byte [ebp + 0x14], bl
je 0x4011a4
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 0x4011a6
xor eax, eax
pop edi
pop ebx
leave
ret 0x18
Function at 0x401cad
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 0x401d3d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0x3e5
cmp eax, ebx
jne 0x401d3f
jmp 0x401d19
call edi
cmp eax, ebx
jne 0x401d1f
push 1
call fcn.004026b9
mov eax, esi
call fcn.0040269d
test al, al
jne 0x401d2a
push 0xa
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x34], 0
je 0x401cf6
cmp dword [esi + 0x2c], 0
jne 0x401d31
mov eax, dword [esi + 0x28]
jmp 0x401d3f
mov eax, 0xe0000008
jmp 0x401d3f
mov esi, dword [esi + 0x28]
test esi, esi
jle 0x401d3d
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x401d46
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
push dword [esi + 0x58]
xor ebx, ebx
mov byte [esi + 0x34], bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push ebx
push dword [esp + 0x20]
mov byte [esi + 0x3e], bl
push dword [esp + 0x20]
mov dword [esi + 0x30], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x401dd1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebp, 0x3e5
cmp eax, ebp
jne 0x401dd3
jmp 0x401dae
call edi
cmp eax, ebp
jne 0x401db3
push 1
call fcn.004026b9
mov eax, esi
call fcn.0040269d
test al, al
jne 0x401dbd
push 0xa
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x34], bl
je 0x401d8b
cmp dword [esi + 0x2c], ebx
jne 0x401dc4
mov eax, dword [esi + 0x28]
jmp 0x401dd3
mov eax, 0xe0000008
jmp 0x401dd3
mov esi, dword [esi + 0x28]
cmp esi, ebx
jle 0x401dd1
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x401fd6
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, eax
mov eax, dword [0x4243c4]
mov edi, 0x4243c4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [0x4243c4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
jbe 0x40202f
push eax
lea eax, [ebp - 0x10]
push str.Range:_bytes_u__r_n
push eax
call fcn.00402b38
mov eax, dword [ebp - 0x10]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x402040
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402de1
cmp dword [ebp + 0xc], 4
lea eax, [ebp - 4]
push edi
push eax
jne 0x402072
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.004021ff
cmp eax, edi
je 0x40207c
mov esi, eax
jmp 0x402199
push dword [ebp + 8]
call fcn.004021b7
jmp 0x402067
mov eax, dword [esi]
cmp eax, edi
jne 0x40208a
mov esi, dword [esi + 0x28]
jmp 0x402199
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x20000013
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push eax
mov dword [ebp - 0x14], 4
call edi
test eax, eax
jne 0x4020b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40206b
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 0x4020d5
mov dword [ebp - 8], eax
jmp 0x4020d8
mov eax, dword [ebp - 8]
cmp byte [esi + 0x54], 0
je 0x40211a
cmp dword [ebp - 0xc], 0x130
je 0x40211a
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 0x402115
push 0x10
push eax
push dword [ebp + 0xc]
call fcn.0041eb30
add esp, 0xc
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
sub edx, 0xc8
je 0x402181
sub edx, 6
je 0x402169
sub edx, 0x62
je 0x402162
sub edx, 0x61
je 0x402154
dec edx
dec edx
je 0x402146
sub edx, 4
je 0x402154
mov edx, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [edx], eax
jmp 0x402197
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
mov esi, 0xe0000016
jmp 0x402199
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
mov esi, 0xe0000012
jmp 0x402199
mov esi, 0xe0000013
jmp 0x402199
cmp eax, ecx
jne 0x402176
mov eax, dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [eax], ecx
jmp 0x402197
mov edx, dword [ebx]
add edx, eax
mov eax, dword [ebp + 0x28]
mov dword [eax], edx
jmp 0x402197
cmp eax, ecx
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
jbe 0x402195
cmp dword [ebx], eax
jb 0x402195
mov esi, 0xe0000010
jmp 0x402199
mov dword [ebx], ecx
xor esi, esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402f79
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x402899
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0041eb30
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 0x4028d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4028f9
mov eax, dword [ebp - 0x30]
cmp eax, 3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x4028f7
cmp eax, 4
je 0x4028f7
cmp eax, 1
je 0x4028f7
cmp eax, 2
je 0x4028f7
push 2
pop eax
jmp 0x4028f9
xor eax, eax
leave
ret 8

Function at 0x4033e1
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 0x4033f8
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40340a
xor eax, eax
jmp 0x40343b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40342d
cmp edi, eax
jae 0x403406
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40341f
cmp edi, eax
jae 0x403406
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403791
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea edi, [esi + 4]
push edi
xor eax, eax
call fcn.00403979
mov eax, dword [esi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [edi]
call ebx
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.0040334b
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [ebp - 4]
push edi
push eax
call ebx
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
lea ecx, [esi + 0x30]
push ecx
push 0x403810
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
lea eax, [edi - 0x10]
call fcn.00402f79
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x404015
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 0x404095
push esi
lea eax, [ebp - 4]
push eax
call fcn.00402bb9
test al, al
jne 0x40404c
push 8
pop esi
jmp 0x4040a1
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404095
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x420aec
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40409e
cmp dword [ebp - 0x14], 0
je 0x40409e
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x40408a
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x40409e
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
jmp 0x40409e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041e6cf
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x4040bb
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.00402f91
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0xc]
call fcn.00402b4b
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4041d2
push esi
lea eax, [ebp - 4]
push eax
call fcn.00402bb9
test al, al
je 0x4041bb
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
lea esi, [ebp - 0xc]
call fcn.00402b4b
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4041bb
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], 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 0x404165
cmp dword [ebp - 0x14], ebx
je 0x404165
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
push dword [ebp + 8]
movzx eax, word [eax]
push ecx
push eax
jmp 0x404172
push dword [ebp + 8]
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00402b38
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 8]
call fcn.00402b4b
push eax
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4041b0
cmp dword [ebp - 0x1c], ebx
je 0x4041b0
push dword [ebp - 0x20]
push edi
call fcn.004035d2
mov bl, 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402f79
push dword [ebp - 4]
call fcn.0041e6cf
mov al, bl
jmp 0x4041e5
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402f79
push ebx
call fcn.0041e6cf
xor al, al
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4041ea
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xdc
mov eax, dword [0x424050]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x64], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404238
xor al, al
jmp 0x4042d5
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
sub eax, 0x10
call fcn.00402f91
add eax, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x404287
jge 0x404276
push 0x80070057
call fcn.0040319b
mov eax, dword [edi]
cmp byte [eax], 0x20
je 0x404287
push 0x20
lea eax, [ebp - 0x60]
call fcn.00406daa
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00402f2b
cmp dword [ebp - 0x58], ebx
mov edi, dword [ebp - 0x60]
jne 0x4042a7
cmp dword [ebp - 0x64], 0xc8
jbe 0x4042be
mov eax, dword [edi - 0xc]
mov esi, dword [esi]
push eax
push edi
push 1
push ebx
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
call fcn.00402f79
cmp dword [ebp - 0x58], ebx
sete al
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0x78
leave
ret

Function at 0x4042e7
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 [0x424050]
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 0x404326
xor al, al
jmp 0x404363
mov eax, dword [esi]
push edi
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]
mov edi, eax
test edi, edi
jne 0x404352
push dword [esi]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0041e95f
add ebp, 0x78
leave
ret
Function at 0x4044b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
push dword [ebp - 4]
call fcn.0041e6ca
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x4044f6
inc dword [ebp - 4]
jmp 0x4044c5
test eax, eax
jne 0x404544
cmp dword [ebp - 8], 1
je 0x40451c
cmp dword [ebp - 8], 4
jne 0x4044c5
push dword [ebx]
push 0x420a74
push edi
call fcn.00402b38
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x404548
mov eax, dword [ebp - 4]
push esi
push ebx
lea esi, [ebp + 0xc]
mov byte [eax + ebx], 0
call fcn.004032f7
call fcn.00402d6c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402f79
mov byte [ebp + 0xf], 1
pop esi
jmp 0x404548
mov byte [ebp + 0xf], 0
push ebx
call fcn.0041e6cf
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x404784
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4047b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test esi, esi
mov ebx, eax
je 0x4047c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
ret