joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61e774
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x61e80e.0
jmp dword [ecx*4 + 0x61e7a7]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61e7d9
sub dl, 8
je 0x61e7e8
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e41c
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e474
jmp case.0x61e80e.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x61e80e.0
movzx ecx, byte [ecx + 0x61e815]
jmp dword [ecx*4 + 0x61e826]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e520
jmp case.0x61e80e.0
cmp dl, 3
jne 0x61e853
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e578
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e534
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e5bc
jmp case.0x61e80e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61e87e
sub dl, 8
je 0x61e88a
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e5e8
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e654
jmp case.0x61e80e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x61e8a9
sub dl, 8
je 0x61e8b5
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e710
jmp case.0x61e80e.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x61e738
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x61e957
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0061d920
test eax, eax
je 0x61e957
mov eax, ebx
call fcn.0061e960
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x61e8f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x61e960
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x61e991
dec al
je 0x61e9cc
dec al
je 0x61ea11
dec al
je 0x61ea7a
jmp 0x61eb04
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x61eb04
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61e9a1
jmp 0x61eb04
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61eb04
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61e9dc
jmp 0x61eb04
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61eb04
mov esi, 1
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61eb04
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x61ead3
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0061b9d4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x61ea8e
Function at 0x624ccc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov edi, eax
xor eax, eax
push ebp
push 0x624e30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x624e4c
call fcn.004069c4
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x6dcdc4]
mov eax, dword [eax]
call fcn.004cccd0
mov eax, dword [ebp - 0x10]
call fcn.00406a50
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x624e0d
mov eax, ebx
call fcn.004041ec
mov esi, eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x6dcdc4]
mov eax, dword [eax]
call fcn.004cccd0
mov eax, dword [ebp - 0x14]
call fcn.00406a50
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x624e06
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x624e90
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x624e06
push edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x34]
mov ecx, 3
mov eax, 0x624ea0
call fcn.004139e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
and eax, 2
cmp eax, 2
jne 0x624e06
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x624ec4
call fcn.004139e4
mov edx, dword [ebp - 0x38]
mov eax, edi
call fcn.004069c4
mov eax, esi
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x624e37
lea eax, [ebp - 0x38]
call fcn.004069b4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069bc
ret
Function at 0x402c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x404010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ca8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c88
xor eax, eax
push ebp
push 0x402c81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cc4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x404010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x404010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403378
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x4033d9
cmp word [0x405208], 0xd7b2
jne 0x4033a1
cmp dword [0x405210], 0
jbe 0x4033a1
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40405c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403400
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40401c], 0
jne 0x4033f5
push 0
push 0x404054
push 0x40405c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4038b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40391a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004035a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403904
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403921
lea eax, [ebp - 0x10]
call fcn.004034f4
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x40890a
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
sub ebx, ebx
sub ebx, ecx
call fcn.00408938
sub ecx, 0x6b82d37
xor dword [esi], edi
sub ebx, 0x4663c3e7
inc esi
cmp esi, eax
jne fcn.0040890a
ret
Function at 0x10026d8
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
xor edi, edi
cmp dword [0x100ca14], edi
mov dword [ebp - 8], edi
jne 0x100271a
mov eax, 0x208
push eax
push 0x40
mov dword [0x100ca18], eax
call esi
cmp eax, edi
mov dword [0x100ca14], eax
jne 0x100271a
mov dword [0x100ca18], edi
xor eax, eax
jmp 0x1002860
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0x100125c
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1002840
mov eax, dword [ebp - 4]
cmp eax, dword [0x100ca18]
jbe 0x100277d
mov eax, dword [0x100ca14]
test eax, eax
je 0x1002759
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
add eax, 2
push eax
push 0x40
mov dword [0x100ca18], eax
call esi
test eax, eax
mov dword [0x100ca14], eax
jne 0x100277d
and dword [0x100ca18], eax
jmp 0x100285f
mov eax, dword [0x100ca18]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [0x100ca14]
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov edx, dword [0x100ca18]
mov edi, dword [0x100ca14]
xor ecx, ecx
shr edx, 1
cmp eax, ecx
mov word [edi + edx*2 - 2], cx
jne 0x1002840
mov eax, dword [0x100ca14]
cmp word [eax], cx
je 0x100285c
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ecx
push ecx
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x1002840
lea eax, [ebx + ebx]
push eax
push 0x40
call esi
mov esi, eax
test esi, esi
je 0x100285c
push ebx
push esi
push dword [0x100ca14]
call edi
test eax, eax
je 0x1002840
lea edi, [eax + eax]
mov eax, dword [0x100ca18]
cmp edi, eax
jbe 0x1002819
push dword [0x100ca14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100ca14], esi
mov dword [0x100ca18], edi
jmp 0x100285c
push esi
shr eax, 1
push eax
push dword [0x100ca14]
call fcn.01002613
test eax, eax
jge 0x1002833
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0
je 0x100285c
mov eax, dword [0x100ca18]
shr eax, 1
push eax
push dword [0x100ca14]
push 9
push dword [0x100d340]
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1002e18
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x100c050]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x100129c
push dword [ebp + 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2c0], 1
call fcn.01002613
test eax, eax
jge 0x1002e64
xor eax, eax
jmp 0x1002f3d
push ebx
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebx, 0x2b4
xor eax, eax
jmp 0x1002ee3
cmp word [esi], 0x5c
jne 0x1002ee1
push 0x200
push ebx
lea ecx, [ebp - 0x2b8]
push ecx
push eax
push dword [ebp - 0x2c4]
mov word [esi], ax
call edi
test eax, eax
mov word [esi], 0x5c
je 0x1002f19
cmp dword [ebp - 0x2c0], 0
je 0x1002eaf
and dword [ebp - 0x2c0], 0
jmp 0x1002ec6
push 0x1001298
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01002c1f
test eax, eax
jl 0x1002f19
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01002c1f
test eax, eax
jl 0x1002f19
xor eax, eax
inc esi
inc esi
cmp word [esi], ax
jne 0x1002e75
push 0x200
push ebx
lea ecx, [ebp - 0x2b8]
push ecx
push eax
push dword [ebp - 0x2c4]
call edi
test eax, eax
je 0x1002f19
push 0x1001298
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01002c1f
test eax, eax
jge 0x1002f1d
xor eax, eax
jmp 0x1002f3b
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01002c1f
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01004073
leave
ret 0x10
Function at 0x1003161
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001438
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100327c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001410
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1003273
cmp dword [ebp - 0x10], ebx
je 0x1003273
lea eax, [ebp - 4]
push eax
push section..data
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013f0
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100ca04
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013c4
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100ca1c
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013b0
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
cmp dword [0x100ca1c], ebx
je 0x100324e
lea eax, [ebp - 4]
push eax
push 0x100c048
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001390
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x100324e
mov eax, 0x5a0
cmp dword [0x100c048], eax
jbe 0x100324e
mov dword [0x100c048], eax
push dword [ebp - 8]
call fcn.010026d8
test eax, eax
je 0x1003266
call fcn.0100312c
test eax, eax
je 0x1003273
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x100327e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003607
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x100c050]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
xor edi, edi
push 0x10014dc
mov dword [ebp - 0x418], edi
mov word [ebp - 0x414], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x414], di
push edi
je 0x100366c
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.010024ee
cmp eax, edi
mov dword [ebp - 0x41c], eax
jne 0x1003672
push edi
call dword [sym.imp.KERNEL32.dll_ExitThread]
push 0x100d320
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1003691
push edi
push edi
push 0x1009
push ebx
call esi
mov eax, dword [0x100ca10]
cmp eax, edi
mov dword [0x100ca0c], edi
je 0x10036af
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01002c63
jmp 0x10036b1
xor eax, eax
push eax
push ebx
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01003288
test eax, eax
jne 0x10036d8
push edi
push 1
push 0xb
push ebx
call esi
jmp 0x100374f
mov eax, dword [0x100ca0c]
push 0x10025ed
push 1
push 0x1030
push ebx
mov dword [0x100ca08], eax
call esi
push 3
pop eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x450]
push eax
push edi
push 0x102b
push ebx
mov dword [ebp - 0x450], 8
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], edi
call esi
cmp dword [0x100ca08], 0x400
jae 0x100373e
mov dword [0x100ca08], 1
jmp 0x1003745
shr dword [0x100ca08], 0xa
mov dword [ebp - 0x418], 1
push 0x100d320
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.01004073
leave
ret 4

Function at 0x1004073
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c050]
jne 0x1004084
test ecx, 0xffff0000
jne 0x1004084
ret
jmp fcn.0100408e
Function at 0x1004203
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1001510
call fcn.010044a0
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10043c4
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x100425f
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10043c4
mov eax, dword [esi + 0x10]
mov dword [0x100cd64], eax
mov eax, dword [esi + 4]
mov dword [0x100cd70], eax
mov eax, dword [esi + 8]
mov dword [0x100cd74], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x100cd68], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x100cd64], 2
je 0x10042a0
or byte [0x100cd69], 0x80
mov eax, dword [0x100cd70]
shl eax, 8
add eax, dword [0x100cd74]
mov dword [0x100cd6c], eax
call fcn.010041a2
mov dword [ebp - 0x1c], eax
push ebx
call fcn.0100512f
pop ecx
test eax, eax
jne 0x10042e7
cmp dword [0x100cd4c], 1
jne 0x10042d4
call fcn.01004901
push 0x1c
call fcn.0100479b
push 0xff
call fcn.010045fa
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.01004f48
test eax, eax
jge 0x10042ff
push 0x1b
call fcn.01004173
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100e710], eax
call fcn.01004e1b
mov dword [0x100cd44], eax
call fcn.01004d73
test eax, eax
jge 0x1004325
push 8
call fcn.01004173
pop ecx
call fcn.01004b1b
test eax, eax
jge 0x1004336
push 9
call fcn.01004173
pop ecx
call fcn.01004654
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1004349
push eax
call fcn.01004173
pop ecx
call fcn.01004ab7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100435d
movzx eax, word [ebp - 0x40]
jmp 0x1004360
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.01003e51
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100437f
push esi
call fcn.01004734
call fcn.0100476c
jmp 0x10043b1
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x10043c9
mov eax, 0xff
call fcn.010044db
ret
Function at 0x100479b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x100c070]
je 0x10047bd
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x10047ab
cmp esi, 0x13
je 0x10048f9
mov eax, dword [0x100cd4c]
cmp eax, 1
push ebx
je 0x10048c8
test eax, eax
jne 0x10047e6
cmp dword [0x100c058], 1
je 0x10048c8
cmp ecx, 0xfc
je 0x10048f8
push edi
push 6
pop ecx
mov esi, 0x10018b0
mov edi, 0x100cda8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100cdc2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100cec6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004834
push 5
pop ecx
mov esi, 0x1001898
mov edi, 0x100cdc2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004839
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100486c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100484d
sub eax, edx
push 3
lea eax, [eax + 0x100cd87]
push 0x1001894
push eax
call fcn.01006630
add esp, 0xc
mov edx, 0x100cda8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004874
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100c074]
mov esi, 0x1001890
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004890
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100489c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001868
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01006523
add esp, 0xc
pop edi
jmp 0x10048f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10048f8
mov edx, dword [esi*8 + 0x100c074]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10048e0
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret