joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416294
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 0x416439
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x428be8]
call fcn.00435898
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004361b8
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 0x41640f
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.00422e34
test al, al
je 0x416402
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, 0x416448
lea eax, [ebp - 0x254]
call fcn.00431310
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x416402
xor eax, eax
push ebp
push 0x4163fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x416480
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x4163e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004363e4
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 0x4163e4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004363e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416402
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x416305
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0042bbd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416440
lea eax, [ebp - 0x260]
call fcn.004361b8
ret

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

Disassembly:
push ecx
mov eax, dword [0x447a90]
cmp byte [eax + 0x85], 0
jne 0x41672d
cmp dword [0x447ad0], 0
jne 0x4166ee
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x416678
push eax
push 3
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x447ad0], eax
cmp dword [0x447acc], 0
jne 0x416709
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x447acc], eax
cmp dword [0x447ad4], 0
jne 0x41672d
push esp
push 0
push 0
push 0x41661c
push 0x3e8
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x447ad4], eax
pop edx
ret
Function at 0x41681c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x416833
add esp, 0xfffffff0
call fcn.00435b0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042e4e0
mov dl, 1
mov eax, dword [0x4287ec]
call fcn.00435898
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x4287ec]
call fcn.00435898
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x408a98]
call fcn.0040f618
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x416990
mov eax, dword [0x447878]
mov eax, dword [eax]
push eax
call sub.USER32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0040f9bc
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x417fdc
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x447878]
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
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.004329f8
test eax, eax
je 0x416914
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00430d4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00432a20
test eax, eax
je 0x416928
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004363e4
mov eax, dword [0x44787c]
cmp byte [eax], 0
jne 0x416959
mov eax, ebx
call fcn.00416a78
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x416988
call fcn.00435b54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416cc8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x447a90]
cmp dword [eax + 0x24], 0
je 0x416d58
cmp dword [ebx + 0x74], 0
jne 0x416d55
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x416c5c
call sub.USER32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x416d55
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 0x416d24
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x416d55
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.004299b8
push eax
call sub.USER32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x416d30
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x417644
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x417679
push 0x100
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.0043629c
jmp 0x417683
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00436250
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x418260
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x418298
mov eax, esi
call fcn.00421cdc
test al, al
je 0x418298
mov eax, dword [ebx + 0x64]
call fcn.00421b44
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x418298
push 0
mov eax, dword [ebx + 0x64]
call fcn.00421b44
push eax
call sub.USER32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42053c
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 + 0x114], 0
je 0x420558
cmp dword [esi + 4], 0
je 0x42057f
mov eax, ebx
call fcn.0041f768
test eax, eax
jne 0x420571
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42068f
mov edx, esi
mov eax, ebx
call fcn.004201e0
jmp 0x42068f
push 0
call sub.USER32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
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 0x420688
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00421b44
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.0041e638
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042053c
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 + 0x30]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
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.00421b44
push eax
call sub.USER32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42068f
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 0x4314a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4314d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0043629c
jmp 0x4314e2
mov eax, ebx
mov edx, esi
call fcn.00436250
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4314ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x43150d
mov al, byte [esp]
jmp 0x43150f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x435740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x444630]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4357d8
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4357b8
xor eax, eax
push ebp
push 0x4357b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4357f4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4357b8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x444630]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x444630], ax
mov esp, ebp
pop ebp
ret
Function at 0x436ea0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x437058
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x436f01
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x437074
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x436f6e
xor eax, eax
push ebp
push 0x436f67
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x436f50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x437094
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436f6e
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.dll_GetThreadLocale
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x43704f
cmp byte [ebp - 0xd], 0
jne 0x436fb0
cmp byte [ebp - 0x12], 0
je 0x43704f
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x436fc9
dec ebx
cmp byte [ebx], 0x2e
je 0x436fd8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x436fc8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x43704f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x437005
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x43704f
cmp byte [ebp - 0xd], 0
je 0x43704f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x43704f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43744c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4374f9
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x448114], 1
jae 0x4374eb
xor eax, eax
mov dword [0x447d3c], eax
xor eax, eax
mov dword [0x447d44], eax
xor eax, eax
mov dword [0x447d48], eax
mov byte [0x447d4e], 2
mov byte [0x447d4f], 2
mov byte [0x447d50], 3
mov word [0x4480ec], 0
mov word [0x4480fc], 1
call fcn.00435710
test al, al
je 0x4374b4
call fcn.00435740
call fcn.00435804
mov eax, 0x447d54
mov edx, 0x437504
call fcn.0043333e
mov eax, 0x447f20
mov edx, 0x437504
call fcn.0043333e
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x447d34], eax
call fcn.00434030
mov dword [0x447d30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437500
ret
Function at 0x438bec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00439210
test byte [ebp + 0xd], 0xc0
jne 0x438c10
mov eax, dword [0x445214]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x438c1d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x438c4a
je 0x438c5c
sub ecx, 0x100
je 0x438c6a
sub ecx, 0x100
je 0x438c71
sub ecx, 0x100
je 0x438c63
jmp 0x438c78
sub ecx, 0x600
je 0x438c71
sub ecx, 0x100
je 0x438c5c
jmp 0x438c78
mov edi, 1
jmp 0x438c7d
mov edi, 2
jmp 0x438c7d
mov edi, 4
jmp 0x438c7d
mov edi, 5
jmp 0x438c7d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x438ca4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x444c90]
test al, 0x80
je 0x438c9d
mov ebx, 0x80
jmp 0x438cb6
mov ebx, 1
jmp 0x438cb6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x438cb6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x438cc8
je 0x438cd1
dec eax
je 0x438cda
jmp 0x438ce3
mov dword [ebp - 4], 0x80000000
jmp 0x438cf2
mov dword [ebp - 4], 0x40000000
jmp 0x438cf2
mov dword [ebp - 4], 0xc0000000
jmp 0x438cf2
push 1
call fcn.004395d0
pop ecx
mov ebx, eax
jmp 0x438dde
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x438d0e
sub eax, 0x10
je 0x438d15
sub eax, 0x10
je 0x438d1e
sub eax, 0x10
je 0x438d27
jmp 0x438d27
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x438d2e
mov dword [ebp - 8], 1
jmp 0x438d2e
mov dword [ebp - 8], 2
jmp 0x438d2e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x438d97
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x438d8c
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x438d8c
add ebx, 0xffffffb2
push ebx
call fcn.004395d0
pop ecx
mov ebx, eax
jmp 0x438dde
mov edi, esi
push edi
call fcn.00438b50
pop ecx
test eax, eax
je 0x438dab
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x438db7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00439310
add esp, 8
mov ebx, eax
inc eax
jne 0x438dde
push 4
call fcn.004395d0
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.00439244
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d24c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x446000], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x43d304
cmp byte [0x443263], 0
je 0x43d2be
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0043d198
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43d2a7
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0043d198
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43d2a7
lea ebx, [ebp - 0x54]
jmp 0x43d2a8
inc ebx
call fcn.0043d204
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x43d325
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x446004
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00437af0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x446007
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x43d325
cmp dword [0x446000], 0xffffffff
je 0x43d325
mov eax, dword [0x446000]
test eax, eax
je 0x43d325
cmp byte [eax], 0
je 0x43d325
push esi
push eax
call fcn.0043d3b4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d958
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4489a4], 0
jne 0x43d9d9
cmp dword [0x4489c0], 0
jne 0x43d988
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x4489c0], eax
test eax, eax
jne 0x43d988
push str.GetEnvironmentStrings_failed
call fcn.0043d33c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4489c0]
jmp 0x43d99c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00437af0
pop ecx
mov edi, eax
test eax, eax
jne 0x43d994
lea edi, [ebp + 1]
push edi
call fcn.004378dc
pop ecx
mov ebx, eax
mov dword [0x4489a8], ebx
test ebx, ebx
jne 0x43d9c6
xor eax, eax
jmp 0x43da9c
push edi
mov edx, dword [0x4489c0]
push edx
push ebx
call fcn.004379a0
add esp, 0xc
jmp 0x43d9f9
xor esi, esi
mov ebx, dword [0x4489a4]
jmp 0x43d9f3
push eax
call fcn.00437af0
pop ecx
test eax, eax
jne 0x43d9ef
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x43d9e3
lea ebx, [esi + 4]
push 4
mov dword [0x4489ac], ebx
inc ebx
push ebx
call fcn.00437508
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x43da1c
xor eax, eax
jmp 0x43da9c
cmp dword [0x4489a4], 0
jne 0x43da4d
xor esi, esi
mov ebx, dword [0x4489a8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x43da3e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00437af0
pop ecx
mov edi, eax
test eax, eax
jne 0x43da34
jmp 0x43da7e
xor esi, esi
mov ebx, dword [0x4489a4]
mov eax, dword [esp]
mov edi, eax
jmp 0x43da78
push eax
call fcn.00437af0
pop ecx
test eax, eax
je 0x43da6d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x43da71
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x43da5c
mov eax, dword [0x4489a4]
test eax, eax
je 0x43da8e
push eax
call fcn.004378ec
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4489a4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
push ebp
in al, dx
adc eax, 0xd88b0845
enter 0x40c0, 0
push eax
cmp cl, al
inc eax
push 0x40d23c
push ecx
adc eax, sym.imp.MSVCRT.dll_fprintf
cmp ch, byte [edx + eax - 0x50a0ffbf]
or al, 0x85
sal byte [edi + ecx + 0x18], 0x68
fist word [edx + 0x15c70040]
rol dword fs:[eax], 0x83
les ecx, [eax]
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x449520], 1
mov dword [ebp - 0x214], edi
jne 0x40104c
mov eax, dword [0x4482cc]
or dword [0x449520], 1
mov ecx, 0x4482cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43adf0
mov dword [0x44951c], eax
call fcn.0041c04b
pop ecx
mov eax, dword [0x44951c]
cmp dword [eax - 0xc], edi
jne 0x401095
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041be10
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x44951c
call fcn.004015aa
mov eax, dword [0x44951c]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041bf18
leave
ret

Function at 0x4010b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x449518], 1
mov dword [ebp - 0x214], edi
jne 0x401102
mov eax, dword [0x4482cc]
or dword [0x449518], 1
mov ecx, 0x4482cc
call dword [eax + 0xc]
add eax, 0x10
push 0x43adfd
mov dword [0x449514], eax
call fcn.0041c04b
pop ecx
mov eax, dword [0x449514]
cmp dword [eax - 0xc], edi
jne 0x40114b
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.0041be10
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x449514
call fcn.004015aa
mov eax, dword [0x449514]
add eax, 0xfffffff0
call fcn.0040163d
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0041bf18
leave
ret