joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.004014ed

Function at 0x407a15
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.00404c04
and dword [ebp - 4], 0
cmp dword [0x42bc9c], 0
mov ebx, eax
jne 0x407ac6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407b77
push eax
call fcn.00404b92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bc9c], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bca0], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42bca4], eax
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x42bcac], eax
test eax, eax
je 0x407ac6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x42bca8], eax
mov eax, dword [0x42bca8]
cmp eax, ebx
je 0x407b1e
cmp dword [0x42bcac], ebx
je 0x407b1e
push eax
call fcn.00404c0d
push dword [0x42bcac]
mov esi, eax
call fcn.00404c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407b1e
test edi, edi
je 0x407b1e
call esi
test eax, eax
je 0x407b15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407b15
test byte [ebp - 0xc], 1
jne 0x407b1e
or dword [ebp + 0x10], 0x200000
jmp 0x407b57
mov eax, dword [0x42bca0]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407b57
mov eax, dword [0x42bca4]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bc9c]
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ba0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x2713cb4], 0x930
jne 0x409bbd
push str.zomicozaturif
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x2713cb4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2713af8], eax
jne 0x409be3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
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 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 0x109ea608
Capabilities:
Encode data using xor

Disassembly:
jmp 0x109ea612
pushal
call 0x109ea618
pop ebp
sub ebp, 0x10
sub ebp, 0x9ea608
mov al, byte [esp + 0x28]
cmp al, 1
je 0x109ea63c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x109ea645
mov eax, 0x9ea608
add eax, ebp
add eax, 0x63
mov ecx, 0x5c4
mov edx, 0x6544848f
xor byte [eax], dl
inc eax
dec ecx
jne 0x109ea65c
jmp 0x109ea66f
add al, 0x42
add al, 6
mov bl, 0x8f
invalid

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 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.100dd6cf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100dd6cf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.100dd6cf
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0xf5559c
Capabilities:
Encode data using xor

Disassembly:
mov dl, 0xdd
and dh, byte [esi + 0x6f5c5de1]
dec edx
mov edi, 0x9bb1d01a
mov esp, cs
invalid
jbe 0xf55547
or dword [ecx], eax
invalid
jmp 0xf555a6
pushal
call 0xf555ac
pop ebp
sub ebp, 0x10
sub ebp, 0xb5559c
jmp 0xf555c2
mov eax, 0xb5559c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d1
mov edx, 0xd19dea8a
xor byte [eax], dl
inc eax
dec ecx
jne 0xf555d9
jmp 0xf555ec
add dword [edi + 1], eax
add esi, dword [esi + 0xb8a8a8a]
dec ebx
jb 0xf55582
mov cl, byte [edx - 0x73cdb877]
mov cl, byte [edx - 0x755dcf76]
mov cl, byte [edx + 0x4289687d]
add dword [ebx], ecx
xchg byte [edx + 0x4f898a8a], cl
fiadd dword [edi]
out dx, al
scasb al, byte es:[edi]
jbe 0xf5561b
mov gs, word [esi - 0x5447a11e]
mov ah, dl
inc edx
pop esi
mov eax, 0x42e28aab
test al, 0x1e
mov cl, byte [ebx + 0x70e2aea6]
insb byte es:[edi], dx
adc dword [esi - 0x7575709e], ebp
mov ah, byte [ebx - 0x60]
mov cl, byte [edx - 0x19f82076]
scasb al, byte es:[edi]
mov al, byte [ecx]
jb 0x27fe0cc
pop ds
xchg byte [edx + 0x7018a8a], cl
lcall 0x8863, 0x4b8a8a8a
mov ebx, 0x8e480988
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 0x405a70
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x405a97
call fcn.0040442e
jmp 0x405b69
mov ecx, dword [ebp + 8]
push esi
push 0x10024
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
mov dword [ebp + 8], esi
jne 0x405abc
xor esi, esi
inc esi
jmp 0x405b5d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], edi
je 0x405b3b
cmp dword [ebp - 0x1c], 3
je 0x405af1
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
lea esi, [ebp - 0x48]
call fcn.0040c2de
cmp dword [ebp - 0x1c], edi
je 0x405b3b
lea ecx, [ebp - 0x48]
call fcn.0040c353
fmul qword [0x41b758]
fcomp qword [0x41b768]
fnstsw ax
test ah, 5
jp 0x405b3b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 0x1c], 1
jne 0x405aff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebx
je 0x405b4d
xor esi, esi
jmp 0x405b54
call fcn.0040442e
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
leave
ret 4

Function at 0x406137
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x40615e
call fcn.0040442e
jmp 0x4061eb
mov ecx, dword [ebp + 8]
push ebx
push 0xf01ff
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x406181
call fcn.0040442e
mov esi, eax
jmp 0x4061df
push edi
mov eax, 0xdbba0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
inc ecx
push 2
push ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x15180
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
pop edi
jne 0x4061d8
call fcn.0040442e
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop esi
leave
ret 4
Function at 0x407234
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x30], eax
jne 0x40724d
xor eax, eax
jmp 0x407261
lea eax, [esp + 4]
push eax
push esi
push edi
push 0x4074e3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret

Function at 0x407446
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41f278]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
mov esi, ecx
call fcn.0040ec5d
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x260], edi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x40748e
push eax
call fcn.0040e9ef
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x4074bd
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040efeb
leave
ret

Function at 0x407f43
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, 0x417b5a
call fcn.0040fa68
push ecx
push ecx
push esi
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
neg eax
sbb eax, eax
and eax, dword [0x41ac04]
je 0x407fd7
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp - 0x10], 0
test eax, eax
je 0x407fd7
push 4
lea ecx, [ebp - 0x10]
push ecx
call eax
test al, al
je 0x407fd7
mov eax, dword [ebp + 8]
fild dword [ebp + 8]
test eax, eax
jge 0x407fa0
fadd qword [0x41b730]
fadd qword [0x41b728]
mov eax, dword [ebp - 0x10]
test eax, eax
fild dword [ebp - 0x10]
jge 0x407fb6
fadd qword [0x41b730]
fmulp st(1)
fmul qword [0x41b720]
call fcn.00416380
test esi, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x407fd3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x407fe4
test esi, esi
je 0x407fe2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40ac45
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test eax, 0x58aa45c6
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
rol esi, 0x45
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
Function at 0x40ad57
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9

Function at 0x40aef5
Capabilities:
Inspect section memory permissions

Disassembly:
jne 0x40af03
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x40b1df
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0040a957
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x40af56
Function at 0x40bd8a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
invalid
invalid
xor al, 0xf9
Function at 0x40c4cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x40ca8c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x40c561
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
wait
clc
invalid
call dword [esi - 0x7637a3a]
invalid
call dword [esi - 0x7627a3a]
invalid
call dword [esi + eax*8 - 0x7617b]
call dword [ebp - 0x7607a3a]
invalid
invalid
fcmovnb st(0), st(6)
test dword [eax - 0x42000008], esp
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
call [esi - 0x7547a3a]
invalid
call dword [esi - 0x7537a3a]
invalid
invalid
cmpsd dword [esi], dword es:[edi]
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.0040a9f6
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.0040a9f6
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.0040a957
add esp, 0xc
lea eax, [ebp - 0x504]
cli
invalid
dec dword [ecx - 0x39f7b]
invalid
jmp 0x40c95e
cmp dword [ebp - 0x6fc], 1
jne 0x40c612
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
invalid
invalid
cmp eax, esi
test dword [ecx + 0x33fffff8], eax
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.0040a9f6
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0040a957
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x40c95e
cmp dword [ebp - 0x6fc], 2
jne 0x40c6cf
and byte [ebp - 0x79c], 0
invalid
Function at 0x412723
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4204ec]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41276c
call ebp
mov esi, eax
cmp esi, ebx
je 0x412752
mov dword [0x4204ec], 1
jmp 0x412771
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412767
push 2
pop eax
mov dword [0x4204ec], eax
jmp 0x41276c
mov eax, dword [0x4204ec]
cmp eax, 1
jne 0x4127c9
cmp esi, ebx
jne 0x412784
call ebp
mov esi, eax
cmp esi, ebx
jne 0x412784
xor eax, eax
jmp 0x412870
cmp word [esi], bx
mov eax, esi
je 0x412799
inc eax
inc eax
cmp word [eax], bx
jne 0x41278b
inc eax
inc eax
cmp word [eax], bx
jne 0x41278b
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040e5ab
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4127bc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x412870
push ebp
push esi
push edi
call fcn.0040f260
add esp, 0xc
jmp 0x4127ae
cmp eax, 2
je 0x4127d2
cmp eax, ebx
jne 0x41277d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41277d
cmp byte [ebp], bl
mov esi, ebp
je 0x412808
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41277d
push esi
add edi, eax
call fcn.0040f1d0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4127e5
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040e5ab
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x412881
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x412862
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x412877
push edi
call fcn.0040f1d0
push esi
lea edi, [edi + eax + 1]
call fcn.0040e820
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x412828
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040e493
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41277d
Function at 0x41288d
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4204f0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4128cd
call esi
test eax, eax
je 0x4128b2
mov dword [0x4204f0], 1
jmp 0x4128d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4128c9
mov dword [0x4204f0], 2
jmp 0x4128db
xor eax, eax
jmp 0x412929
cmp eax, 1
jne 0x4128d6
call esi
jmp 0x412929
cmp eax, 2
jne 0x4128c9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x412921
lea eax, [esi + esi]
push eax
call fcn.0040e5ab
mov ebp, eax
test ebp, ebp
pop ecx
je 0x412921
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x412925
push ebp
call fcn.0040e493
pop ecx
xor eax, eax
jmp 0x412927
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x415575
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4205e0], ebx
push esi
push edi
jne 0x4155f5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415630
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4205e0], eax
je 0x415630
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4205e4], eax
call esi
cmp dword [0x420288], 2
mov dword [0x4205e8], eax
jne 0x4155f5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4205f0], eax
je 0x4155f5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4205ec], eax
mov eax, dword [0x4205ec]
test eax, eax
je 0x41563a
call eax
test eax, eax
je 0x415621
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4205f0]
test eax, eax
je 0x415621
test byte [ebp - 8], 1
jne 0x41563a
cmp dword [0x420294], 4
jb 0x415634
or byte [ebp + 0x12], 0x20
jmp 0x415659
xor eax, eax
jmp 0x415669
or byte [ebp + 0x12], 4
jmp 0x415659
mov eax, dword [0x4205e4]
test eax, eax
je 0x415659
call eax
mov ebx, eax
test ebx, ebx
je 0x415659
mov eax, dword [0x4205e8]
test eax, eax
je 0x415659
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4205e0]
pop edi
pop esi
pop ebx
leave
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