joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475a45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475b5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x475b5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a3d85
mov esi, eax
test esi, esi
je 0x475b5d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x475b5d
mov ecx, esi
call fcn.004758e0
cmp edi, eax
jge 0x475b5d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475ae3
mov dword [esp + 0x34], 1
jmp 0x475b3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x475b5d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00472e00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47d370
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a918
push 0x492e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491590
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d520
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x47d561
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x47d5ce
cmp dword [esp + 0x1c], 2
jne 0x47d5ce
cmp dword [esp + 0x10], 5
jne 0x47d5ce
cmp dword [esp + 0x14], 1
jne 0x47d5ce
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47d5b8
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47d5a9
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x47d5b1
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x47d5ce
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x47d900
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 0x47d966
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 0x47d966
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47d947
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47dd40
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47dd78
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47e9a0
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 0x47e9e9
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 0x47ee60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3890
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.0047ea10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047ea90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047ea90
lea ecx, [esi + 0xc]
call fcn.004a229a
lea ecx, [esi + 0x10]
call fcn.004a229a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00480020
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00480020
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00480020
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a230f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a230f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x483620
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x538b3c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x483633
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x483674
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x538be4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4836a6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4836aa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48369b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4836c8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4836cc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4836bd
xor ecx, ecx
mov eax, 0x538b4c
xor ebx, ebx
mov bl, byte [ecx + 0x538bf4]
cmp byte [esp + ebx + 0x14], 0
je 0x4836f7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x538c0c]
cmp byte [esp + ebx + 0x14], 0
je 0x48370e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4836de
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x483667
lea edx, [esp + 0x84]
push edx
call fcn.00483750
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a4729
Capabilities:
Get graphical window text

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

