joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bbf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x46bc23
push esi
call fcn.00470960
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46bc1c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x46bca9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46bc92
mov eax, dword [esi + 8]
test eax, eax
je 0x46bc47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46bc8e
cmp eax, 2
je 0x46bc92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46bc3a
cmp eax, 3
je 0x46bc6d
cmp eax, 1
jne 0x46bc3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46bc3a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46bc3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046bce0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46bcc9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0046bce0
add esp, 4
pop esi
ret

Function at 0x49c410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x49c41b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x49c51e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x513838]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513838]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513838]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513838]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513838]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513838]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513838]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513838]
xor eax, edx
inc ecx
dec edi
jne 0x49c436
pop edi
test esi, esi
je 0x49c540
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513838]
xor eax, edx
inc ecx
dec esi
jne 0x49c522
pop esi
pop ebx
not eax
ret
Function at 0x4d6a64
Capabilities:
Get graphical window text

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

Function at 0x4d8156
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 0x4d8198
call fcn.004de13f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d8198
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d818f
xor eax, eax
jmp 0x4d81a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d81a6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4de66f
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 0x4de69d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4de6bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004de5d5
jmp 0x4de6bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4de6bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004de5d5
test edi, edi
mov eax, edi
jne 0x4de6a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x408ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x408cef
pop dword [ebp - 0x14]
mov eax, 0x408cef
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x3cabba50
sub dword [ebp - 0x24], 0xee597505
mov dword [ebp - 0x20], 0xf6e22752
add dword [ebp - 0x20], 0x3b5124f3
mov dword [ebp - 0x1c], 0xa5ffd5d0
add dword [ebp - 0x1c], 0xa64c6e5e
mov dword [ebp - 0x18], 0xea75fa7b
sub dword [ebp - 0x18], 0xea75fa7b
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xd8a5250b
add dword [ebp - 0x24], 0x9bcd444b
mov dword [ebp - 0x20], 0x40c9b938
sub dword [ebp - 0x20], 0xff5d57c3
mov dword [ebp - 0x1c], 0x5e6184ed
sub dword [ebp - 0x1c], 0xfaf21881
mov dword [ebp - 0x18], 0x9020be65
sub dword [ebp - 0x18], 0x9020be65
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xc219b3f5
sub eax, 0xc1d8e3ad
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3d962
push 0
call eax
mov ecx, 0xcf10c8a8
sub ecx, 0xcf107031
mov edx, eax
mov ebx, 0xde2267eb
add ebx, 0x221f4815
add ebx, dword [ebp - 0x14]
mov esi, 0xd2d90db2
xor dword [ebp - 0xc], ecx
mov edi, dword [ebx]
xor dword [ebp - 0xc], ebx
sub edi, esi
xor dword [ebp - 0x10], 0x5c2167d2
mov dword [edx], edi
sub dword [ebp - 8], edx
add edx, 0xb1e93d03
sub edx, 0xb1e93cff
add ebx, 0x7bdf9d56
add ebx, 0x842062ae
loop 0x408e01
add eax, 0x154af
xor ebx, ebx
add ebx, eax
add eax, 0x1561f722
add eax, 0xea9e08e3
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x404b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x40000002
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b98
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32First]
test eax, eax
je 0x404b98
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404b78
test dl, dl
je 0x404b74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404b78
add ecx, 2
add eax, 2
test dl, dl
jne 0x404b58
xor eax, eax
jmp 0x404b7d
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x130]
push eax
cmove esi, dword [ebp - 0x128]
push edi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x404b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret

Function at 0x401dca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401dd9
pop dword [ebp - 0x30]
mov eax, 0x401dd9
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x97dcfa9b
sub dword [ebp - 0x40], 0x498ab550
mov dword [ebp - 0x3c], 0xb9d8826e
add dword [ebp - 0x3c], 0x785ac9d7
mov dword [ebp - 0x38], 0xafb41eed
add dword [ebp - 0x38], 0x9c982541
mov dword [ebp - 0x34], 0x4e250b29
add dword [ebp - 0x34], 0xb1daf4d7
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xeae92455
sub dword [ebp - 0x40], 0x7676baff
mov dword [ebp - 0x3c], 0x58a4b459
sub dword [ebp - 0x3c], 0x173852e4
mov dword [ebp - 0x38], 0x129da4a6
add dword [ebp - 0x38], 0x50d1c7c6
mov dword [ebp - 0x34], 0xfcd82d24
add dword [ebp - 0x34], 0x327d2dc
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x122e1554
add eax, 0xee141bd0
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3cde8
push 0
call eax
mov ecx, 0x449f
mov ebx, eax
mov edx, 0x77ef6f4b
sub edx, 0x77ac2b4b
add edx, dword [ebp - 0x30]
mov edi, 0x93ae2cb1
mov esi, dword [edx]
add dword [ebp - 0x24], 0x1aa74c08
xor esi, edi
mov dword [ebx], esi
add dword [ebp - 0x2c], ebx
add ebx, 4
add edx, 0x50cf72ed
sub edx, 0x50cf72e9
loop 0x401ee5
add eax, 0x22598ced
sub eax, 0x2258879e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfcba4f4f
sub ecx, 0xfc7a4f4f
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x408c49
Capabilities:
Move file

Disassembly:
mov eax, 0x42ed5b
call fcn.0041c16c
mov eax, 0x5024
call fcn.0041c240
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4030]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408e08
cmp eax, ebx
jae 0x408e08
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408e08
cmp eax, ebx
jae 0x408e08
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b1d0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b1d0
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x408e08
push edi
push dword [ebp + 8]
call fcn.004100df
test eax, eax
je 0x408e08
push edi
push esi
call fcn.0040b1d0
push eax
call fcn.004100df
test eax, eax
jne 0x408e08
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x408d6a
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040e847
push edi
push 0x42f4cc
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b1d0
push eax
call fcn.00403ce2
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.00409820
test al, al
je 0x408d4f
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x408d56
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x408cfd
test ax, ax
je 0x408e08
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040e847
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b23f
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x3030]
push eax
call edi
test eax, eax
je 0x408e08
lea ecx, [ebp - 0x2030]
call fcn.00408e1d
push esi
mov dword [ebp - 4], ebx
call fcn.00409820
test al, al
jne 0x408dcf
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00408f0d
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x408df9
lea ecx, [ebp - 0x2030]
call fcn.00408ebf
lea ecx, [ebp - 0x2030]
call fcn.00409009
lea ecx, [ebp - 0x2030]
call fcn.00408e53
mov al, 1
jmp 0x408e0a
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40db10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x440e48]
test ecx, ecx
jne 0x40db2d
mov ecx, 0x440e40
call fcn.0040da91
mov ecx, dword [0x440e48]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
and eax, 0xf
mov edx, esi
sub edx, eax
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
cmp byte [ebp + 0x10], 0
je 0x40db7b
test ecx, ecx
je 0x40db97
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40dbbc
push 0x42f624
mov esi, 0x43bbf8
push esi
call fcn.004069e4
pop ecx
pop ecx
mov ecx, esi
call fcn.00420f99
push 2
mov ecx, esi
call fcn.004069df
jmp 0x40dbbc
mov ecx, dword [0x440e4c]
test ecx, ecx
je 0x40db97
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40dbbc
push 0x42f658
jmp 0x40db5c
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x40dbbb
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x40dbad
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x40f25b
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x40f2d6
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40f40b
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x40f2b2
push 0x42fe68
push 0x43bbf8
call fcn.004069e4
pop ecx
pop ecx
mov ecx, 0x43bbf8
call fcn.00420f99
push 2
mov ecx, 0x43bbf8
call fcn.004069df
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x44149c]
test eax, eax
je 0x40f2cc
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x40f26b
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov esi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
call dword [ecx + 0x48]
test eax, eax
js 0x4174d5
cmp dword [esp + 0x10], 0
jne 0x41751d
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x41751d
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4174bf
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4174bf
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
test esi, esi
js 0x41758b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x417583
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x4307cc
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x417575
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x41756b
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test esi, esi
js 0x41758b
test ecx, ecx
jne 0x4175dc
xor ebp, ebp
cmp dword [edi + 8], ebp
je 0x4175dc
cmp dword [edi + 0x18], ebp
jne 0x4175dc
cmp dword [edi + 0x14], ebp
je 0x4175dc
push dword [edi + 0x14]
mov ecx, edi
call fcn.00417ad8
mov ebx, eax
test ebx, ebx
je 0x4175dc
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.004216d0
pop ecx
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
setns al
pop ebx
add esp, 0x24
ret 8
Function at 0x418830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x439160], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41887b
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x455e2c], ax
xor eax, eax
mov word [0x455e2e], ax
mov dword [0x439160], 0x455e2c
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e767
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x439150
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041c240
cmp byte [0x448758], 0
je 0x418b25
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00419e17
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x430698
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418b25
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418b1c
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x418b00
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040e847
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41adb9
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.0041c240
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x41afe0
push esi
call fcn.004216b5
pop ecx
cmp eax, 0x7f6
jae 0x41afe0
push ebp
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0041d1e0
movzx ecx, word [esi]
lea edx, [esi + 2]
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x1c0
push 0x22
pop ebp
cmp cx, bp
je 0x41ae19
mov edx, esi
mov dword [esp + 0x24], edx
mov eax, ebx
test cx, cx
je 0x41ae62
push 0x20
mov ecx, esi
pop edi
cmp word [ecx], bp
jne 0x41ae43
jmp 0x41ae36
cmp word [esi + eax*2], bp
je 0x41ae3f
inc eax
cmp word [esi + eax*2], bx
jne 0x41ae30
jmp 0x41ae43
mov word [esi + eax*2], di
cmp word [esi + eax*2], di
je 0x41afb7
cmp word [esi + eax*2 + 2], 0x2f
je 0x41afb1
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x41ae29
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41ae6f
cmp word [eax], bx
jne 0x41ae89
cmp byte [esp + 0x105c], bl
jne 0x41ae89
cmp word [0x44975a], bx
je 0x41ae89
mov dword [esp + 0x28], 0x44975a
push edx
mov dword [esp + 0x34], 1
call fcn.0040aa4a
mov esi, eax
test esi, esi
je 0x41aeb4
push 0x430670
push esi
call fcn.004100df
test eax, eax
jne 0x41aeb4
mov dword [esp + 0x20], 0x43067c
push dword [esp + 0x24]
call fcn.00409820
test al, al
je 0x41aedc
push 0x800
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call fcn.0040a7d3
lea eax, [esp + 0x50]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41afde
mov edi, dword [esp + 0x1054]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x448750], bl
jne 0x41af15
cmp byte [esp + 0x105c], bl
jne 0x41af15
cmp byte [0x454e1c], bl
je 0x41af74
test edi, edi
je 0x41af2a
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41af2a
push ebx
push edi
call ebp
mov bl, 1
push 0x7d0
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x4c]
call fcn.0041b266
cmp byte [0x454e1c], 0
je 0x41af74
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41af74
mov eax, dword [esp + 0x10]
add eax, 0x3e8
cmp eax, dword [0x454e20]
jbe 0x41af74
mov dword [0x454e20], eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41af91
push 0x43068c
push esi
call fcn.004100df
test eax, eax
je 0x41afca
cmp byte [0x448750], 0
mov al, byte [esp + 0x105c]
je 0x41afd1
test al, al
jne 0x41afd1
mov dword [0x454e24], 0x1b58
jmp 0x41afd1
cmp word [esi + eax*2], di
jne 0x41afbd
xor ecx, ecx
mov word [esi + eax*2], cx
inc eax
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
jmp 0x41ae66
mov al, byte [esp + 0x105c]
test bl, bl
je 0x41afde
test al, al
je 0x41afde
push 1
push edi
call ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1040
ret 0xc
Function at 0x41afeb
Capabilities:
Hide graphical window

