joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4297bc
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 + 0x1e8], 0
je 0x4297d8
cmp dword [esi + 4], 0
je 0x429805
test byte [ebx + 0x45], 1
jne 0x4297f7
mov eax, ebx
call fcn.0042882c
test eax, eax
jne 0x4297f7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x429915
mov edx, esi
mov eax, ebx
call fcn.00429434
jmp 0x429915
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 0x42990e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b6a4
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.00426938
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004297bc
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.0042b6a4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429915
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 0x4333a4
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.0040381c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x433405
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x433405
cmp byte [ebp - 0x102], 0
je 0x433405
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403a48
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4517d8
cmp dword [edi], 0
jne 0x4396ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4517d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44f8a0
mov ecx, 2
call fcn.004027d4
mov edx, 0x439608
lea eax, [esi + 5]
call fcn.00439628
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00439628
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x439681
mov dword [0x4517d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4397d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x439820]
test si, 4
je 0x4397e4
or bl, 1
test si, 8
je 0x4397ee
or bl, 4
test si, 1
je 0x4397f8
or bl, 8
test si, 2
je 0x439802
or bl, 0x10
test si, 0x10
je 0x43980c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43981b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x439824
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43985c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43983d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43984c
or bl, 4
test esi, 0x20000000
je 0x439857
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43fda4
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 0x43ff49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40bc70]
call fcn.00402c54
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040381c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43ff1f
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.0042fc84
test al, al
je 0x43ff12
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x43ff58
lea eax, [ebp - 0x254]
call fcn.00408270
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43ff12
xor eax, eax
push ebp
push 0x43ff0b
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 0x43ff90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43fef4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403a48
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43fef4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ff12
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43fe15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040eb18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ff50
lea eax, [ebp - 0x260]
call fcn.0040381c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4517a8]
cmp byte [eax + 0x8d], 0
jne 0x440755
cmp dword [0x4517e4], 0
jne 0x440716
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4406a0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4517e4], eax
cmp dword [0x4517e0], 0
jne 0x440731
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4517e0], eax
cmp dword [0x4517e8], 0
jne 0x440755
push esp
push 0
push 0
push 0x440644
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4517e8], eax
pop edx
ret
Function at 0x44084c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x440863
add esp, 0xfffffff0
call fcn.00402f68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004118f4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b970]
call fcn.00402c54
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b970]
call fcn.00402c54
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x413680]
call fcn.0041a764
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x4409d4
mov eax, dword [0x44fdd4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041ab08
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4422e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fdd4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040955c
test eax, eax
je 0x440953
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407bf8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409584
test eax, eax
je 0x440967
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403a48
mov eax, dword [0x44fcb8]
cmp byte [eax], 0
jne 0x440998
mov eax, ebx
call fcn.00440ac0
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4409ca
call fcn.00402fc0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x440d1c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4517a8]
cmp dword [eax + 0x24], 0
je 0x440dac
cmp dword [ebx + 0x7c], 0
jne 0x440da9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x440cb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x440da9
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 0x440d78
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x440da9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040cf94
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x440d84
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4416fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x441731
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403900
jmp 0x44173b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.004038b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x442618
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x442650
mov eax, esi
call fcn.0042ba84
test al, al
je 0x442650
mov eax, dword [ebx + 0x6c]
call fcn.0042b6a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442650
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042b6a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0xf001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0xf00102e
cmp bl, 0xd7
je 0xf00102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0xf00104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0xf001023
jmp 0xf00104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.0f001ac0
cmp bl, 0xd8
jne 0xf00104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0xf00104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0xf001045
pop esi
pop ebx
pop ebp
ret
Function at 0x4018b0
Capabilities:
Encode data using xor

