joyce8/EMBER2024-capa huggingface dataset:
Function at 0x781000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x781131
push esi
call fcn.00784145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00773080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x781131
push 0
push ebp
call fcn.007733a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00773260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x78108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007732f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x781121
push 0x799918
push edi
call fcn.007823f0
push eax
push ebx
push esi
call fcn.00780f60
push 0x7998f8
push edi
call fcn.007823f0
push eax
push ebx
push esi
call fcn.00780f60
push 0x7998d8
push edi
call fcn.007823f0
push eax
push ebx
push esi
call fcn.00780f60
push 0x7998c0
push edi
call fcn.007823f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00780f60
push 0x7998a0
push edi
call fcn.007823f0
push eax
push ebx
push esi
call fcn.00780f60
push 0x799888
push edi
call fcn.007823f0
push eax
push ebx
push esi
call fcn.00780f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7821b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00782140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00782140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00782140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00782140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x782bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x782c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x79487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x782c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x782c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x43f960
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x43f982
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f989
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f978
mov eax, 1
add ebx, ebx
jne 0x43f99b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f990
jne 0x43f9ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f990
xor ecx, ecx
sub eax, 3
jb 0x43f9c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43fa32
mov ebp, eax
add ebx, ebx
jne 0x43f9cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43f9d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43f9fc
inc ecx
add ebx, ebx
jne 0x43f9e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43f9dd
jne 0x43f9f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f9dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43fa1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43fa0d
jmp 0x43f97e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43fa1c
add edi, ecx
jmp 0x43f97e
pop esi
mov edi, esi
mov ecx, 0xbf8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43fa3a
cmp byte [edi], 0xa
jne 0x43fa3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43fa3f
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43faae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x455bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x45620]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43fa6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x45624]
or eax, eax
je 0x43faa8
mov dword [ebx], eax
add ebx, 4
jmp 0x43fa89
call dword [esi + 0x45628]
popal
jmp 0x41b821
Function at 0x406290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0xb0
mov ebx, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov edx, dword [ebx + 0x78]
mov eax, edi
test al, al
setne al
mov esi, eax
mov eax, edx
shr eax, 0xa
mov ecx, esi
xor eax, 1
and eax, 1
cmp cl, al
je 0x4062d0
add esp, 0xb0
pop ebx
pop esi
pop edi
ret
test byte [ebx + 0x81], 8
je 0x4062c4
test dl, 0x40
jne 0x406480
mov eax, edi
test al, al
je 0x4063e0
or dh, 4
cmp byte [ebx + 0x84], 0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x78], edx
je 0x4063c0
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00419a70
lea edx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00417210
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [ebx + 0x78]
mov dword [esp], eax
call fcn.00404340
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add esi, edx
add edx, dword [esp + 0x38]
add ecx, eax
add eax, dword [esp + 0x34]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
sub edi, edx
mov edx, edi
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x4c]
mov dword [ebx + 0x14], edx
sub edi, eax
mov dword [ebx + 0x18], edi
mov dword [esp], ebx
mov dword [esp + 0x4c], edi
call fcn.00402580
mov dword [esp], ebx
call fcn.0040d660
mov dword [esp], ebx
call fcn.00405b50
call fcn.0040c020
add esp, 0xb0
pop ebx
pop esi
pop edi
ret
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x28], ecx
jmp 0x406305
mov eax, dword [ebx + 0x1c]
and dh, 0xfb
mov dword [ebx + 0x78], edx
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x18], eax
mov dword [esp], ebx
call fcn.00417230
mov dword [esp], ebx
call fcn.004173f0
movzx eax, byte [ebx + 0x84]
test al, al
jne 0x4064a0
mov dword [esp], ebx
call fcn.00402580
mov edx, dword [ebx + 4]
mov eax, dword [0x434304]
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], edx
mov edx, dword [ebx]
mov dword [esp + 0xc], 0x100000
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [0x4357fc]
mov dword [esp + 4], edx
call sub.libX11_6.dll_XSendEvent
jmp 0x40639a
mov dword [esp], ebx
mov dword [esp + 0x2c], edi
call fcn.00406220
mov edx, dword [ebx + 0x78]
mov edi, dword [esp + 0x2c]
jmp 0x4062e2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00417a90
jmp 0x40641d
Function at 0x40eb70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
call fcn.0040d860
mov dword [esp], ebx
call fcn.0040daf0
mov dword [esp], ebx
call fcn.0040dc20
mov dword [esp], ebx
call fcn.0040ddd0
lea eax, [ebx + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XGetTransientForHint
test eax, eax
jne 0x40ebc2
mov dword [ebx + 8], 0
mov ecx, esi
lea eax, [esp + 0x10]
movsx esi, cl
mov dword [esp + 8], esi
mov edx, dword [ebx]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040e200
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x40]
je 0x40ec40
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40ec14
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp], eax
call fcn.00405850
test eax, eax
je 0x40ec0e
movzx edx, byte [eax + 0x85]
movzx eax, byte [ebx + 0x85]
cmp al, dl
cmovb eax, edx
mov byte [ebx + 0x85], al
add esp, 0x24
pop ebx
pop esi
ret
mov edx, dword [ebx + 0x3c]
cmp edx, dword [ebx + 0x44]
jne 0x40ec07
imul eax, dword [ebx + 0x48]
and word [ebx + 0x80], 0xffd7
cmp eax, dword [0x435808]
jl 0x40ec07
imul edx, dword [ebx + 0x4c]
cmp edx, dword [0x435804]
jl 0x40ec07
or dword [ebx + 0x78], 0x400
jmp 0x40ec07
Function at 0x4133f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.00410b30
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.004107f0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x428fa0
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__popen]
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
test esi, esi
je 0x41358b
mov dword [esp], 0x401
mov esi, 0x400
xor ebx, ebx
call sub.msvcrt.dll_malloc
mov dword [esp + 0x18], eax
mov ebp, eax
nop
lea esi, [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 1
mov edi, ebp
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4134d0
add ebx, eax
mov eax, dword [esp + 0x18]
cmp esi, ebx
lea ebp, [eax + ebx]
jne 0x413460
mov edi, esi
add edi, 0x400
js 0x413570
lea eax, [esi + 0x401]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
mov dword [esp + 0x18], eax
je 0x413574
mov eax, dword [esp + 0x18]
mov ebx, esi
mov esi, edi
lea ebp, [eax + ebx]
jmp 0x413460
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x413530
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x413460
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x8c
je 0x413460
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x413460
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.could_not_read_file:__s
mov dword [esp + 4], eax
call fcn.0040c170
mov eax, dword [esp + 0x14]
mov byte [edi], 0
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__pclose]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41358b
mov edx, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.0040f9d0
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_free
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ebp
jmp 0x413530
mov ebx, esi
mov dword [esp], str.out_of_memory
mov esi, edi
call fcn.0040c080
mov ebp, ebx
jmp 0x413460
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4173f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x435808]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov eax, dword [0x435804]
movzx edx, byte [ebx + 0x85]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
call fcn.00416ba0
lea eax, [esp + 0x40]
mov edx, ebx
call fcn.00416b00
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [ebx + 0x78]
mov dword [esp], eax
call fcn.00404340
mov eax, dword [esp + 0x3c]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x14]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esi + edi]
add edx, ebp
add eax, ecx
add eax, dword [esp + 0x20]
cmp eax, edx
jle 0x417495
mov esi, edx
sub esi, edi
sub esi, ecx
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x10]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
add eax, ecx
add eax, edi
add eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
jle 0x4174da
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x28]
mov dword [ebx + 0x10], ecx
mov eax, dword [esp + 0x20]
add eax, ebp
cmp eax, esi
jle 0x4174e7
mov dword [ebx + 0xc], eax
add edx, edi
cmp edx, ecx
jle 0x4174f0
mov dword [ebx + 0x10], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41e8a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x41e8e0
mov eax, ebx
and eax, 4
je 0x41e9d0
test bl, 2
je 0x41ea15
mov ebp, 0x40
test bl, 1
jne 0x41ea5b
mov edi, ebx
and edi, 2
test eax, eax
je 0x41e8e4
jmp 0x41ea28
xor ebp, ebp
xor edi, edi
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov dword [eax], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41e9b2
test byte [esp + 0x4c], 0x10
jne 0x41e9b2
cmp ebx, 4
je 0x41e9b2
test byte [esp + 0x4c], 0x20
mov eax, 0xffffffff
je 0x41e9f0
mov edx, dword [esp + 0x54]
add edx, dword [esp + 0x44]
mov dword [esp + 8], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
sub esp, 0x18
test eax, eax
mov ebp, eax
je 0x41ea40
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
mov ebx, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x41e9bf
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
cmove eax, ebx
mov ebx, 0xffffffff
mov dword [esi], eax
jmp 0x41e9bf
call esi
mov ebx, 0xffffffff
mov dword [eax], 0x16
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, 2
jne 0x41ea30
test bl, 1
mov ebp, 2
je 0x41e8d1
mov edi, 4
jmp 0x41e8e4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp eax, 0xffffffff
jne 0x41e922
call esi
mov ebx, 0xffffffff
mov dword [eax], 9
jmp 0x41e9bf
test bl, 1
mov ebp, 0x20
je 0x41e8d1
mov edi, 4
or edi, 0x20
jmp 0x41e8e4
mov ebp, 4
jmp 0x41e8c8
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
cmove eax, ebp
mov dword [ebx], eax
mov ebx, 0xffffffff
jmp 0x41e9bf
mov edi, 6
jmp 0x41e8d6
Function at 0x41fa30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x434af8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x434af0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x41fa85
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41fa7e
test esi, esi
je 0x41fa7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41fa60
mov dword [esp], 0x434af8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41fce0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x41fd18
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41fd0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41fd1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x41fd00
xor eax, eax
pop ebx
pop esi
ret

Function at 0x420f50
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
sub ecx, 1
push esi
push ebx
mov ebx, 0x66666667
mov ebp, edx
mov esi, 1
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 0x1f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ecx
sar ecx, 0x1f
imul ebx
mov ebx, edx
sar ebx, 2
sub ebx, ecx
je 0x420fa3
mov ecx, 0x66666667
mov eax, ebx
sar ebx, 0x1f
add esi, 1
imul ecx
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x420f90
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x421020
cmp eax, esi
cmovge esi, eax
mov eax, dword [edi + 8]
lea edx, [esi + 2]
cmp eax, edx
jg 0x421011
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
mov ecx, 1
mov edx, ebp
add esi, 1
call fcn.00420820
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.00420410
add dword [edi + 8], esi
mov eax, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00420c40
sub eax, edx
mov dword [edi + 8], eax
jmp 0x420fc1
mov edx, dword [0x426034]
cmp edx, 0xffffffff
je 0x421049
test edx, edx
mov eax, 2
jne 0x421041
call fcn.00425410
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x420fab
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x42106f
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x426034], edx
jmp 0x42102b
xor edx, edx
jmp 0x421067
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1d1e1dd2
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4643364b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405b10
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405b49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004032dc
jmp 0x405b52
mov eax, ebx
mov edx, esi
call fcn.00403290
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405b5c
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 0x405b7d
mov al, byte [esp]
jmp 0x405b7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dedc
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.004031fc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40df3d
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40df3d
cmp byte [ebp - 0x102], 0
je 0x40df3d
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403358
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f17c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f1fd
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f1ae
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f1c0
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f1cc
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f054
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f1f1
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f0f0
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f1cc
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41654c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x416552
ret