Function at 0x4a5e17
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 0x4a5e59
call fcn.004abdc1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a5e59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a5e50
xor eax, eax
jmp 0x4a5e61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a5e67
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ac2f1
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 0x4ac31f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ac33d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ac257
jmp 0x4ac33d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ac33d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ac257
test edi, edi
mov eax, edi
jne 0x4ac327
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001f990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x1000]
mov dword [ebp + 8], 0x10
xor eax, dword [edi]
push eax
push esi
mov dword [ebp - 4], eax
call fcn.1001f9ed
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
add edi, 4
dec dword [ebp + 8]
pop ecx
jne 0x1001f9b1
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [esi + 0x1040]
pop edi
xor eax, ecx
mov ecx, dword [esi + 0x1044]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x1001fb63
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x1044]
mov dword [ebp + 8], 0x10
xor eax, dword [edi]
push eax
push esi
mov dword [ebp - 4], eax
call fcn.1001f9ed
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 8]
pop ecx
jne 0x1001fb84
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [esi + 0x1004]
pop edi
xor eax, ecx
mov ecx, dword [esi + 0x1000]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
pop ebx
mov dword [ecx], eax
leave
ret
Function at 0x1001fec1
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 8]
push edi
shl esi, 0x18
shr eax, 8
or esi, eax
mov edi, esi
mov eax, esi
shl edi, 0x18
shr eax, 8
or edi, eax
mov dword [ebp - 4], esi
mov eax, edi
mov ecx, edi
shl eax, 0x18
shr ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and ecx, 0x3ffffffe
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x10], edi
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], ecx
je 0x1001ff8c
cmp eax, ecx
jae 0x1001fffa
jmp 0x1001ff20
mov esi, dword [ebp - 4]
mov ecx, dword [eax]
and dword [ebp + 0x14], 0
lea edx, [eax + 4]
mov dword [ebp + 0x10], 0x20
mov dword [ebp + 0xc], edx
mov edx, dword [edx]
jmp 0x1001ff3a
mov esi, dword [ebp - 4]
mov edi, edx
sub dword [ebp + 0x14], 0x61c88647
shr edi, 5
add edi, esi
mov esi, edx
shl esi, 4
add esi, dword [ebp + 8]
xor edi, esi
mov esi, dword [ebp + 0x14]
add esi, edx
xor edi, esi
add ecx, edi
mov esi, ecx
mov edi, ecx
shr esi, 5
add esi, dword [ebp - 8]
shl edi, 4
add edi, dword [ebp - 0x10]
xor esi, edi
mov edi, dword [ebp + 0x14]
add edi, ecx
xor esi, edi
add edx, esi
dec dword [ebp + 0x10]
jne 0x1001ff37
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
add eax, 4
cmp eax, dword [ebp - 0xc]
jb 0x1001ff1d
jmp 0x1001fffa
cmp eax, ecx
jae 0x1001fffa
push ebx
mov edx, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 0xc6ef3720
mov ecx, dword [ecx]
mov dword [ebp + 0x10], 0x20
mov esi, edx
mov ebx, edx
shr esi, 5
add esi, dword [ebp - 8]
shl ebx, 4
add ebx, edi
xor esi, ebx
mov ebx, dword [ebp + 0x14]
add ebx, edx
xor esi, ebx
sub ecx, esi
mov esi, ecx
mov ebx, ecx
shr esi, 5
add esi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp + 8]
xor esi, ebx
mov ebx, dword [ebp + 0x14]
add dword [ebp + 0x14], 0x61c88647
add ebx, ecx
xor esi, ebx
sub edx, esi
dec dword [ebp + 0x10]
jne 0x1001ffa9
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
add eax, 4
cmp eax, dword [ebp - 0xc]
jb 0x1001ff91
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10020bd7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x10020c30
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.10026790
pop ecx
test eax, eax
pop ecx
je 0x10020c37
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x10020c0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x10020c32
Function at 0x100210de
Capabilities:
Check for time delay via gettickcount
Create thread
Hide graphical window
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0x14]
cmp byte [ebp + 0x18], 0
push ebx
mov bl, byte [ebp + 0x10]
mov dword [0x10032ad8], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov byte [0x10032aec], al
mov byte [0x10032aed], bl
mov dword [0x10032ad4], ecx
je 0x10021165
test al, al
jne 0x10021165
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [0x10032af9], 1
call edi
mov esi, eax
xor eax, eax
push 0x10032af0
push eax
push eax
push 0x10021489
push eax
push eax
add esi, 0xfa
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [0x10032af9], 0
je 0x1002115d
call edi
cmp eax, esi
jae 0x1002115d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10021144
push 1
pop eax
jmp 0x100212db
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [0x10032af8], 0
mov dword [0x10032af0], eax
jne 0x100211de
mov eax, dword [0x10032780]
xor esi, esi
mov dword [ebp - 0x18], eax
mov al, byte [0x10032aec]
neg al
sbb eax, eax
mov dword [ebp - 0x28], esi
and al, 0xfe
mov dword [ebp - 0x24], 0x100212e0
add eax, 0x7f02
mov dword [ebp - 0x20], esi
push eax
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x1002f4b4
jne 0x100211cb
mov dword [ebp - 4], 0x1002f49c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov byte [0x10032af8], 1
jmp 0x100211e0
xor esi, esi
cmp byte [ebp + 0x14], 0
je 0x100211f8
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
inc edi
cmp edi, 0x100
jl 0x100211e8
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
sub eax, dword [0x10032ad8]
push 1
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call esi
mov ecx, dword [0x10032ad4]
sub eax, ecx
cdq
sub eax, edx
mov edx, 0x1002f4b4
sar eax, 1
cmp byte [ebp + 0x14], 0
jne 0x1002122f
mov edx, 0x1002f49c
xor esi, esi
push esi
push dword [0x10032780]
push esi
push esi
push ecx
push dword [0x10032ad8]
push eax
mov al, byte [0x10032aec]
neg al
sbb eax, eax
push edi
and eax, 0xf8000000
add eax, 0x8000000
or eax, 0x80000000
neg bl
sbb ebx, ebx
push eax
and ebx, 0xffffff88
push esi
add ebx, 0x80
push edx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 4
push eax
mov dword [0x10032ae0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x10032ae0]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [ebp + 0x14], 0
je 0x100212a3
push esi
push 0x64
push 2
push dword [0x10032ae0]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [0x10032ae0]
lea eax, [ebp - 0x128]
push 0x1002f448
push eax
call fcn.1002219b
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x1002f48c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
and byte [0x10032af9], 0
mov eax, dword [0x10032ae0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10023bac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1002f5e8
cmp edx, dword [eax]
je 0x10023bce
add eax, 8
inc ecx
cmp eax, 0x1002f678
jl 0x10023bbf
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1002f5e8]
jne 0x10023cfc
mov eax, dword [0x10032ce4]
cmp eax, 1
je 0x10023cd6
test eax, eax
jne 0x10023bff
cmp dword [0x10032ce8], 1
je 0x10023cd6
cmp edx, 0xfc
je 0x10023cfc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10023c36
lea eax, [ebp - 0x1a4]
push 0x10032544
push eax
call fcn.10021d30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10021e20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10023c79
lea eax, [ebp - 0x1a4]
push eax
call fcn.10021e20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10032540
push edi
call fcn.10025a60
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x10032524
push eax
call fcn.10021d30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10021d40
lea eax, [ebp - 0xa0]
push 0x10032520
push eax
call fcn.10021d40
push dword [esi + 0x1002f5ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.10021d40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x100324f8
push eax
call fcn.100259c8
add esp, 0x2c
pop edi
jmp 0x10023cfc
lea eax, [ebp + 8]
lea esi, [esi + 0x1002f5ec]
push 0
push eax
push dword [esi]
call fcn.10021e20
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 0x43b62e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop ecx
or esi, esi
mov esi, esi
call fcn.0043b660
push eax
pop eax
xor dword [edi], ecx
and eax, eax
inc edi
or esi, esi
add esi, esi
cmp edi, ebx
jne fcn.0043b62e
mov eax, 0x5b965fc8
and esi, eax
dec esi
ret
Function at 0x401fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40217f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402144
cmp dword [ebp + 0xc], 3
jbe 0x402144
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e50
mov dword [ebp - 0x74], eax
jmp 0x4020e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40213f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40213a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402154
jmp 0x40213f
jmp 0x402144
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402171
jmp 0x40216c
jmp 0x40217f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402078
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b4400], eax
pop esi
pop edi
pop ebp
ret
Function at 0x41f680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f6ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f6ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret