joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593fa4a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x593fa4b2
pop dword [ebp - 4]
mov eax, 0x593fa4b2
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x8a5da884
add dword [ebp - 0x14], 0xc3f49cc7
mov dword [ebp - 0x10], 0xd5a394af
sub dword [ebp - 0x10], 0xa370486a
mov dword [ebp - 0xc], 0x5dbe6d7c
add dword [ebp - 0xc], 0xee8dd6b2
mov dword [ebp - 8], 0x79b0bff0
add dword [ebp - 8], 0x864f4010
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x2adeabd1
sub dword [ebp - 0x14], 0xb66c427b
mov dword [ebp - 0x10], 0x83269544
add dword [ebp - 0x10], 0xbe45cc31
mov dword [ebp - 0xc], 0x8fbcce49
add dword [ebp - 0xc], 0xd3b29e23
mov dword [ebp - 8], 0xfe7d8c2e
add dword [ebp - 8], 0x18273d2
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x4c52de48
sub eax, 0xf313cdc0
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x38319
push 0
call eax
mov ecx, 0xb146d411
sub ecx, 0xb1468ac7
mov ebx, eax
mov esi, 0x12630f9
add esi, 0x581abf07
add esi, dword [ebp - 4]
mov edi, 0xa1915e2d
add edi, 0x49da2d70
mov edx, dword [esi]
xor edx, edi
mov dword [ebx], edx
add ebx, 0x5c5879a3
add ebx, 0xa3a78661
add esi, 4
loop 0x593fa5ca
add eax, 0x99ad96d3
sub eax, 0x99ac7ed8
mov ebx, eax
add eax, 0x961d3b01
add eax, 0x69e2c504
mov ecx, 0xeb6074f9
sub ecx, 0x922174f9
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x593faa70
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetFocus]
mov esi, ecx
push dword [esi + 8]
call edi
push dword [esi + 0xc]
call edi
push 5
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x18]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x70]
push 0
mov dword [esi], 1
push dword [ecx + eax*4 + 0x24]
push 0x186
push dword [esi + 0x18]
call dword [sym.imp.vsansi.dll_SendMessageW]
and dword [esi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x593fbcd7
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, dword [esi + 8]
je 0x593fbd16
call fcn.593fa4a3
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [esi + 0x14]
je 0x593fbd06
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x593fbd0f
dec eax
mov dword [esi + 0x3c], eax
jmp 0x593fbd0f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.593fb8d4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x593fc691
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8
Function at 0x593fc6ab
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x593fc6d7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x593fc6e2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59404d9b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.59404d84
and byte [esi + 0xc], 0
mov eax, 0x593f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x59404df5
cmp dword [ebp - 0x18], 5
jb 0x59404e0d
jmp 0x59404e09
cmp dword [ebp - 0xc], 1
jne 0x59404e0d
cmp dword [ebp - 0x18], 4
ja 0x59404e09
jne 0x59404e0d
cmp dword [ebp - 0x14], 0
jbe 0x59404e0d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x59407090
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret

Function at 0x42e002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x415349
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x415358
pop dword [ebp - 0x28]
mov eax, 0x4b2532d0
add eax, 0xb51c2088
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3b3ae
push 0
mov eax, 0xf3893708
add eax, 0xcb91b10
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x79dde8ae
sub ecx, 0x79ddac31
xor esi, esi
add esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x28]
mov edx, 0x3ba2fc9d
add edx, 0x4bbf7ac8
sub dword [ebp - 0x14], 0x8bf2937a
mov ebx, dword [edi]
xor dword [ebp - 0x18], 0xf695e45b
xor ebx, edx
sub dword [ebp - 0x20], esi
mov dword [esi], ebx
xor dword [ebp - 4], edx
add esi, 4
add edi, 4
loop 0x4153b3
add eax, 0x7950e3a9
add eax, 0x86b0011e
xor ebx, ebx
add ebx, eax
add eax, 0xb140e81
add eax, 0xf4ebf184
mov ecx, 0x6dd19ec8
add ecx, 0x926e6138
add ecx, dword [ebp - 0x28]
call 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

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 0x403a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093c8
cmp edx, dword [eax]
je 0x403aac
add eax, 8
inc ecx
cmp eax, 0x409458
jl 0x403a9d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093c8]
jne 0x403bda
mov eax, dword [0x409c68]
cmp eax, 1
je 0x403bb4
test eax, eax
jne 0x403add
cmp dword [0x407214], 1
je 0x403bb4
cmp edx, 0xfc
je 0x403bda
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b14
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004047f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b57
lea eax, [ebp - 0x1a4]
push eax
call fcn.004047f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404710
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.00404710
push dword [esi + 0x4093cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404ce2
add esp, 0x2c
pop edi
jmp 0x403bda
lea eax, [ebp + 8]
lea esi, [esi + 0x4093cc]
push 0
push eax
push dword [esi]
call fcn.004047f0
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 0x402aa0
Capabilities:
Accept command line arguments

Disassembly:
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
ret 0x10

Function at 0x402d76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402d80
repz ret
jmp fcn.004031ad
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x76644a76
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x32364a57
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x904058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009041a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90406a
add dl, dl
jne 0x904089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9040dc
xor eax, eax
add dl, dl
jne 0x904096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90417d
add dl, dl
jne 0x9040a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9040b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9040bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9040c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9040d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x904075
mov eax, 1
add dl, dl
jne 0x9040ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9040f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9040e1
sub eax, ebx
mov ebx, 1
jne 0x904128
mov ecx, 1
add dl, dl
jne 0x90410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x904119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x904105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x904075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x904136
cmp eax, 0x7d00
jae 0x90416d
cmp eax, 0x500
jb 0x904168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x904075
cmp eax, 0x7f
ja 0x904170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x904075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x904075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x402774
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
test eax, eax
je 0x4027c5
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4027c5
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4027d5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x1f
lea eax, [ebp - 0x48]
push eax
push str.hh_mm_ss
push ebx
push 0x40000000
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x48]
push eax
push 0x411b76
push edi
push esi
call fcn.0040a040
add esp, 0x10
xor eax, eax
inc eax
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 8], 0
je 0x4028c1
test esi, esi
je 0x4028c1
cmp byte [esi], 0
je 0x4028c1
test edi, edi
je 0x4028c1
cmp byte [edi], 0
je 0x4028c1
test ebx, ebx
je 0x4028c1
cmp dword [ebp + 0x18], 0
je 0x4028c1
push dword [ebp + 0x18]
push 0
push ebx
call fcn.00409670
add esp, 0xc
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp dword [ebp + 0x1c], 0
setne al
neg eax
and eax, 0x100
inc eax
push eax
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c1
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028c5
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4028c5
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402913
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
dec eax
cmp eax, 3
ja case.0x4028ba.4
mov eax, dword [ebp + 0x18]
lea edi, [eax - 1]
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x411038]
xor eax, eax
jmp 0x402925
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028c1
push esi
push 0x411b76
push edi
push ebx
call fcn.0040a040
add esp, 0x10
jmp case.0x4028ba.4
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp case.0x4028ba.4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
jmp 0x402925
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4028c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4059c8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x405a41
cmp eax, 2
je 0x405a36
cmp eax, 1
jne 0x4059f3
push 0x25
push 0xb0
push esi
call fcn.00405922
add esp, 0xc
push 0
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, eax
test edi, edi
je 0x405a41
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405a41
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x405a3a
cmp dword [ebp + 0x10], 0
je 0x405a32
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x405a43
mov eax, esi
jmp 0x405a43
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x40ad53
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.0040ab80
add esp, 0x14
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
push eax
call fcn.0040cad0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x40ada5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + edi*4]
push eax
push ebx
push esi
call fcn.0040ab80
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x415b04], eax
mov dword [0x415b00], ebx
jmp 0x40adad
push 0xfffffffffffffffc
call fcn.0040af40
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40adc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae4c
mov eax, dword [ebp - 4]
xor edx, edx
cmp byte [eax], 0
je 0x40adf9
or ecx, 0xffffffff
inc ecx
cmp byte [eax + ecx], 0
jne 0x40ade3
inc ecx
cmp byte [eax], 0x3d
je 0x40adf2
add edx, ecx
add eax, ecx
cmp byte [eax], 0
jne 0x40ade0
inc edx
push edx
call fcn.0040cad0
pop ecx
mov dword [0x415b08], eax
test eax, eax
je 0x40ae5f
mov edx, eax
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40ae3e
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x40ae19
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x40ae37
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40ae2a
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x40ae16
mov byte [edx], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40ae67
push 1
push 1
call fcn.0040cb30
add esp, 8
mov dword [0x415b08], eax
jmp 0x40ae67
push 0xfffffffffffffffc
call fcn.0040af40
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x808], edx
xor edi, edi
mov dword [ebp - 0x80c], 0
cmp esi, dword [ebp - 0x808]
jae 0x40d8a1
lea eax, [ebp - 0x804]
cmp byte [esi], 0xa
jne 0x40d81d
add dword [ebp - 0x80c], 1
mov byte [eax], 0xd
inc eax
inc eax
inc esi
mov dl, byte [esi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 5]
cmp eax, edx
jae 0x40d834
cmp esi, dword [ebp - 0x808]
jb 0x40d80d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.0040ff00
pop ecx
test al, al
je 0x40d876
push dword [ebp + 0xc]
call fcn.0040fe90
pop ecx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call fcn.00410080
add esp, 0xc
test al, al
je 0x40d8a5
add edi, ebx
inc esi
cmp esi, dword [ebp - 0x808]
jb 0x40d807
jmp 0x40d8a1
push dword [ebp + 0xc]
call fcn.0040fe90
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d8ac
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, ebx
jae 0x40d86b
xor esi, esi
jmp 0x40d8b4
mov esi, 0x1d
jmp 0x40d8b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x80c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], 0
xor edi, edi
cmp esi, dword [ebp - 0x80c]
jae 0x40d9a7
lea eax, [ebp - 0x804]
cmp word [esi], 0xa
jne 0x40d92e
add edi, 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x40d94b
cmp esi, dword [ebp - 0x80c]
jb 0x40d91d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.0040ff00
pop ecx
test al, al
je 0x40d9c1
push dword [ebp + 0xc]
call fcn.0040fe90
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, ebx
shr edx, 1
push edx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x40d9b3
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x808], eax
cmp eax, ebx
jb 0x40d9a7
add esi, 2
cmp esi, dword [ebp - 0x80c]
jb 0x40d917
mov dword [ebp - 0x810], 0
jmp 0x40d9ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
jmp 0x40d9ef
push dword [ebp + 0xc]
call fcn.0040fe90
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x808]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x810]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret