joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f9bac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409978
mov eax, dword [ebp - 8]
call fcn.00409978
mov eax, dword [ebp - 0xc]
call fcn.00409978
xor eax, eax
push ebp
push 0x5f9c67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.004075b8
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800040
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0x40], eax
mov eax, 0x5f9c74
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
call fcn.0040a504
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.0040a504
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0040a504
mov dword [ebp - 0x38], eax
cmp byte [ebp + 8], 0
je 0x5f9c3c
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x5f9c43
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f9c6e
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004098f4
ret

Function at 0x5f9c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409978
mov eax, dword [ebp - 8]
call fcn.00409978
mov eax, dword [ebp - 0xc]
call fcn.00409978
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x5f9d6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.004075b8
mov dword [esi], 0x3c
mov dword [esi + 4], 0x800140
call sub.user32.dll_GetActiveWindow
mov dword [esi + 8], eax
mov eax, 0x5f9d80
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0040a504
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 8]
call fcn.0040a504
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040a504
mov dword [esi + 0x10], eax
cmp byte [ebp + 8], 0
je 0x5f9d13
xor eax, eax
mov dword [esi + 0x1c], eax
jmp 0x5f9d1a
mov dword [esi + 0x1c], 1
push esi
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x5f9d29
mov ebx, dword [esi + 0x38]
jmp 0x5f9d3a
or ebx, 0xffffffff
jmp 0x5f9d52
mov eax, dword [0x72ada8]
mov eax, dword [eax]
call fcn.0059e2e8
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x5f9d2e
push ebx
call sub.kernel32.dll_CloseHandle
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f9d74
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004098f4
ret
Function at 0x609318
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov edx, dword [esi]
mov esi, dword [esi + 4]
xor ecx, ecx
push edi
xor eax, eax
mov dword [edx + 0x16], ecx
movzx edi, byte [edx + ecx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x728200]
inc ecx
cmp ecx, esi
jl 0x609329
pop edi
pop esi
mov dword [edx + 0x16], eax
pop ebx
ret

Function at 0x60dcc6
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
fld1
mov eax, 0x725bfc
fst dword [eax]
sub eax, 4
fmul qword [0x708b80]
cmp eax, 0x725800
jge 0x60dcd2
fstp st(0)
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x60dcfd
add eax, eax
xor eax, 0x4c11db7
jmp 0x60dcff
add eax, eax
dec edx
jne 0x60dcf0
mov dword [ecx*4 + 0x728200], eax
inc ecx
cmp ecx, 0x100
jl 0x60dce8
fld qword [0x708b48]
mov edx, 0x71b6a0
fld qword [0x708b60]
xor ecx, ecx
and dword [ebp - 4], 0
push 0x20
pop eax
shl eax, cl
mov dword [ecx*4 + 0x7257dc], edx
mov dword [ebp - 8], eax
test eax, eax
jle 0x60dd69
fild dword [ebp - 8]
fild dword [ebp - 4]
fadd dword [0x708b18]
fdiv st(1)
fmul st(3)
fmul st(2)
fsin
fld st(0)
fmulp st(1)
fmul st(3)
fmul st(2)
fsin
fstp dword [edx]
add edx, 4
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x60dd3f
fstp st(0)
inc ecx
cmp ecx, 8
jl 0x60dd25
fstp st(1)
fstp st(0)
leave
ret
Function at 0x613505
Capabilities:
Enumerate pe sections

Disassembly:
mov dl, byte [ecx]
push esi
mov esi, eax
xor eax, eax
test dl, 0x40
je 0x61351b
and dl, 0xbf
mov byte [ecx], dl
jmp 0x6135d3
test dl, 8
jne 0x6135d3
test dl, 1
je 0x6135d7
push ebx
mov bl, dl
and bl, 2
push edi
je 0x613543
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x4c], eax
jne 0x6135a8
test dl, dl
js 0x6135a8
cmp bl, al
je 0x61358e
mov ebx, dword [ecx + 4]
and dl, 0xfd
mov byte [ecx], dl
movzx edx, word [esi + ebx*4 + 6]
mov dword [ecx + 0xc], edx
movzx edi, word [esi + ebx*4 + 0xa]
mov dword [ecx + 0x10], edi
cmp edi, edx
jle 0x613578
movzx edx, word [esi + ebx*4 + 8]
movzx eax, word [esi + ebx*4 + 0xc]
sub edi, dword [ecx + 0xc]
sub eax, edx
shl eax, 0x10
cdq
idiv edi
mov dword [ecx + 0x18], eax
movzx eax, word [esi + ebx*4 + 8]
shl eax, 0x10
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 8], eax
jmp 0x6135a8
mov edi, dword [ecx + 0x18]
add dword [ecx + 0x14], edi
mov edi, dword [ecx + 0x14]
js 0x6135a2
mov eax, 0x400000
cmp edi, eax
jle 0x6135a5
mov dword [ecx + 0x14], eax
inc dword [ecx + 8]
test byte [ecx], 2
pop edi
pop ebx
jne 0x6135d3
mov eax, dword [ecx + 4]
movzx edx, word [esi + eax*4 + 0xa]
cmp dword [ecx + 8], edx
jne 0x6135d3
movzx edx, byte [esi + 1]
inc eax
cmp eax, edx
jge 0x6135d3
push dword [esp + 8]
mov edx, 0x10000
call fcn.00613388
movsx eax, word [ecx + 0x16]
pop esi
ret 4
Function at 0x62a6bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x72ada8]
mov eax, dword [eax]
call fcn.0059e2e8
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x62a6fd
cmp eax, dword [esp]
pop edx
pop eax
ja 0x62a6c7
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x62a6c7
pop esi
pop ebx
ret

Function at 0x63209c
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 0x6320ed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x6320d4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x6320c4
jmp 0x6320ed
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 0x6320d5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x693c9c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00409978
mov eax, dword [ebp - 8]
test eax, eax
je 0x693cca
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x693da3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00407344
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00423024
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040a770
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040a504
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00407344
mov eax, dword [ebp - 0x14]
call fcn.0040a504
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x693d7e
movzx eax, word [0x693db4]
push eax
push 2
push 0
push 0
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x18]
mov eax, dword [0x5fa060]
call fcn.005fb99c
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, 0x693dc4
call fcn.005fb9f0
lea ecx, [ebp - 0x1c]
xor edx, edx
call fcn.005fba54
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x693de0
call fcn.0040a770
mov eax, dword [ebp - 0x18]
mov cl, 1
mov edx, 0x693e5c
call fcn.005fe204
jmp 0x693d80
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x693daa
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004098f4
lea eax, [ebp - 4]
call fcn.00409894
ret
Function at 0x401020
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov edx, 2
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [eax]
mov dword [ebp - 0x20], eax
movzx eax, word [esi]
test ax, 0xffdf
je 0x4010ae
cmp ax, 9
je 0x4010ae
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
cmp ax, 0x5c
je 0x40109e
lea esi, [esi]
lea esi, [esi]
cmp ax, 0x22
je 0x4011c8
mov dword [ebp - 0x1c], 0
movzx eax, word [esi + edx*2 - 2]
test ax, ax
je 0x4010ac
cmp ax, 9
lea edi, [edx + 1]
sete cl
cmp ax, 0x20
sete bl
or cl, bl
je 0x401096
test byte [ebp - 0x24], 1
je 0x4010ac
mov edx, edi
cmp ax, 0x5c
jne 0x401060
movzx eax, word [esi + edx*2 - 2]
add dword [ebp - 0x1c], 1
test ax, ax
jne 0x40107b
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x401197
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
movzx edx, word [eax]
test dx, 0xffdf
je 0x401222
cmp dx, 9
je 0x401222
mov dword [ebp - 0x24], 0
xor edi, edi
mov dword [ebp - 0x1c], ecx
lea esi, [esi]
nop
add eax, 2
cmp dx, 0x5c
je 0x4011a8
cmp dx, 0x22
je 0x4011e0
mov edi, dword [ebp - 0x1c]
mov word [edi], dx
add edi, 2
mov dword [ebp - 0x1c], edi
xor edi, edi
movzx edx, word [eax]
test dx, dx
je 0x401159
cmp dx, 9
sete bl
cmp dx, 0x20
mov esi, ebx
sete bl
mov ecx, esi
or cl, bl
je 0x401110
test byte [ebp - 0x24], 1
jne 0x401110
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
xor edx, edx
mov word [ecx], dx
mov dword [edi], eax
movzx edx, word [eax]
cmp dx, 9
je 0x401175
cmp dx, 0x20
jne 0x401197
add eax, 2
lea esi, [esi]
nop
mov esi, dword [ebp - 0x20]
mov dword [esi], eax
movzx edx, word [eax]
add eax, 2
cmp dx, 9
je 0x401180
cmp dx, 0x20
je 0x401180
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov ebx, 0x5c
add edi, 1
mov word [esi], bx
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x401135
and dword [ebp - 0x1c], 1
jne 0x40106a
xor dword [ebp - 0x24], 1
jmp 0x401071
mov edx, edi
sar edx, 1
and edi, 1
jne 0x401200
add edx, edx
xor dword [ebp - 0x24], 1
xor edi, edi
sub dword [ebp - 0x1c], edx
jmp 0x401135
mov ecx, dword [ebp - 0x1c]
mov ebx, 0x7fffffff
sub ebx, edx
lea edx, [ecx + ebx*2]
mov ecx, 0x22
lea edi, [edx + 2]
mov word [edx], cx
mov dword [ebp - 0x1c], edi
xor edi, edi
jmp 0x401135
mov ecx, dword [ebp - 0x28]
jmp 0x40115c
Function at 0x402fd0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x403040
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4030db
cmp ax, 9
je 0x4030c8
cmp ax, 0x20
je 0x4030c8
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x403130
cmp ax, 0x22
je 0x403140
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4030db
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x403080
test edi, 1
jne 0x403080
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4030c8
cmp ax, 0x20
je 0x4030c8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x403158
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401570
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40309b
and dword [ebp - 0x6c], 1
jne 0x403094
xor edi, 1
jmp 0x40309b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4030f4
Function at 0x403040
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x403040
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4030db
cmp ax, 9
je 0x4030c8
cmp ax, 0x20
je 0x4030c8
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x403130
cmp ax, 0x22
je 0x403140
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4030db
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x403080
test edi, 1
jne 0x403080
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4030c8
cmp ax, 0x20
je 0x4030c8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x403158
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401570
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40309b
and dword [ebp - 0x6c], 1
jne 0x403094
xor edi, 1
jmp 0x40309b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4030f4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401005
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xb9e912bd
mov esi, 0x40d000
mov ebx, 0xbcf17fad
sub esp, 0x11e4
mov edi, esp
cld
mov ecx, 0x479
ror edx, 7
sub edx, ebx
sub ebx, ecx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
dec ecx
jne 0x401022
push esp
ret

Function at 0x401de1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4060e0
cmp edx, dword [eax]
je 0x401e03
add eax, 8
inc ecx
cmp eax, 0x406170
jl 0x401df4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4060e0]
jne 0x401f31
mov eax, dword [0x4084c8]
cmp eax, 1
je 0x401f0b
test eax, eax
jne 0x401e34
cmp dword [0x406034], 1
je 0x401f0b
cmp edx, 0xfc
je 0x401f31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004023c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401eae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053b0
push edi
call fcn.00403c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004023c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004023d0
lea eax, [ebp - 0xa0]
push 0x405390
push eax
call fcn.004023d0
push dword [esi + 0x4060e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004023d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403b84
add esp, 0x2c
pop edi
jmp 0x401f31
lea eax, [ebp + 8]
lea esi, [esi + 0x4060e4]
push 0
push eax
push dword [esi]
call fcn.00402570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x432750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x4327fa
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x432816
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x432816
sub dx, 0x20
je 0x4327f0
sub dx, 0x80
je 0x4327f0
sub dx, 0x1f62
jb 0x432816
sub dx, 1
jbe 0x4327f0
sub dx, 6
je 0x4327f0
sub dx, 0x26
jne 0x432816
nop
jmp 0x4327f0
cmp eax, dword [ebp - 0x20]
jg 0x432798
lea esi, [esi]
jmp 0x432816
cmp dword [ebp - 0x1c], 2
jne 0x43280a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x432816
mov al, byte [ebp - 0xc]
call fcn.0040b460
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x432894
sub ax, 0x21
je 0x4328a8
sub ax, 0x17
je 0x4328b4
sub ax, 0x222
je 0x4328c0
sub ax, 0x392
je 0x4328c8
sub ax, 1
je 0x4328d0
sub ax, 0x1996
je 0x4328d8
sub ax, 1
je 0x4328e0
sub ax, 6
je 0x4328e8
sub ax, 0xb
je 0x4328f8
sub ax, 0x1b
je 0x4328f0
sub ax, 0x367
je 0x432900
jmp 0x432908
mov ax, word [ebp - 0x24]
call fcn.0040b4d0
mov byte [ebp - 0x10], al
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2e
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x2c
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x20
jmp 0x432910
mov byte [ebp - 0x10], 0x2d
jmp 0x432910
mov byte [ebp - 0x10], 0x27
jmp 0x432910
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44007c]
jne 0x401cdf
repz ret
jmp fcn.00402908

Function at 0x40837a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44007c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b1d
and dword [ebp - 0x14], 0
cmp dword [0x442e64], 0
mov dword [ebp - 0x18], eax
jne 0x40842d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4084d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4084d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x442e64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x442e68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x442e6c], eax
call edi
push eax
call esi
mov dword [0x442e74], eax
test eax, eax
je 0x40842d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x442e70], eax
mov eax, dword [0x442e70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408486
cmp dword [0x442e74], ecx
je 0x408486
push eax
call esi
push dword [0x442e74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408486
test ebx, ebx
je 0x408486
call edi
test eax, eax
je 0x40847d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40847d
test byte [ebp - 8], 1
jne 0x408486
or dword [ebp + 0x10], 0x200000
jmp 0x4084b9
mov eax, dword [0x442e68]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084b9
mov eax, dword [0x442e6c]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x442e64]
call esi
test eax, eax
je 0x4084d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4084d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret