joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415bad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0xf0], eax
lea esi, [ebp - 0xcc]
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xd8], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
mov ebx, edi
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xe4], 0x43c374
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd4], 0xc8
call fcn.0041270b
push eax
mov dword [ebp - 0xe8], eax
call fcn.00413afc
mov edx, dword [ebp - 0xd8]
mov ecx, eax
add esp, 0xc
lea eax, [ecx + ecx]
mov word [ebp - 0xec], ax
mov eax, dword [ebp - 0xec]
add eax, 2
mov word [ebp - 0xea], ax
test edx, edx
je 0x415d17
cmp edx, 0xffffffff
je 0x415d17
cmp dword [ebp - 0xdc], ebx
jne 0x415d17
lea ecx, [ecx*2 + 2]
movzx eax, ax
cmp eax, ecx
jne 0x415d17
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 0xd4]
lea eax, [ebp - 0xec]
push esi
push 2
push eax
push edx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, 0x80000005
je 0x415cb3
cmp eax, 0xc0000023
jne 0x415cdf
mov eax, dword [ebp - 0xf8]
push eax
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0xe4]
call dword [eax]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x415d17
mov edx, dword [ebp - 0xd8]
jmp 0x415c87
test eax, eax
jne 0x415d17
mov edx, dword [ebp - 0xf0]
mov ecx, dword [esi + 8]
add ecx, 6
push ecx
mov eax, dword [edx]
push edx
call dword [eax]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x415d17
mov ebx, dword [esi + 8]
lea ecx, [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
push ecx
push edi
mov dword [ebp - 0xd0], eax
call fcn.00423060
add esp, 0xc
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x415d29
mov ecx, dword [ebp - 0xd0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x415d35
mov dword [eax], ebx
lea eax, [ebp - 0xe4]
push eax
call fcn.0041cf2f
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret
Function at 0x4166da
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0xdc], eax
or ebx, 0xffffffff
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0xe0], eax
and dword [ebp - 0xd4], edi
mov eax, 0x40000000
and dword [ebp - 0xd8], edi
mov dword [ebp - 0xd0], eax
cmp dword [ebp + 8], edi
je 0x41673e
mov esi, 0x80003
mov dword [ebp - 0xd0], 0xc0000000
mov dword [ebp - 0xd8], 0x8000
jmp 0x416743
mov esi, 0x80001
cmp dword [ebp + 0xc], edi
je 0x416750
or esi, eax
mov dword [ebp - 0xd4], eax
call fcn.00410638
push edx
push eax
xor eax, eax
mov ecx, 0x43e50c
inc eax
lock xadd dword [ecx], eax
inc eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str..PipeAnonymousPipe._i._p._i._I64i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0xcc]
push 0
push 0x7530
push 0x8000
push dword [ebp - 0xd8]
push 1
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
test esi, esi
jne 0x4167af
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x4167c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4167f8
xor eax, eax
push eax
push dword [ebp - 0xd4]
push 3
push eax
push eax
push dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4167f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, ebx
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], esi
mov eax, dword [ebp - 0xe0]
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret
Function at 0x416987
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov bl, byte [ebx]
test bl, bl
jne 0x416a47
cmp byte [0x43e518], bl
jne 0x4169ab
call fcn.00417030
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edi, eax
test edi, edi
jne 0x4169c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x416a44
cmp edi, 1
jne 0x4169d0
mov bl, 2
jmp 0x4169f6
cmp edi, 2
jne 0x4169ed
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, eax
neg ebx
sbb bl, bl
and bl, 0x1e
jmp 0x4169f3
cmp edi, 3
setne bl
add bl, 3
test bl, 0x70
jne 0x416a46
push 0x10
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jne 0x416a1b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x416a34
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
cmp esi, 6
jne 0x416a30
or bl, 0x10
xor esi, esi
jmp 0x416a46
test esi, esi
jne 0x416a44
test byte [ebp - 4], 0x30
je 0x416a3f
or bl, 0x30
jmp 0x416a46
or bl, 0x40
jmp 0x416a46
xor bl, bl
pop edi
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4179e1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00417a7c
test eax, eax
je 0x417a78
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push str.CONIN_
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x417a1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417a6c
push esi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x417a6b
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x417897
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43e530], eax
test eax, eax
je 0x417a64
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x43e540
push edi
call fcn.0041009d
push edi
call fcn.0041015b
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0x4178e1
call fcn.0041ccb8
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x417b2b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00422ac0
add esp, 0xc
mov dword [ebp - 0x260], 0x12c
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x417b95
cmp word [ebp - 0x25c], 0
je 0x417b95
lea eax, [ebp - 0x25c]
push eax
jmp 0x417ba3
mov eax, dword [0x43e5c4]
test eax, eax
jne 0x417b92
push 0x4337cc
push esi
call fcn.0041284c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004225c9
mov esp, ebp
pop ebp
ret
Function at 0x417bba
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x417c93
push edi
call fcn.00413afc
push dword [ebp + 0x10]
mov esi, eax
call fcn.00413afc
add esi, 4
add eax, esi
push eax
call fcn.004122ab
mov esi, eax
add esp, 0xc
mov dword [ebp - 0xc], esi
test esi, esi
je 0x417d5b
push 0x22
pop eax
mov ecx, esi
mov word [esi], ax
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi], ax
test ax, ax
jne 0x417c0d
lea ecx, [esi - 2]
xor edi, edi
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp ax, di
jne 0x417c21
mov eax, dword [0x433850]
mov edx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ax, word [0x433854]
mov word [ecx + 4], ax
mov ecx, edx
mov dword [ebp + 0xc], ecx
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x417c46
sub edx, ecx
lea edi, [esi - 2]
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x417c58
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
push esi
mov dword [ebp - 0xc], edi
call fcn.004224ff
pop ecx
xor esi, esi
jmp 0x417ca5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x417d5b
mov eax, dword [ebp - 4]
mov ebx, esi
test eax, eax
jle 0x417cca
push dword [edi + esi*4]
call fcn.00413afc
inc eax
add ebx, eax
inc esi
mov eax, dword [ebp - 4]
pop ecx
cmp esi, eax
jl 0x417cb6
add eax, ebx
lea edx, [eax*4 + 4]
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x417d54
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, esi
mov dword [ebp + 0xc], esi
lea edx, [eax + 1]
lea edx, [ebx + edx*4]
mov dword [ebp - 0x1c], edx
test eax, eax
jle 0x417d51
mov dword [ebp - 0x10], edi
sub edi, ebx
mov dword [ebp - 0x14], ebx
push dword [edi + ebx]
lea esi, [edx + ecx*2]
push esi
call fcn.00412835
mov edx, dword [ebp + 0xc]
pop ecx
pop ecx
inc edx
mov dword [ebx], esi
mov dword [ebp + 0xc], edx
lea ebx, [ebx + 4]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x18]
jne 0x417d26
mov eax, dword [ebp - 4]
sub esi, ecx
mov ecx, dword [ebp - 8]
sar esi, 1
inc ecx
add ecx, esi
cmp edx, eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
jl 0x417d09
mov ebx, dword [ebp - 0x20]
xor esi, esi
mov edi, dword [ebp - 0xc]
mov dword [ebx + eax*4], esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x417d6d
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41808f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4181cc
inc edi
mov dword [ebp - 4], eax
push eax
xor ebx, ebx
mov dword [ebp - 0xc], edi
call fcn.00413afc
jmp 0x4180e6
push dword [ebp - 4]
inc edi
inc ebx
add edi, esi
call fcn.00410a74
mov ecx, dword [ebp - 0xc]
inc ecx
add ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
lea eax, [eax + esi*2]
add eax, 2
push eax
mov dword [ebp - 4], eax
call fcn.00413afc
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x4180be
lea eax, [edi + 2]
lea eax, [eax + ebx*2]
add eax, eax
push eax
call fcn.00422537
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
test edi, edi
je 0x418157
mov edx, dword [ebp - 0x10]
lea ecx, [ebx + 1]
lea ecx, [edi + ecx*4]
mov dword [ebp - 8], edx
xor eax, eax
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x418153
mov dword [edi + eax*4], ecx
inc eax
push edx
mov dword [ebp - 0x14], eax
call fcn.00413afc
lea esi, [eax + 1]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00413b49
mov ecx, dword [ebp - 4]
lea eax, [esi + esi]
mov edx, dword [ebp - 8]
add ecx, eax
add edx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 8], edx
cmp eax, ebx
jb 0x41811a
and dword [edi + eax*4], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx*4]
add eax, 4
push eax
call fcn.00422537
mov esi, eax
pop ecx
test esi, esi
je 0x4181c3
mov edx, dword [ebp - 0x10]
lea ecx, [ebx + 1]
lea ecx, [esi + ecx*4]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x4181bf
mov edi, eax
push edx
mov dword [esi + edi*4], ecx
inc edi
push ecx
call fcn.00410a5d
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
inc ecx
add ecx, eax
mov dword [ebp - 8], ecx
call fcn.00413afc
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
lea edx, [edx + eax*2]
add edx, 2
mov dword [ebp - 0xc], edx
cmp edi, ebx
jb 0x418184
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
and dword [esi + eax*4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov ebx, 0x43e56c
push ebx
call fcn.0040f7f8
cmp dword [0x43e56c], 0
pop ecx
jne 0x4181ff
test edi, edi
je 0x4181f5
mov dword [0x43e570], edi
mov dword [0x43e56c], edi
xor edi, edi
jmp 0x4181ff
mov dword [0x43e56c], 0x4337a0
push ebx
call fcn.0040f8e9
mov ebx, 0x43e574
push ebx
call fcn.0040f7f8
cmp dword [0x43e574], 0
pop ecx
pop ecx
jne 0x418239
test esi, esi
je 0x41822f
mov dword [0x43e578], esi
mov dword [0x43e574], esi
xor esi, esi
jmp 0x418239
mov dword [0x43e574], 0x4337a4
push ebx
call fcn.0040f8e9
call fcn.0041873d
push edi
call fcn.004224ff
push esi
call fcn.004224ff
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41832b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43e5dc]
test eax, eax
jne 0x41841e
push esi
mov word [ebp - 0xcc], ax
xor esi, esi
lea eax, [ebp - 0xd8]
push eax
push 0x20019
push esi
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418405
push edi
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd0], esi
push eax
lea eax, [ebp - 0xcc]
mov edi, 0xc8
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], edi
push eax
push esi
push str.sLanguage
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4183f8
cmp dword [ebp - 0xd0], 1
je 0x4183c9
cmp dword [ebp - 0xd0], 2
jne 0x4183f8
mov eax, dword [ebp - 0xd4]
shr eax, 1
cmp eax, 0x64
jb 0x4183d9
push 0x63
pop eax
add eax, eax
cmp eax, edi
jae 0x41842c
xor ecx, ecx
mov word [ebp + eax - 0xcc], cx
lea eax, [ebp - 0xcc]
push eax
call fcn.0041292e
pop ecx
mov esi, eax
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x433788
push esi
push 0x43e5e0
push 0x43e5dc
call fcn.00418764
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004225c9
mov esp, ebp
pop ebp
ret
call fcn.00422f00
int3

Function at 0x418432
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43e5bc]
test eax, eax
jne 0x4184a6
push esi
push edi
lea eax, [ebp - 0x260]
mov edi, 0x12c
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x41848c
cmp dword [ebp - 0x260], edi
jae 0x41848c
lea eax, [ebp - 0x25c]
push eax
call fcn.0041292e
pop ecx
mov esi, eax
push 0x4337c8
push esi
push 0x43e5c0
push 0x43e5bc
call fcn.00418764
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004225c9
mov esp, ebp
pop ebp
ret
Function at 0x41cb6c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x43e958], 0
jne 0x41cbc0
xor ecx, ecx
push esi
mov edx, ecx
push edi
push 8
mov esi, edx
pop edi
mov eax, esi
shr esi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor esi, eax
dec edi
jne 0x41cb80
mov dword [edx*4 + 0x43fc20], esi
inc edx
cmp edx, 0x100
jb 0x41cb7b
pop edi
mov eax, ecx
pop esi
add ecx, dword [eax + 0x43fc20]
add eax, 4
cmp eax, 0x400
jb 0x41cba7
test ecx, ecx
setne byte [0x43e958]
ret

Function at 0x41cbc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x43e958], 0
jne 0x41cbd2
call fcn.0041cb6c
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
not edx
push esi
mov esi, ebx
push edi
mov edi, dword [ebp + 0xc]
and esi, 0xfffffffc
add esi, edi
jmp 0x41cc37
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43fc20]
movzx ecx, byte [edi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43fc20]
movzx ecx, byte [edi + 2]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43fc20]
movzx ecx, byte [edi + 3]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43fc20]
add edi, 4
cmp edi, esi
jne 0x41cbe9
and ebx, 3
add esi, ebx
xor ebx, ebx
mov eax, esi
sub eax, edi
cmp esi, edi
sbb esi, esi
not esi
and esi, eax
je 0x41cc68
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43fc20]
inc edi
inc ebx
cmp ebx, esi
jne 0x41cc50
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x41cd7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cd9b
sub ecx, edi
je 0x41cdaf
cmp byte [edx + ecx], 0x2f
je 0x41cdaf
dec ecx
jne 0x41cda6
add edx, ecx
mov eax, 0x433621
mov ecx, 0x433fb4
test esi, esi
jne 0x41ce45
mov ecx, eax
mov edi, eax
test esi, esi
je 0x41cdd0
mov eax, 0x433fb8
push ecx
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xcc]
push edx
push str.ASSERT:__s:_i_s_s_s_n
push 0xc8
push eax
call fcn.00404294
add esp, 0x20
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 1]
pop edi
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cdfb
push 0
lea eax, [ebp - 0xd0]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0xcc]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
int3
mov edi, esi
jmp 0x41cdc7
Function at 0x41e3f2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call fcn.0041e3c1
pop ecx
cmp dword [edi + 0x14], esi
je 0x41e43c
cmp dword [edi + 8], esi
jne 0x41e4a7
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
xor ebx, ebx
inc ebx
push ebx
push str.SeDebugPrivilege
push dword [edi + 0x14]
call fcn.0041e164
add esp, 0x10
push dword [edi + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [edi + 8], ebx
jmp 0x41e4a7
cmp dword [edi + 0xc], esi
je 0x41e470
cmp dword [edi + 4], esi
jne 0x41e4a7
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
xor ebx, ebx
inc ebx
push ebx
push str.SeDebugPrivilege
push dword [edi + 0xc]
call fcn.0041e164
add esp, 0x10
push dword [edi + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [edi + 4], ebx
jmp 0x41e4a7
cmp dword [0x43ecac], esi
jne 0x41e4a7
push edi
call fcn.0041e370
pop ecx
cmp dword [edi + 0x10], esi
je 0x41e4a7
push esi
xor ebx, ebx
inc ebx
push ebx
push str.SeDebugPrivilege
push dword [edi + 0x10]
call fcn.0041e164
add esp, 0x10
lea eax, [ebp + 8]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x43ecac], ebx
push dword [ebp + 0x10]
push esi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x41e4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ecx], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x429b2c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00427faf
mov dword [ebp - 0x14], eax
cmp dword [0x43fb94], esi
jne 0x429c1f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x429bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x429cff
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x429cff
push 0x437984
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429cff
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43fb94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43fb98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43fb9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fba4], eax
test eax, eax
je 0x429c1c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43fba0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x429c44
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x429c37
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x429c59
push 4
pop eax
jmp 0x429d01
cmp dword [ebp - 0x14], esi
je 0x429c59
push dword [0x43fb94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x429c3e
mov eax, dword [0x43fba0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x429cb7
cmp dword [0x43fba4], edi
je 0x429cb7
push eax
call ebx
push dword [0x43fba4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x429cb7
test eax, eax
je 0x429cb7
call ecx
test eax, eax
je 0x429cac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x429cac
test byte [ebp - 8], 1
jne 0x429cb7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x429ce7
mov eax, dword [0x43fb98]
cmp eax, edi
je 0x429ce4
push eax
call ebx
test eax, eax
je 0x429ce4
call eax
mov esi, eax
test esi, esi
je 0x429ce4
mov eax, dword [0x43fb9c]
cmp eax, edi
je 0x429ce4
push eax
call ebx
test eax, eax
je 0x429ce4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43fb94]
call ebx
test eax, eax
je 0x429cff
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x429d01
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret
Function at 0x402454
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x402488
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x4024a3
mov edi, eax
inc edi
jmp 0x402480
inc edi
cmp byte [edi], 0x20
je 0x40247f
jmp 0x4024a3
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x402494
cmp eax, 0x20
jne 0x402487
jmp 0x402497
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4024a3
cmp eax, 0x20
je 0x402496
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040123c
pop edi
leave
ret

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408972
sub ecx, esi
xor dword [ebx], eax
sub esi, ecx
inc ebx
cmp ebx, edx
jne fcn.00408953
mov ecx, 0x855bfb9e
add esi, esi
ret