joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59fcd0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73add8
push 0x5bc294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.005ba210
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59fe80
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x59fec1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x59ff2e
cmp dword [esp + 0x1c], 2
jne 0x59ff2e
cmp dword [esp + 0x10], 5
jne 0x59ff2e
cmp dword [esp + 0x14], 1
jne 0x59ff2e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59ff18
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x59ff09
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x59ff11
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x59ff2e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x5a0ab0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.005baaf0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.005bbd7f
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5a0c5d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x5a0c5d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.005a0c70
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.005a0c70
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.005a0c70
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.005a0c70
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x5a0c5d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x5a2190
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x5a2233
test eax, eax
jbe 0x5a2233
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x5a2233
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x5a21de
xor esi, esi
jmp 0x5a21e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x5a220f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.005a6460
add esi, eax
push esi
mov ebx, esi
call fcn.005a6460
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x5a21f0
pop ebp
test edi, edi
pop edi
jne 0x5a2233
test ebx, ebx
je 0x5a2233
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005bac10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x5a2375
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5a248d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5a248d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005ccad5
mov esi, eax
test esi, esi
je 0x5a248d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x5a248d
mov ecx, esi
call fcn.005a22e0
cmp edi, eax
jge 0x5a248d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5a2413
mov dword [esp + 0x34], 1
jmp 0x5a246e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x5a248d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005a1850
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x5a8d80
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x822ffc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5a8d93
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5a8dd4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x8230a4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5a8e06
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a8e0a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5a8dfb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5a8e28
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a8e2c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5a8e1d
xor ecx, ecx
mov eax, 0x82300c
xor ebx, ebx
mov bl, byte [ecx + 0x8230b4]
cmp byte [esp + ebx + 0x14], 0
je 0x5a8e57
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x8230cc]
cmp byte [esp + ebx + 0x14], 0
je 0x5a8e6e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5a8e3e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5a8dc7
lea edx, [esp + 0x84]
push edx
call fcn.005a8eb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5cd479
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5cd4b1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005cb4f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005cb4cc
jmp 0x5cd4bd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5cec78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5cecba
call fcn.005d4fcd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5cecba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5cecb1
xor eax, eax
jmp 0x5cecc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005cecc8
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d54fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5d552b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5d5549
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005d5463
jmp 0x5d5549
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5d5549
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005d5463
test edi, edi
mov eax, edi
jne 0x5d5533
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402d10
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x402d4f
mov edi, dword [esp + 0x10]
mov esi, dword [esi]
mov ecx, dword [esi + 0x30]
push edi
push ecx
call fcn.00402c90
add esp, 8
test eax, eax
mov eax, dword [esi + 0x18]
je 0x402d51
test eax, eax
jne 0x402d35
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x402e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [0x4671b8]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0043c214
mov ecx, dword [0x4671b8]
mov ebx, eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.0043c214
mov ebp, dword [0x4671b8]
add esp, 8
xor esi, esi
xor ecx, ecx
mov edi, eax
test ebp, ebp
jbe 0x402e72
sub eax, ebx
mov dword [esp + 0x14], eax
jmp 0x402e54
mov eax, dword [esp + 0x14]
add ebx, ecx
mov byte [eax + ebx], cl
mov eax, ecx
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ecx
mov dl, byte [edx + eax]
mov byte [ebx], dl
mov ebx, dword [esp + 0x10]
cmp ecx, ebp
jb 0x402e50
mov dword [esp + 0x10], esi
test ebp, ebp
jbe 0x402eb8
mov eax, ebx
mov edx, ebp
sub eax, edi
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
jmp 0x402e94
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + ecx]
mov bl, byte [ecx]
add edx, esi
movzx eax, bl
add eax, edx
xor edx, edx
div ebp
inc ecx
sub dword [esp + 0x14], 1
mov esi, edx
mov al, byte [esi + edi]
mov byte [esi + edi], bl
mov byte [ecx - 1], al
jne 0x402e90
mov ecx, dword [esp + 0x24]
xor ebx, ebx
test ecx, ecx
jle 0x402f4d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
sub edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jmp 0x402eea
mov ebp, dword [0x4671b8]
mov eax, dword [esp + 0x10]
inc eax
xor edx, edx
div ebp
mov ecx, edx
movzx eax, byte [ecx + edi]
add eax, ebx
xor edx, edx
div ebp
mov al, byte [ecx + edi]
mov dword [esp + 0x10], ecx
mov ebx, edx
mov dl, byte [ebx + edi]
mov byte [ebx + edi], al
mov byte [ecx + edi], dl
movzx eax, byte [ebx + edi]
movzx ecx, dl
add eax, ecx
xor edx, edx
div ebp
mov ebp, edx
call esi
call esi
call esi
call esi
call esi
call esi
call esi
call esi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov cl, byte [edx + eax]
xor cl, byte [edi + ebp]
inc eax
sub dword [esp + 0x14], 1
mov byte [eax - 1], cl
mov dword [esp + 0x24], eax
jne 0x402ee4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40ea0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ea53
call fcn.00416a6f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ea53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ea6f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e586
mov esi, eax
test edi, edi
je 0x40ea6d
test ebx, ebx
je 0x40ea6d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f935
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44eeb5
call fcn.0043cb3b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f95a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40f9a0
lea ecx, [ebp - 0x10]
call fcn.00401650
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404247
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.0043cc13
ret 8

Function at 0x413c2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00416a6f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413c67
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041387f
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x413cc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x413ce9
cmp dword [edi + 0x54], 0
jne 0x413ce9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00416a6f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00413c86
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x415b4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00416a6f
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x415b7b
xor eax, eax
jmp 0x415c21
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x415b74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415b74
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403dbb
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x415bd2
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x415bc1
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004148a3
push edi
mov ebx, eax
call fcn.00403dea
pop ecx
test ebx, ebx
je 0x415c14
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00414f63
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00415017
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x418807
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x41882b
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x418839
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x418825
xor eax, eax
inc eax
pop esi
ret

Function at 0x41c655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41c69d
call fcn.00416a6f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41c69d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c6e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41c6c9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41c6c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41c6dd
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424764
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x44fed2
call fcn.0043cb3b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e3b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4247c6
call fcn.00416349
cmp eax, 1
jne 0x4247c6
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004198b3
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040518f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.0043cc13
ret 0x10

Function at 0x4247ef
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x44fed2
call fcn.0043cb3b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e3b0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x424851
call fcn.00416349
cmp eax, 1
jne 0x424851
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004198b3
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040518f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.0043cc13
ret 0x14

Function at 0x43b9cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x468cdc]
jne 0x43b9d9
repz ret
jmp fcn.0044197c
Function at 0x44951e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00441363
and dword [ebp - 4], 0
cmp dword [0x46ca60], 0
mov ebx, eax
jne 0x4495cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x449680
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45b190
push edi
call esi
test eax, eax
je 0x449680
push eax
call fcn.004412f1
mov dword [esp], 0x45b180
push edi
mov dword [0x46ca60], eax
call esi
push eax
call fcn.004412f1
mov dword [esp], 0x45b16c
push edi
mov dword [0x46ca64], eax
call esi
push eax
call fcn.004412f1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46ca68], eax
call esi
push eax
call fcn.004412f1
pop ecx
mov dword [0x46ca70], eax
test eax, eax
je 0x4495cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004412f1
pop ecx
mov dword [0x46ca6c], eax
mov eax, dword [0x46ca6c]
cmp eax, ebx
je 0x449627
cmp dword [0x46ca70], ebx
je 0x449627
push eax
call fcn.0044136c
push dword [0x46ca70]
mov esi, eax
call fcn.0044136c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x449627
test edi, edi
je 0x449627
call esi
test eax, eax
je 0x44961e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44961e
test byte [ebp - 0xc], 1
jne 0x449627
or dword [ebp + 0x10], 0x200000
jmp 0x449660
mov eax, dword [0x46ca64]
cmp eax, ebx
je 0x449660
push eax
call fcn.0044136c
pop ecx
test eax, eax
je 0x449660
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x449660
mov eax, dword [0x46ca68]
cmp eax, ebx
je 0x449660
push eax
call fcn.0044136c
pop ecx
test eax, eax
je 0x449660
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ca60]
call fcn.0044136c
pop ecx
test eax, eax
je 0x449680
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x449682
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret