joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43443c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x434458
cmp dword [esi + 4], 0
je 0x434485
test byte [ebx + 0x55], 1
jne 0x434477
mov eax, ebx
call fcn.00432fdc
test eax, eax
jne 0x434477
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x434595
mov edx, esi
mov eax, ebx
call fcn.00433f60
jmp 0x434595
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43458e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004362ac
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00430c78
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043443c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004362ac
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434595
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ac24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x452164]
cmp byte [eax + 0xc], 0
je 0x43ad91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ad8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453b64], 0
jne 0x43ac78
push 0x43ad98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ada0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b64], eax
cmp dword [0x451b4c], 0
jne 0x43ad73
push 0x43adb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b4c], eax
cmp dword [0x451b4c], 0
je 0x43ad73
push 0x43adbc
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b68], eax
push 0x43adcc
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b6c], eax
push 0x43ade0
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b70], eax
push 0x43adf8
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b74], eax
push 0x43ae10
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b78], eax
push 0x43ae24
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b7c], eax
push 0x43ae3c
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b80], eax
push 0x43ae54
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b84], eax
push 0x43ae70
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b88], eax
push 0x43ae7c
mov eax, dword [0x451b4c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ad91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43ec1c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004041e0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ec6b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404450
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44643c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44648c]
test si, 4
je 0x446450
or bl, 1
test si, 8
je 0x44645a
or bl, 4
test si, 1
je 0x446464
or bl, 8
test si, 2
je 0x44646e
or bl, 0x10
test si, 0x10
je 0x446478
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446487
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x446490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4464c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4464a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4464b8
or bl, 4
test esi, 0x20000000
je 0x4464c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44cb8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44cb9e
add esp, 0xfffffff0
call fcn.0040378c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419578
mov eax, dword [0x451e40]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cf30
mov eax, dword [0x451e4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cf3c
mov eax, ebx
call fcn.0044cf48
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.0040343c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.0040343c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.0040343c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.0040343c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411870]
call fcn.0040343c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449360
push eax
push 0
push 0
mov eax, dword [0x451f8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41af9c]
call fcn.0041c404
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41af9c]
call fcn.0041c404
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41af9c]
call fcn.0041c404
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d398
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d260
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d260
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d260
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ccdb
call fcn.004037e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d044
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d1ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d1d0
mov dl, 1
mov eax, dword [0x411c8c]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d1bf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043af84
test al, al
je 0x44d1b2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d200
lea eax, [ebp - 0x254]
call fcn.00408c8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d1b2
xor eax, eax
push ebp
push 0x44d1ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d238
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d194
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d194
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d0b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415768
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d1f6
lea eax, [ebp - 0x260]
call fcn.004041e0
ret

Function at 0x44db38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44dba9
cmp dword [0x453bc8], 0
jne 0x44db6a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44daf4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44db85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44dba9
push esp
push 0
push 0
push 0x44da98
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44e23c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44e2e6
cmp dword [ebx + 0x94], 0
jne 0x44e2e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e1cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e2e0
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 0x44e2a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e2e0
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.00413bd8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e2b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ee44
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 0x44ee79
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.004042d0
jmp 0x44ee86
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ff98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ffd9
mov eax, esi
call fcn.004365b0
test al, al
je 0x44ffd9
mov eax, dword [ebx + 0x84]
call fcn.004362ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ffd9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004362ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x30016234
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x30016258
add eax, edx
mov cx, word [eax]
cmp cx, 0x22
je 0x3001626e
test cx, cx
jne 0x30016246
jmp 0x30016278
cmp cx, 0x20
jbe 0x30016270
add eax, edx
cmp word [eax], 0x20
ja 0x3001625e
jmp 0x30016270
cmp cx, 0x20
ja 0x30016278
add eax, edx
mov cx, word [eax]
test cx, cx
jne 0x30016268
and dword [0x3009b830], 0
push eax
call fcn.30019d62
mov ecx, eax
and ecx, 0x60
je 0x3001628f
mov eax, ecx
ret
test al, 8
je 0x30016297
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x300162a5
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x300162bd
test eax, edx
je 0x300162bd
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x300162cc
inc ecx
cmp ecx, 0x20
jb 0x300162a8
test al, 4
je 0x300162ce
test ah, 1
jne 0x300162ce
xor eax, eax
pop ebx
pop esi
ret

Function at 0x300162d1
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x3009b830]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x300998ac], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x300998a8], eax
je 0x30016336
cmp dword [eax], 0x9c9c
jne 0x30016336
cmp dword [eax + 4], 0x20000
jne 0x30016336
cmp dword [eax + 0x24], esi
je 0x30016336
cmp dword [eax + 0x18], esi
je 0x30016336
cmp dword [eax + 0x20], esi
je 0x30016336
cmp dword [0x3009b840], esi
jne 0x30016320
cmp dword [eax + 0x28], esi
je 0x30016336
push dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x2c]
call fcn.3002473c
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x3001b26f
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 8

Function at 0x3001e6e6
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x3001e708
push 0x14
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x3001e7eb
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.30019f1d
mov eax, dword [0x3009b4e8]
xor ebp, ebp
inc ebp
cmp eax, dword [0x3009b4e4]
mov edi, 0x447
je 0x3001e772
push ebp
push 0x66
push 4
push esi
call fcn.3001c1de
push ebp
push 0xa2
push 0x3ed
push esi
call fcn.3001c1de
push ebp
push 0xa3
push 3
push esi
call fcn.3001c1de
push ebp
push 0xb0
push edi
push esi
call fcn.3001c1de
push ebp
push 0xb1
push 0x453
push esi
call fcn.3001c1de
cmp dword [ebx + 0x34], 0
je 0x3001e7a8
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x3001e7d2
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x3001e7d2
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esp + 0x18]
and dword [ebx + 0x28], 0
push ebx
push esi
call fcn.3001e5d3
push 0x3ec
push esi
call fcn.3001b26f
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x30021113
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..cdata]
push edi
push 0x24
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
pop edi
jne 0x30021176
cmp dword [ebp - 0x94], 5
jb 0x30021176
push 0x3009b500
mov dword [0x3009b500], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
jmp 0x30021178
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.30062195
leave
ret
Function at 0x30021a38
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 0xa0]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x30065580], ebx
mov dword [ebp + 0x90], eax
je 0x30021a7c
mov eax, dword [esi + 0x30065584]
cmp eax, dword [ebp + 0xa4]
jne 0x30021a7c
xor eax, eax
inc eax
jmp 0x30021b46
push edi
push dword [ebp + 0x9c]
mov edi, 0x104
push 0x30002c70
push 0x30002e60
lea eax, [ebp - 0x74]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi + 0x30065590]
add esp, 0x14
cmp eax, ebx
je 0x30021acd
cmp byte [eax], bl
je 0x30021acd
push edi
lea eax, [ebp - 0x74]
push eax
push 0x30002958
call fcn.3004f102
push edi
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x30065590]
call fcn.3004f102
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.30032fd4
test eax, eax
jne 0x30021ae6
xor eax, eax
jmp 0x30021b45
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x30021ae2
push 4
pop edi
push edi
lea eax, [ebp + 0xa4]
push eax
push edi
push ebx
push dword [esi + 0x30065594]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x30021ae2
mov eax, dword [ebp + 0xa4]
mov dword [esi + 0x30065584], eax
xor eax, eax
inc eax
mov dword [esi + 0x30065588], edi
mov dword [esi + 0x30065580], eax
mov dword [esi + 0x3006558c], ebx
pop edi
mov ecx, dword [ebp + 0x90]
pop esi
pop ebx
call fcn.30062195
add ebp, 0x94
leave
ret 0xc

Function at 0x30021f58
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.3004dcd9
mov esi, eax
push 0x106
inc esi
push esi
call fcn.3005343f
mov edi, eax
test edi, edi
je 0x30021f9a
push esi
push edi
push dword [ebp + 8]
call fcn.3004f0aa
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x30021f09
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret 4

Function at 0x30021fb2
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x30021fc2
xor eax, eax
jmp 0x3002202a
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x3002201c
cmp eax, edi
je 0x3002201c
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x3002201c
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x30022017
push ebx
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
pop ebx
jmp 0x30022024
xor eax, eax
inc eax
jmp 0x30022029
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x300227fe
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [str..NET_Runtime_2.0_Error_Reporting], 0
je 0x3002284c
push esi
push str..NET_Runtime_2.0_Error_Reporting
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x3002284b
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.3004dd60
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x30022b4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x30022b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x30022b8c
cmp eax, 0x21
je 0x30022b8c
cmp eax, 0x36
jne 0x30022bc9
inc ebx
cmp ebx, 5
jge 0x30022bc9
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30022b55
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.3004dcd9
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30022e73
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x8ec]
sub esp, 0x96c
mov eax, dword [section..cdata]
push ebx
push edi
mov dword [ebp + 0x8e8], eax
push 0xf
xor eax, eax
cmp dword [ebp + 0x8f4], 0
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x7e4]
mov dword [ebp - 0x44], 0x824
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x104
jne 0x30022ec6
xor eax, eax
jmp 0x30022fd3
push esi
mov esi, 0x10000000
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x8f4]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x30022fd0
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x30022fd0
cmp dword [ebp - 0x74], 3
je 0x30022f13
cmp dword [ebp - 0x74], 4
jne 0x30022fd0
push dword [ebp - 0x70]
call fcn.3004dcd9
mov esi, 0x30002d70
push esi
mov ebx, eax
call fcn.3004dcd9
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.30032a45
test eax, eax
je 0x30022f51
mov esi, 0x30002d78
push esi
call fcn.3004dcd9
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.30032a45
test eax, eax
jne 0x30022fd0
push esi
call fcn.3004dcd9
lea eax, [ebp + eax - 0x40]
jmp 0x30022f62
test cl, cl
je 0x30022fd0
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x30022f5d
test cl, cl
je 0x30022fd0
mov eax, dword [ebp - 0x70]
mov edi, 0x30003170
push edi
lea esi, [ebx + eax]
call fcn.3004dcd9
cmp ebx, eax
jl 0x30022f92
push eax
mov ecx, esi
push edi
sub ecx, eax
push ecx
call fcn.30032a45
test eax, eax
je 0x30022fcb
mov edi, 0x30003164
push edi
call fcn.3004dcd9
cmp ebx, eax
jl 0x30022faf
push eax
push edi
sub esi, eax
push esi
call fcn.30032a45
test eax, eax
je 0x30022fcb
mov esi, 0x30003154
push esi
call fcn.3004dcd9
cmp ebx, eax
jne 0x30022fd0
push esi
push dword [ebp - 0x70]
call fcn.30032880
test eax, eax
jne 0x30022fd0
xor eax, eax
inc eax
jmp 0x30022fd2
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x8e8]
pop edi
pop ebx
call fcn.30062195
add ebp, 0x8ec
leave
ret 4