Disassembly:
push 0x401a90
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
dec eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx - 0x16f9dadd], cl
outsd dx, dword [esi]
cmpsb byte [esi], byte es:[edi]
inc ecx
movsb byte es:[edi], byte [esi]
sar byte [edi + 0x22], 0x85
cmpsb byte [esi], byte es:[edi]
mov al, 0xbb
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
arpl word [ebp + 0x28], sp
xor dh, byte [0x43665536]
push 0x456b6365
jbe 0x40195f
jb 0x401967
insd dword es:[edi], dx
outsb dx, byte gs:[esi]
je 0x4018fd
imul esi, dword [edx + 0x65], 0x726f7463
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add al, 0
mov al, 0x32
inc eax
add byte [eax], al
add byte [eax], al
add bh, bh
add byte [eax], cl
add byte [eax], al
add byte [eax + 0x19], bh
inc eax
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [eax], al
add byte [ebp + ebx*2 + 0x2b], dh
add al, 0x78
sbb dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
in al, 0x2b
xor al, byte [esp + esi*2]
pop ss
xor dword [eax + edi*4], eax
mov ebp, 0xd6d80431
xor byte [esp + ebx*2], al
pop ebx
sub eax, dword [esi + eax]
add byte [eax], al
add byte [ecx + eax*2 + 0x40], ah
add byte [edi], al
add byte [eax], al
add byte [eax + 0x700403e], dh
add byte [eax], al
add byte [esi + edi + 0x40], bh
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax], dh
inc eax
add byte [edi], al
add byte [eax], al
add ah, dl
cmp eax, 0x70040
add byte [eax], al
mov byte [0x70040], bh
add byte [eax], al
xor byte [0x70040], bh
add byte [eax], al
in al, 0x3c
inc eax
add byte [edi], al
add byte [eax], al
add byte [esp + edi + 0x70040], cl
add byte [eax], al
mov esp, 0x700403b
add byte [eax], al
add byte [ebx + edi + 0x40], ch
add byte [eax], dl
add byte [eax], al
dec ecx
jae 0x4019ae
xchg ebx, eax
je 0x401a34
jb 0x401a42
lcall 0x1553, 0x1187c911
mov byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add al, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx + 0x51], bh
add byte [eax], al
add byte [eax + 0x4c004078], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [eax + 0x40], bh
add byte [eax + eax], cl
add byte [eax], dl
add byte [eax], al
jmp 0x401ac4
push ebx
lock xor byte [eax], al
add bh, bh
invalid
Function at 0x422ba5
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00422d55
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x422ca3
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x422c46
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x422c89
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x422c5d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x422c78
test al, 0x40
je 0x422c6f
mov ecx, dword [edi + 0x20]
jmp 0x422c76
test al, 0x80
je 0x422c89
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x422c89
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x422c15
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401cc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x40aa7c], esi
push edi
jne 0x401cfa
mov ecx, 0x40aa78
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x401cd6
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x40ae78
jl 0x401cd1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x401d2f
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40aa78]
xor eax, esi
inc ecx
dec edx
jne 0x401d12
pop edi
pop esi
not eax
ret 0xc
Function at 0x403910
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40399c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403987
cmp dword [ebp + 0x10], ebx
jne 0x403979
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403910
test eax, eax
jne 0x403987
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x40394c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40399c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403db0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403ddd
mov ecx, dword [0x475a78]
push edi
add eax, ecx
push edi
push eax
mov dword [0x42b794], eax
push dword [0x40a5f4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403edb
cmp eax, edi
jl 0x403ed4
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5f4]
call ebx
test eax, eax
je 0x403ed1
cmp dword [ebp - 4], esi
jne 0x403ed1
push dword [ebp + 8]
add dword [0x42b794], esi
call fcn.00403edb
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403ed4
cmp dword [ebp + 0x10], edi
jne 0x403ea0
cmp dword [ebp + 8], edi
jle 0x403ecc
mov esi, 0x427750
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403e50
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5f4]
call ebx
test eax, eax
je 0x403ed1
cmp edi, dword [ebp - 4]
jne 0x403ed1
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e9c
cmp dword [ebp + 0x14], edi
jne 0x403e9c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42b794], eax
cmp dword [ebp + 8], 0
jg 0x403e43
jmp 0x403ecc
push 0xfffffffffffffffe
jmp 0x403ed3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403eab
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5f4]
call ebx
test eax, eax
je 0x403ed1
mov eax, dword [ebp - 4]
add dword [0x42b794], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403ed4
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403edb
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x42b794]
mov ebx, eax
sub esi, dword [0x41f6c4]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x4040c2
push dword [0x4337a0]
call fcn.00404105
push edi
push edi
push dword [0x41f6c4]
push dword [0x40a5f4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x43379c], esi
mov dword [0x42b790], edi
mov eax, dword [0x42b798]
mov ebp, 0x4000
sub eax, dword [0x4337a0]
cmp eax, ebp
jg 0x403f4f
mov ebp, eax
mov esi, 0x427750
push ebp
push esi
call fcn.004040d3
test eax, eax
je 0x40409a
add dword [0x4337a0], ebp
mov dword [0x41f6e0], esi
mov dword [0x41f6e4], ebp
cmp dword [0x475a28], edi
je 0x40400d
cmp dword [0x475abc], edi
jne 0x40400d
cmp dword [esp + 0x10], edi
je 0x403fda
mov eax, dword [0x43379c]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x42b794]
push 1
push edi
push edi
sub eax, dword [esp + 0x44]
push edi
add eax, dword [0x41f6c4]
mov dword [0x42b790], eax
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
je 0x40400d
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
jmp 0x403fbd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x40400d
mov eax, dword [0x475a24]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x4039d2
push edi
push 0x6f
push dword [0x475a20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x41f6c8
mov dword [0x41f6e8], 0x41f750
mov dword [0x41f6ec], 0x8000
call fcn.00401022
test eax, eax
jl 0x4040ce
mov esi, dword [0x41f6e8]
mov eax, 0x41f750
sub esi, eax
je 0x404074
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x40a5f4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40409f
cmp esi, dword [esp + 0x14]
jne 0x40409f
add dword [0x41f6c4], esi
cmp dword [0x41f6e4], edi
jne 0x403f75
jmp 0x404080
cmp dword [0x41f6e4], edi
jne 0x4040ce
cmp ebp, edi
je 0x4040ce
mov eax, dword [0x42b794]
mov ecx, eax
sub ecx, dword [0x41f6c4]
add ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x4040a3
jmp 0x403f39
or eax, 0xffffffff
jmp 0x4040c4
push 0xfffffffffffffffe
jmp 0x4040d0
push edi
push edi
push eax
push dword [0x40a5f4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x10], edi
je 0x4040c2
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4040c4