joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499cb0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd8e1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x499ced
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004c0c37
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004bea87
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.00492c00
lea ecx, [esp + 8]
call fcn.004c0ee2
lea ecx, [esp + 0x30]
call fcn.004bebeb
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004bea87
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.00493070
lea ecx, [esp + 0x74]
call fcn.004bebeb
lea ecx, [esp + 8]
call fcn.004c0ee3
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.00490810
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.00492b10
mov ecx, esi
call fcn.004936b0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.00492b10
mov ecx, esi
call fcn.004936b0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.00492b10
mov ecx, esi
call fcn.004936b0
mov ecx, dword [edi + 0x5c]
call fcn.0048fff0
push eax
mov ecx, esi
call fcn.00490000
mov ecx, dword [edi + 0x5c]
call fcn.004905b0
push eax
mov ecx, esi
call fcn.00490550
mov ecx, dword [edi + 0x5c]
call fcn.004906d0
push eax
mov ecx, esi
call fcn.00490680
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0048f8d0
push eax
mov ecx, esi
call fcn.0048f8e0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004beb63
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004beb63
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004c0cfc
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x49b550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cdb07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004b55a9
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004b55a9
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0049c070
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x49c0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cdbe0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004c2f57
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x49c0f3
xor al, al
jmp 0x49c21f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x49c115
xor al, al
jmp 0x49c21f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x49c128
xor al, al
jmp 0x49c21f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x49c13c
xor al, al
jmp 0x49c21f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004b5659
test eax, eax
jne 0x49c170
xor al, al
jmp 0x49c21f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x633b44
mov dword [esp + 0x20], ebp
call fcn.004c2f57
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004be73c
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004be793
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x49c204
mov ax, word [ebx]
test ax, ax
je 0x49c1f6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0049c240
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x49c1da
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004be793
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x49c780
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004c1320
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x49c7c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004a61c8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x65d7f4
push ecx
call fcn.004a7861
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4b841d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c2f57
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b844e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004b8461
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b9a38
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b9a70
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.004b7a41
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b7a19
jmp 0x4b9a7c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bb402
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 0x4bb444
call fcn.004c2f57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bb444
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bb43b
xor eax, eax
jmp 0x4bb44c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bb452
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c3487
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 0x4c34b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c34d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c33ed
jmp 0x4c34d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c34d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c33ed
test edi, edi
mov eax, edi
jne 0x4c34bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4025ed
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x40260d
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402619
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402622
cmp byte [ebx], 0
jne 0x402629
xor eax, eax
jmp 0x4026da
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402687
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x40265b
cmp dword [ebp - 4], 0
je 0x40265b
cmp dword [ebp - 8], 0
jne 0x40265b
cmp dword [ebp + 0x10], 0
je 0x402656
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402686
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402669
cmp ecx, 0xa
jne 0x402671
cmp ecx, 0xd
jne 0x40268c
inc ebx
jmp 0x40268c
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402686
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40268c
inc esi
cmp byte [ebx], 0
jne 0x402632
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026d8
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026d8
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.0040ce48
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026e2
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov eax, ebx
mov byte [esp], dl
lea esi, [esp + 4]
call fcn.0040cdb8
cmp eax, 0x3f6
jae 0x402915
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040cd38
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40272f
lea edx, [ebx + 1]
jmp 0x402731
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402782
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40275a
jmp 0x402753
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402753
mov byte [ebx + eax], 0x20
jmp 0x40275a
inc eax
cmp byte [ebx + eax], 0
jne 0x402743
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40276f
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402781
cmp edx, 0x20
jne 0x402778
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402789
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402738
cmp byte [0x412cbe], 0
je 0x402799
mov dword [esi + 0x14], 0x412cbe
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00406240
mov edi, eax
test edi, edi
je 0x4027c5
mov edx, str..inf
mov eax, edi
call fcn.0040cec0
test eax, eax
jne 0x4027c5
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406c48
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4027ed
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406d14
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402830
cmp byte [esp + 1], 0
jne 0x402830
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040ce38
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040cf0c
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406c48
test al, al
je 0x402915
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40285a
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402915
cmp byte [0x4128b4], 0
jne 0x402871
cmp byte [esp], 0
je 0x4028c7
mov ebx, dword [0x413140]
test ebx, ebx
je 0x402885
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x402889
xor eax, eax
jmp 0x40288e
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x4028a1
push 0
push dword [0x413140]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [esi + 0x38]
call fcn.0040291f
test ebx, ebx
je 0x4028c7
push 1
push dword [0x413140]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4028e3
mov edx, str..exe
mov eax, edi
call fcn.0040cec0
test eax, eax
je 0x402915
cmp byte [0x4128b4], 0
je 0x4028fe
cmp byte [esp], 0
jne 0x4028fe
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402915
mov edx, 0xc8
cmp byte [esp], 0
jne 0x40290f
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x40294d
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x412044], 0
jne 0x4029d6
mov eax, esp
call fcn.00405f14
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040cee4
test eax, eax
jne 0x4029d6
push 0x41223d
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040cdb8
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040cd38
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x402abf
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x4128bc], 0
je 0x402b36
cmp byte [0x413dfc], 0
je 0x402b36
lea edx, [esp + 8]
mov eax, 0x413dfc
call fcn.00402a8e
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402b36
mov eax, ebx
call fcn.0040cdb8
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402b3e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x4128bc], 0
je 0x402bb7
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.00402a8e
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402bb7
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402baf
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040ce38
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402c7c
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x402de4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x412804
push 1
push 0
push 0x412814
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402ee3
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402e47
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402e59
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040ce38
lea eax, [ebp - 0x40c]
call fcn.00406348
cmp byte [ebp - 0x40c], 0
je 0x402e8a
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x412834
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402eda
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402ed1
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402ef4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x403058
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x413140]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412018], 0
jne 0x4030b4
mov eax, dword [0x4141fc]
call fcn.00404630
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412095
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x40310e
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x403162
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4120bc
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403a94
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x414e38
push ebx
call fcn.0040d6dc
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403ac2
mov eax, ebx
call fcn.00403c60
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x4139f4
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4139f4
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x414e30], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x413df4], eax
push 0x65
push dword [0x414e30]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x413df8], eax
lea eax, [ebp - 8]
call fcn.004058f8
mov edx, 0x4139f4
mov eax, 0x414e1c
call fcn.00404f38
lea eax, [ebp - 0x20]
call fcn.004044a0
lea eax, [ebp - 0x38]
call fcn.004044a0
push 0
push 0x401183
lea edx, [ebp - 0x20]
push 0
mov dword [0x4141fc], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x414200], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x413140], eax
xor edx, edx
mov dword [0x414200], edx
mov dword [0x4141fc], edx
cmp dword [0x413148], 0
jne 0x403b9e
cmp dword [0x413154], 0
jne 0x403b9e
cmp dword [0x41205c], 0
jne 0x403b9e
mov ecx, 4
mov edx, dword [0x412048]
xor eax, eax
call fcn.00401a80
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004044c4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004044c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040596c
cmp byte [0x4128b4], 0
je 0x403bd3
call fcn.0040294d
mov eax, 0x413964
mov ecx, 0x80
xor edx, edx
call fcn.0040cd38
cmp dword [0x412054], 0
jle 0x403bf7
mov eax, dword [0x412048]
call fcn.0040ccbc
push dword [0x413df4]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x413df8]
test eax, eax
je 0x403c11
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x414e10], 0
jne 0x403c32
cmp dword [0x413148], 0
je 0x403c32
mov eax, 0x414e10
mov edx, 0xff
call fcn.0040a168
mov dword [0x413148], 2
mov eax, dword [0x41205c]
test eax, eax
je 0x403c4a
call fcn.0040291f
push dword [0x414e10]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403dd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x413158], 1
mov ebx, dword [0x413140]
test ebx, ebx
je 0x403e00
mov eax, 0x7d
call fcn.00402bc4
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x41315c], edx
mov dword [0x413160], 1
mov eax, dword [0x413140]
test eax, eax
je 0x403e59
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x412054], 0
jne 0x403e50
cmp byte [0x412018], 0
jne 0x403e50
push 0
push 1
push 0x111
push dword [0x413140]
call sub.USER32.DLL_SendMessageA
jmp 0x403e50
call fcn.00402c40
cmp dword [0x413148], 2
jne 0x403e4b
cmp byte [0x4128b4], 0
je 0x403e67
call fcn.0040294d
pop ebx
ret