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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44cffb
add esp, 0xfffffff0
call fcn.004032e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417ac4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40f53c]
call fcn.00402f70
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40f53c]
call fcn.00402f70
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 [0x4198f0]
call fcn.0042121c
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x44d16c
mov eax, dword [0x4d44d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004215c0
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x44ea98
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d44d0]
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.0040cb1c
test eax, eax
je 0x44d0eb
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408fac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb44
test eax, eax
je 0x44d0ff
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.00403dc0
mov eax, dword [0x4d4254]
cmp byte [eax], 0
jne 0x44d130
mov eax, ebx
call fcn.0044d258
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 0x44d162
call fcn.00403338
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d4b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d57b0]
cmp dword [eax + 0x24], 0
je 0x44d544
cmp dword [ebx + 0x7c], 0
jne 0x44d541
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d448
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44d541
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 0x44d510
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d541
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.00410f70
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d51c
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44de94
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 0x44dec9
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.00403c78
jmp 0x44ded3
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403c2c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44edc8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44ee00
mov eax, esi
call fcn.004374e4
test al, al
je 0x44ee00
mov eax, dword [ebx + 0x6c]
call fcn.004370bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ee00
push 0
mov eax, dword [ebx + 0x6c]
call fcn.004370bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x458d78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x458f5a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x458dc2
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00458848
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c6c8
cmp al, 1
jne 0x458dc2
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00458b5c
test al, al
je 0x458efa
test edi, edi
jge 0x458dd9
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00458848
mov eax, dword [ebp - 0x204]
call fcn.00403e10
cmp ebx, eax
jge 0x458e20
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00458848
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4d4a3c]
and eax, 0xff
bt dword [edx], eax
jae 0x458e20
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x458e2e
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.00458d54
cmp ebx, edi
je 0x458ef2
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x458e58
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.0040317c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2cd8]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040317c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2cd8]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.004370bc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040317c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2cd8]
push eax
push 0x101
mov eax, esi
call fcn.004370bc
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x458f41
test edi, edi
jge 0x458f00
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00458848
mov eax, dword [ebp - 0x204]
call fcn.00403e10
cmp edi, eax
jl 0x458f36
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00458848
mov eax, dword [ebp - 0x204]
call fcn.00403e10
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.00458d54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f61
lea eax, [ebp - 0x204]
call fcn.00403b94
ret
Function at 0x45ef94
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f06c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d588c], 0
jne 0x45f050
lea eax, [ebp - 4]
mov edx, 0x45f084
call fcn.00403c2c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403fd4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45f050
mov eax, ebx
call fcn.004027b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45f049
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45f033
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45f094
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45f033
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4d588c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f050
mov eax, dword [ebp - 0xc]
call fcn.004027c8
ret
mov ebx, dword [0x4d588c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f073
lea eax, [ebp - 4]
call fcn.00403b94
ret
Function at 0x46f6f4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
inc ebp
or al, 0x66
cmp eax, dword [edi + 6]
inc ebp
or al, 0x66
cmp eax, dword [edi + 6]
jne 0x46f70b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x46f729
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x46f787
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x46f76e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46f777
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x46f781
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x46f763
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x46f6ed
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x46f7d4
dec eax
je 0x46f7cb
sub eax, 3
je 0x46f7c2
mov dword [ebp - 4], 0x40
jmp 0x46f7f1
mov dword [ebp - 4], 4
jmp 0x46f7d7
mov dword [ebp - 4], 0x20
jmp 0x46f7d7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x46f823
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x46f7a3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0046f034
xchg edx, eax
add byte [ebx + edx*2 + 0x6a1475ff], cl
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x46f82f
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x47c05b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4d3b4e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47c0b3
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4d3b6f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47c0a9
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47c0b7
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x491e2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x491fcf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041ac7c
cmp byte [ebp + 8], 0
je 0x491e85
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041ab4c
jmp 0x491e93
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041ab4c
mov eax, dword [ebx + 0x10]
call fcn.0041ac74
dec eax
jle 0x491ed9
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041ab44
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041ac74
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041ac0c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.0040317c
test al, al
je 0x491f22
test esi, esi
jne 0x491f22
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x491f58
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041b7a0
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9d88
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4a9dcc
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.004091b4
add esp, 0x200
pop ebx
ret
Function at 0x92c4d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x92c620
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x92c4f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c4e2
add dl, dl
jne 0x92c501
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c554
xor eax, eax
add dl, dl
jne 0x92c50e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c5f5
add dl, dl
jne 0x92c51d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c528
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c533
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c53e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x92c54a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x92c4ed
mov eax, 1
add dl, dl
jne 0x92c562
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c56d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c559
sub eax, ebx
mov ebx, 1
jne 0x92c5a0
mov ecx, 1
add dl, dl
jne 0x92c586
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92c591
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c57d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c4ed
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x92c5b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92c5c2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c5ae
cmp eax, 0x7d00
jae 0x92c5e5
cmp eax, 0x500
jb 0x92c5e0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c4ed
cmp eax, 0x7f
ja 0x92c5e8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c4ed
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x92c616
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x92c4ed
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40b19d
xor edi, edi
nop
mov esi, dword [edx + 0x28]
jmp 0x40b1b0
movzx ecx, word [edx + 0x26]
nop
xor eax, eax
jmp 0x40b1c3
lodsb al, byte [esi]
nop
jmp 0x40b1d5
cmp al, 0x61
nop
jl 0x40b1e8
nop
nop
jmp 0x40b1e6
sub al, 0x20
nop
ror edi, 0xd
nop
add edi, eax
jmp 0x40b1fe
dec ecx
nop
jne 0x40b1b5
nop
push edx
jmp 0x40b20e
mov edx, dword [edx + 0x10]
nop
jmp 0x40b220
mov eax, dword [edx + 0x3c]
push edi
jmp 0x40b235
add eax, edx
jmp 0x40b246
mov eax, dword [eax + 0x78]
nop
jmp 0x40b25b
test eax, eax
nop
je 0x40b419
nop
add eax, edx
nop
push eax
nop
mov ecx, dword [eax + 0x18]
jmp 0x40b277
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
nop
test ecx, ecx
nop
jmp 0x40b290
je 0x40b3f5
jmp 0x40b2a1
jmp 0x40b2ab
dec ecx
jmp 0x40b2bc
mov esi, dword [ebx + ecx*4]
jmp 0x40b2ce
xor edi, edi
nop
add esi, edx
nop
jmp 0x40b2df
nop
xor eax, eax
ror edi, 0xd
lodsb al, byte [esi]
add edi, eax
cmp al, ah
jmp 0x40b2f5
jne 0x40b2df
nop
jmp 0x40b303
nop
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jmp 0x40b316
jne 0x40b27e
jmp 0x40b327
pop eax
nop
jmp 0x40b336
mov ebx, dword [eax + 0x24]
jmp 0x40b34a
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
nop
jmp 0x40b361
mov ebx, dword [eax + 0x1c]
jmp 0x40b374
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
nop
add eax, edx
jmp 0x40b390
mov dword [esp + 0x24], eax
jmp 0x40b3a3
pop ebx
nop
jmp 0x40b3b6
pop ebx
jmp 0x40b3c8
popal
nop
jmp 0x40b3dc
pop ecx
pop edx
push ecx
jmp 0x40b3f3
jmp eax
jmp 0x40b406
pop eax
nop
jmp 0x40b419
nop
pop edi
nop
jmp 0x40b429
pop edx
mov edx, dword [edx]
nop
jmp 0x40b43c
jmp 0x40b192

Function at 0x40b650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in eax, 0x31
shl byte [ebx + ecx*4 + 0x52], cl
xor byte [ebx + 0x528b0c52], cl
adc al, 0xf
mov bh, 0x4a
mov esi, dword es:[edx + 0x28]
movzx ecx, word [edx + 0x26]
mov esi, dword [edx + 0x28]
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40b623
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x40b61a
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
push edi
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x40b688
add eax, edx
mov ecx, dword [eax + 0x18]
mov ebx, dword [eax + 0x20]
push eax
add ebx, edx
test ecx, ecx
je 0x40b687
xor edi, edi
dec ecx
mov esi, dword [ebx + ecx*4]
mov eax, dword [ecx]
salc
xor eax, eax
ror edi, 0xd
lodsb al, byte [esi]
add edi, eax
cmp al, ah
jne 0x40b653
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x40b647
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x40b611
Function at 0xba0370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xba038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbc9074
push ecx
mov edi, eax
call fcn.00bb4198
mov esi, eax
add esp, 8
test esi, esi
jne 0xba03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bb402e
push esi
call fcn.00bb3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xba3850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xba38ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbce720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xba38ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00bb41e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xba38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbce720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xba392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00bb5082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xba3957
mov word [eax], si
add eax, 2
push eax
call fcn.00bb5030
add esp, 4
jmp 0xba3959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xba38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xba38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xba3ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xba4080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xba40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbc9458
push ecx
call fcn.00bb41e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bb41e1
add esp, 0x10
jmp 0xba40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bb420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bb3dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ba4050
mov eax, dword [0xbce728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xba413b
push esi
call fcn.00ba3fb0
add esp, 4
mov dword [0xbce728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xba414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00ba3ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xba7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xba74b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xba748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xba7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xba747e
add edx, ecx
cmp ebx, edx
jb 0xba748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xba7467
xor ecx, ecx
jmp 0xba74a2
test eax, eax
jne 0xba7492
xor ecx, ecx
jmp 0xba74a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ba73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret