joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae195
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4ec06c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
call fcn.00414df0
pop ecx
and dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
push 2
pop ecx
call fcn.0044e0c9
cmp dword [ebp - 0x20], 6
jl 0x4ae222
push 5
push str._dump
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x24]
push dword [ecx + eax]
call fcn.0046686b
add esp, 0xc
test eax, eax
jne 0x4ae222
push str.SE_Install
lea ecx, [ebp - 0x1c]
call fcn.00404d2c
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
call fcn.0044e4a0
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00405118
xor eax, eax
jmp 0x4ae252
call fcn.0044e65f
lea ecx, [ebp - 0x34]
call fcn.0049f3ae
push 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.0049f2e1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
call fcn.0049f3a5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461014
leave
ret 0x10

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403a24
test esi, esi
jne 0x402792
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b14
jmp 0x4027b0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402610
mov edi, eax
test esi, esi
je 0x4027b0
cmp dword [ebx], 0
je 0x4027b0
dec esi
jmp 0x402799
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403034
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403014
xor eax, eax
push ebp
push 0x40300d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403050
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403014
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4038a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c03c], 0
je 0x403909
cmp word [0x40c210], 0xd7b2
jne 0x4038d1
cmp dword [0x40c218], 0
jbe 0x4038d1
mov eax, 0x40c20c
call dword [0x40c228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403930
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b018], 0
jne 0x403925
push 0
push 0x40b070
push 0x40b050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x404c14
mov eax, ebx
call fcn.00403d60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4065a0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 8], 1
jne 0x4065be
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x4065be
mov dword [ebx + 8], 2
cmp dword [ebx + 8], 2
sete al
pop ebx
ret
Function at 0x40666c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 1
jb 0x40668d
je 0x406760
jmp 0x40676f
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00406514
test al, al
je 0x40676f
xor eax, eax
push ebp
push 0x406759
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 4]
test al, al
je 0x406743
mov eax, dword [ebp - 4]
mov dword [eax + 8], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
xor edx, edx
call fcn.00405cec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.00405cec
mov eax, dword [ebp - 4]
mov byte [eax + 0x18], 0
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4065c8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
test esi, esi
je 0x406743
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
push esi
call sub.kernel32.dll_SetThreadPriority
test eax, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, ebx
call fcn.00405d04
test al, al
jne 0x406743
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40676f
mov eax, dword [ebp - 4]
call fcn.00406594
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x18], 0
mov eax, dword [ebp - 4]
call fcn.004065a0
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 2
sete al
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1b], 0
je 0x406789
mov edx, dword [ebp - 4]
mov byte [edx + 0x1a], 1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x406a98
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x406aa1
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406bd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403b78
mov esi, eax
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00403ea4
test esi, esi
jle 0x406afd
lea eax, [ebp - 0xc]
call fcn.00403db8
push eax
mov eax, edi
call fcn.00403d60
mov ecx, esi
pop edx
call fcn.004025d0
cmp dword [ebp - 0xc], 0
jne 0x406b0a
mov esi, 0x406be8
jmp 0x406b14
mov eax, dword [ebp - 0xc]
call fcn.00403d60
mov esi, eax
mov eax, dword [ebx + 4]
call fcn.00403d60
push eax
push 0xffff
lea eax, [ebp - 0x1000b]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00403d60
push eax
mov eax, dword [ebx + 8]
call fcn.00403d60
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov esi, eax
cmp dword [ebp - 0xc], 0
jne 0x406bb1
cmp esi, 1
jne 0x406bb1
cmp byte [ebp - 0x1000b], 0x30
jne 0x406bb1
mov esi, 0x406bec
mov eax, dword [ebx + 4]
call fcn.00403d60
push eax
push 3
lea eax, [ebp - 7]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00403d60
push eax
mov eax, dword [ebx + 8]
call fcn.00403d60
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov esi, eax
cmp esi, 1
jne 0x406b9c
cmp byte [ebp - 7], 0x32
jne 0x406b9c
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.00403a78
jmp 0x406bc1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1000b]
mov ecx, 0xffff
call fcn.00403b60
jmp 0x406bc1
lea edx, [ebp - 0x1000b]
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.00403b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bde
lea eax, [ebp - 0xc]
call fcn.00403a24
ret

Function at 0x407588
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x40759d
add esp, 0xfffffff0
call fcn.0040322c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00406404
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebx + 0x48], eax
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebx + 0x44], eax
lea eax, [ebx + 0x2d]
push eax
mov eax, dword [ebx + 0x48]
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
mov eax, dword [ebp - 8]
call fcn.00403d60
push eax
call sub.kernel32.dll_SetConsoleTitleA
test esi, esi
je 0x4075fc
push esi
push 1
push 0x80
push 0
call sub.user32.dll_SendMessageA
test edi, edi
je 0x40760a
push edi
mov eax, dword [ebx + 0x48]
push eax
call sub.kernel32.dll_SetConsoleTextAttribute
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov byte [ebx + 0x2c], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x40762b
call fcn.00403284
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x409b28
Capabilities:
Create process on windows

Disassembly:
and edx, 0xffff
sub edx, 0xa
jne 0x409b4a
push 1
push 0
push 0
push 0x409b50
push 0x409b6c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1e0e67ea
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6fb017b7
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034

Function at 0x402da5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405537], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402dec
xor eax, eax
jmp 0x402e03
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403222
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404488
push 0x403384
push eax
mov eax, dword [0x4055b4]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055b0]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040337a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055ac]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4032bd
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4032b5
cmp al, 0x22
jne 0x4032aa
cmp byte [esi], 0x22
jne 0x4032c7
inc esi
jmp 0x4032c7
cmp al, 0x20
jbe 0x4032c7
inc esi
cmp byte [esi], 0x20
ja 0x4032c1
cmp byte [esi], 0
je 0x4032d7
cmp byte [esi], 0x20
ja 0x4032d7
inc esi
cmp byte [esi], 0
jne 0x4032cc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032f7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403333
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and edx, 0xcb
inc esi
imul eax
inc edi
imul esi
not edx
inc eax
inc esi
ror ebx, 0xe
sub edi, 0xd2
bswap edi
sbb edi, 0x9b
bswap edi
rol esi, 0x69
inc ebx
rol eax, 0x9e
neg eax
and eax, 0xd2
neg edx
rol edi, 0xb6
add esi, 0x3b
rol esi, 0x9b
neg edi
or eax, 0xd7
mov esi, 0xd7
rol ebx, 0xb6
rcr ebx, 0x24
bswap eax
add eax, 0xcf
imul eax
neg eax
dec edx
sub eax, 0x7d
bswap esi
bswap esi
mov esi, 0xc5
bswap eax
not edi
not esi
ror esi, 0xc1
bswap esi
neg ebx
rcr ebx, 0xd3
inc eax
not ebx
neg ebx
neg eax
or esi, 0xc1
bswap edi
bswap eax
xor ecx, ecx
xor edi, edi
rol eax, 0x86
rcl ebx, 0x2c
dec ebx
sbb esi, 0xfd
sub edx, 0x4f
and edx, 0x61
sbb eax, 0x16
dec edi
neg edx
bswap edi
rcr ebx, 0x12
inc ebx
mov eax, 0x51
neg edx
add edi, 0x42
neg edx
neg esi
and edx, 0xc1
inc edi
bswap eax
neg esi
rcr edx, 0x67
add edx, 0x7d
ror edx, 0xde
neg ebx
not edx
bswap eax
bswap edi
not eax
rol esi, 0x6a
inc eax
rol edx, 0x34
neg ebx
and esi, 0x8d
bswap ebx
imul edx
not edx
or esi, 0x54
inc edx
rcl esi, 0x43
mov eax, 0xa
rcr esi, 0x1b
and eax, 0xf
rol ebx, 0x78
sbb ebx, 0xcf
dec eax
imul edi
rcr ebx, 0x8a
sub edx, 0x8e
ror eax, 0x30
mov ecx, dword [ebp + 0xc]
ror ebx, 6
sbb esi, 0x12
or esi, 0x31
rcl edi, 0x92
rcr eax, 0x68
not edi
and esi, 0x2b
imul esi
rol ebx, 0x56
sbb esi, 0x78
bswap eax
inc eax
rcl ebx, 8
rol edi, 0x56
or esi, 0x8c
and eax, 0xe
inc ebx
not eax
sbb eax, 0x1b
mov ebx, 0x60
neg edi
sub esi, 0x67
neg eax
bswap esi
imul esi
bswap edx
dec esi
bswap edx
not eax
inc esi
sub esi, 0xcf
sbb ebx, 0xff
or edx, 0xfc
neg edx
dec esi
sbb ebx, 0x10
sbb eax, 0xa3
ror eax, 0x77
and eax, 0x1d
sub esi, 0x82
bswap edi
bswap esi
neg ebx
sbb esi, 0xd6
sbb eax, 0x53
and esi, 0x8a
not eax
bswap esi
not edi
inc eax
mov edi, dword [ebp + 8]
mov ebx, ebx
mov eax, esi
xor eax, ebx
not byte [edi]
mov eax, ebx
mov ebx, esi
xor eax, eax
xor eax, eax
mov ebx, esi
xor eax, eax
mov esi, ebx
mov eax, esi
xor ebx, ebx
add byte [edi], 0x26
mov esi, esi
xor esi, esi
xor eax, eax
mov esi, ebx
mov ebx, esi
xor eax, eax
xor eax, ebx
mov ebx, eax
mov ebx, ebx
sub byte [edi], 0x87
xor esi, ebx
xor esi, eax
xor esi, esi
mov esi, esi
mov ebx, eax
xor eax, ebx
mov ebx, esi
mov esi, eax
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013b8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406224
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43225c]
jne 0x40622e
repz ret
jmp fcn.00407f25
Function at 0x409763
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.004062a5
and dword [ebp - 4], 0
cmp dword [0x43384c], 0
mov ebx, eax
jne 0x409814
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4098c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4098c5
push eax
call fcn.00406233
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43384c], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433850], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433854], eax
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x43385c], eax
test eax, eax
je 0x409814
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x433858], eax
mov eax, dword [0x433858]
cmp eax, ebx
je 0x40986c
cmp dword [0x43385c], ebx
je 0x40986c
push eax
call fcn.004062ae
push dword [0x43385c]
mov esi, eax
call fcn.004062ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40986c
test edi, edi
je 0x40986c
call esi
test eax, eax
je 0x409863
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409863
test byte [ebp - 0xc], 1
jne 0x40986c
or dword [ebp + 0x10], 0x200000
jmp 0x4098a5
mov eax, dword [0x433850]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098a5
mov eax, dword [0x433854]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43384c]
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4098c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x28c80e84
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x18887f31
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x407450], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x404f7c
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011b1
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.004051c0
test dword [ebp + 0x14], 1
je 0x4011a3
push ebx
call fcn.0040122d
cmp byte [ebx], 0
je 0x4011b1
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0x10