Disassembly:
and dword [0x441728], 0
push 1
push dword [esp + 8]
mov byte [0x441725], 1
mov byte [0x441726], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004014c3
cmp dword [0x448734], 0
jne 0x41b02b
cmp byte [0x44874d], 0
je 0x41b034
cmp dword [0x448748], 0
jne 0x41b047
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41b147
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041c240
cmp byte [0x448758], 0
je 0x41b1d1
cmp word [0x454e28], 0
je 0x41b1d1
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x454e28
call fcn.00419e17
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x430698
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b1d0
push dword [ebp + 8]
call fcn.004216b5
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41b1d7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041c240
push esi
push dword [ebp + 8]
push 0x43040c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040e63c
mov esi, eax
test esi, esi
je 0x41b22f
movzx ecx, word [esi]
push ecx
jmp 0x41b21a
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040e733
test al, al
jne 0x41b213
push esi
push 0x43041c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4201b8
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x436e70
call fcn.0041cb60
push 1
call fcn.0041c4a6
pop ecx
test al, al
jne 0x41c95e
push 7
call fcn.0041cd6c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041c471
mov byte [ebp - 0x24], al
mov eax, dword [0x457e84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41c957
test eax, eax
jne 0x41c9c8
mov dword [0x457e84], ecx
push 0x42f270
push 0x42f254
call fcn.00424f77
pop ecx
pop ecx
test eax, eax
je 0x41c9ab
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41caaf
push 0x42f250
push 0x42f220
call fcn.00424f1b
pop ecx
pop ecx
mov dword [0x457e84], 2
jmp 0x41c9cd
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041c603
pop ecx
call fcn.0041d055
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41c9fd
push esi
call fcn.0041c576
pop ecx
test al, al
je 0x41c9fd
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041cb5a
call esi
call fcn.0041d05b
mov esi, eax
cmp dword [esi], edi
je 0x41ca1b
push esi
call fcn.0041c576
pop ecx
test al, al
je 0x41ca1b
push dword [esi]
call fcn.00424387
pop ecx
push edi
call fcn.0041ff16
pop ecx
call fcn.0041ce87
movzx eax, ax
push eax
call fcn.00424ec8
push eax
push edi
push 0x400000
call fcn.0041b52f
mov esi, eax
push edi
call fcn.0041ffb2
pop ecx
call fcn.0041ceba
test al, al
jne 0x41ca54
push esi
call fcn.004243bf
test bl, bl
jne 0x41ca5d
call fcn.00424362
push edi
push 1
call fcn.0041c620
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41caaf
call fcn.0041cba6
ret
call fcn.0041cf53
jmp 0x41c93f
jmp 0x42d3a7
jmp 0x41cab5