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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x100c], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4a7547
push dword fs:[eax]
mov dword fs:[eax], esp
jle 0x4a7441
jg 0x4a7441
call 0x104aafc6
add byte [eax], al
cmp dword [ebx], 0x1000
jle 0x4a7470
lea edx, [ebp - 0x100c]
mov eax, dword [0x4c003c]
call fcn.00406a84
mov ecx, dword [ebp - 0x100c]
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040d3b8
call fcn.004041b4
xor ecx, ecx
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
mov byte [ebp + ecx - 0x1008], al
inc ecx
cmp dword [ebx], 0x7f
jle 0x4a74c7
mov eax, dword [ebx]
mov esi, 0xff
cdq
idiv esi
mov esi, eax
test esi, esi
jne 0x4a749c
mov esi, 1
mov eax, esi
or al, 0x80
mov byte [ebp + ecx - 0x1008], al
add ecx, esi
mov eax, esi
test eax, eax
jle 0x4a74c2
mov edx, dword [ebx]
and dl, 0xff
mov byte [ebp + ecx - 0x1008], dl
shr dword [ebx], 8
dec ecx
dec eax
jne 0x4a74af
inc esi
add ecx, esi
jmp 0x4a74d1
mov eax, dword [ebx]
mov byte [ebp + ecx - 0x1008], al
inc ecx
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebx], eax
cmp dword [ebx], 0x1000
jle 0x4a7507
lea edx, [ebp - 0x1010]
mov eax, dword [0x4c003c]
call fcn.00406a84
mov ecx, dword [ebp - 0x1010]
mov dl, 1
mov eax, dword [0x407f60]
call fcn.0040d3b8
call fcn.004041b4
lea edx, [ebp + ecx - 0x1008]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00402a38
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1008]
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a754e
lea eax, [ebp - 0x1010]
mov edx, 2
call fcn.0040483c
ret

Function at 0x4a93bd
Capabilities:
Encrypt data using des

Disassembly:
loop 0x4a93c3
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4bfce8]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4a93e0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4a93f8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4a93f1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jle 0x4a9405
jg 0x4a9405
call 0x3442d994
leave
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004031cc
xor edx, edx
mov eax, 0x4bfee8
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4a9467
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4a941b
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4aa808
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4aa8c1
push dword fs:[eax]
mov dword fs:[eax], esp
jl 0x4aa82d
jge 0x4aa82d
call 0x68a06864
mov eax, dword [0x64004aa8]
push dword [eax]
xor eax, eax
push ebp
push 0x4aa8a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404818
mov eax, 0x104
call fcn.00409f20
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
mov eax, dword [0x4c04cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4aa87a
mov eax, esi
mov edx, ebx
call fcn.00404a10
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, ebx
call fcn.00409f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa8ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa8c8
lea eax, [ebp - 8]
call fcn.004065a4
ret

Function at 0x4ac9f4
Capabilities:
Delete file

Disassembly:
push ebp
cld
call fcn.004048b0
mov eax, dword [ebp - 0xc]
call fcn.00409794
test al, al
je 0x4aca5c
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x1e
call fcn.004031cc
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], 3
lea eax, [ebp - 0x34]
mov ecx, 0x4acac4
mov edx, dword [ebp - 0xc]
call fcn.00404b24
cmc
dec dword [ebx - 0x611733bb]
xor ch, 0xff
mov dword [ebp - 0x22], eax
mov eax, 0x4acac8
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], 0x14
lea eax, [ebp - 0x2a]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 5]
jmp 0x4aca60
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aca74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acaa6
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040483c
lea eax, [ebp - 0xc]
call fcn.00404818
lea eax, [ebp - 4]
call fcn.00404818
ret
Function at 0x4b21cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x4b227b
push dword fs:[eax]
mov dword fs:[eax], esp
js 0x4b21f7
jns 0x4b21f7
call 0x1be256d
jb 0x4b21fc
jae 0x4b21fc
call 0x1c42578
js 0x4b2201
jns 0x4b2201
call 0x68145356
jecxz 0x4b2208
push ecx
xor ecx, ecx
jcxz 0x4b2208
call 0xfc90ad65
pop ecx
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov ecx, eax
test ecx, ecx
jle 0x4b2254
mov esi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
and eax, 0xff
mov edx, dword [0x4c05f8]
mov eax, dword [edx + eax*4]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov ebx, eax
inc esi
dec ecx
jne 0x4b221c
mov ecx, dword [ebp - 8]
mov eax, ebx
not eax
mov edx, 8
call fcn.0040931c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2282
lea eax, [ebp - 4]
call fcn.00404818
ret

Function at 0x4b2332
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
in al, dx
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x4b23e6
push dword fs:[eax]
mov dword fs:[eax], esp
jl 0x4b235b
jmp 0x4b235d
je 0x4b2362
je 0x4b2362
jne 0x4b2362
call 0x1be26d8
jb 0x4b2367
jae 0x4b2367
call 0x1c426e3
js 0x4b236c
jns 0x4b236c
call 0x681454c1
jecxz 0x4b2373
push ecx
xor ecx, ecx
jcxz 0x4b2373
call 0xfc90aed0
pop ecx
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov ecx, eax
test ecx, ecx
jle 0x4b23bf
mov esi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
and eax, 0xff
mov edx, dword [0x4c05f8]
mov eax, dword [edx + eax*4]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov ebx, eax
inc esi
dec ecx
jne 0x4b2387
mov ecx, dword [ebp - 8]
mov eax, ebx
not eax
mov edx, 8
call fcn.0040931c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b23ed
lea eax, [ebp - 4]
call fcn.00404818
ret
Function at 0x4b55dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x4b568b
push dword fs:[eax]
mov dword fs:[eax], esp
jl 0x4b5607
jge 0x4b5607
call 0x1be597d
jb 0x4b560c
jae 0x4b560c
call 0x1c45988
js 0x4b5611
jns 0x4b5611
call 0x68148766
jecxz 0x4b5618
push ecx
xor ecx, ecx
jcxz 0x4b5618
call 0xfc90e175
pop ecx
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov ecx, eax
test ecx, ecx
jle 0x4b5664
mov esi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
and eax, 0xff
mov edx, dword [0x4c05f8]
mov eax, dword [edx + eax*4]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov ebx, eax
inc esi
dec ecx
jne 0x4b562c
mov ecx, dword [ebp - 8]
mov eax, ebx
not eax
mov edx, 8
call fcn.0040931c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5692
lea eax, [ebp - 4]
call fcn.00404818
ret
Function at 0x4b66e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x4b6879
push dword fs:[eax]
mov dword fs:[eax], esp
jl 0x4b671f
jmp 0x4b6721
je 0x4b6726
add eax, 0x1750374
je 0x4b6726
jne 0x4b6726
call 0xec342db5
loopne 0x4b6720
mov eax, esi
call fcn.00404818
xor eax, eax
push ebp
push 0x4b6846
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebx]
rcl byte [ebp + 0x68], 0x46
push 0xff64004b
xor byte [ecx + ecx*4 + 0x20], ah
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cd8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4b683c
mov eax, ebx
call fcn.00402830
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b6835
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4b681f
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b6888
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x4b67cb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004078f0
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.004078e4
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040931c
push 0x4b68ac
push dword [ebp - 0x18]
push 0x4b68c8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404b98
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.00409db8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b681f
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.00409f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b683c
mov eax, dword [ebp - 0xc]
call fcn.00402850
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b6850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6880
lea eax, [ebp - 0x11c]
call fcn.00404818
lea eax, [ebp - 0x18]
call fcn.00404818
lea eax, [ebp - 4]
call fcn.00404818
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x181f1fa6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x78d92bf6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100e2b9
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x1030206
call fcn.01010a18
sub esp, 0x828
mov eax, dword [0x1037024]
mov dword [ebp - 0x10], eax
mov eax, dword [0x103b6e8]
test eax, eax
push esi
jne 0x100e313
push dword [sym.imp.msvcirt.dll_class_ostream____cdecl_endl_class_ostream__]
mov ecx, dword [sym.imp.msvcirt.dll_class_ostream_withassign_cerr]
mov esi, dword [sym.imp.msvcirt.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push 0x10031d8
push 0x10031c8
push 0x10031ac
call esi
mov ecx, eax
call esi
mov ecx, eax
call esi
mov ecx, eax
call dword [sym.imp.msvcirt.dll_public:_class_ostream____thiscall_ostream::operator___class_ostream_____cdecl___class_ostream___]
jmp 0x100e448
mov esi, dword [ebp + 8]
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x100e35a
mov ecx, dword [sym.imp.msvcirt.dll_class_ostream_withassign_cerr]
push edi
push dword [sym.imp.msvcirt.dll_class_ostream____cdecl_endl_class_ostream__]
mov edi, dword [sym.imp.msvcirt.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push 0x10031c8
push 0x1003178
call edi
mov ecx, eax
call edi
mov ecx, eax
call dword [sym.imp.msvcirt.dll_public:_class_ostream____thiscall_ostream::operator___class_ostream_____cdecl___class_ostream___]
pop edi
lea ecx, [ebp - 0x834]
call fcn.0100e12a
and dword [ebp - 4], 0
cmp esi, 0x12
je 0x100e384
cmp esi, 0x1e
je 0x100e384
mov dword [ebp - 0x824], 3
push 0x100316c
jmp 0x100e393
mov dword [ebp - 0x824], 1
push 0x1003164
lea ecx, [ebp - 0x834]
call fcn.0101b384
lea eax, [esi - 1]
cmp eax, 0x21
ja case.default.0x100e3ad
movzx eax, byte [eax + 0x100e469]
jmp dword [eax*4 + 0x100e45d]
push dword [ebp + 0xc]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
jmp case.default.0x100e3ad
push dword [ebp + 0x14]
lea eax, [ebp - 0x410]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x14
jmp case.default.0x100e3ad
push dword [ebp + 0x10]
lea eax, [ebp - 0x410]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x834]
call fcn.0101b308
and dword [ebp - 0x818], 0
lea eax, [ebp - 0x834]
push eax
mov ecx, 0x103b6cc
call fcn.0101b5ef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.0101b229
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01010773
leave
ret

Function at 0x1010773
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1037024]
jne 0x1010784
test ecx, 0xffff0000
jne 0x1010784
ret
jmp fcn.0101078e
Function at 0x1010873
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003448
call fcn.01010b44
cmp word [0x1000000], 0x5a4d
jne 0x10108b2
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10108b2
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10108cb
cmp ecx, 0x20b
je 0x10108b8
and dword [ebp - 0x1c], 0
jmp 0x10108e2
cmp dword [eax + 0x1000084], 0xe
jbe 0x10108b2
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10108dc
cmp dword [eax + 0x1000074], 0xe
jbe 0x10108b2
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103bafc], 0xffffffff
or dword [0x103bb00], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103ba18]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103ba14]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103baf8], eax
call fcn.01010b3a
cmp dword [0x1037030], 0
jne 0x101093f
push fcn.01010b3a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01010b23
push 0x1001284
push 0x1001280
call sub.msvcrt.dll__initterm
mov eax, dword [0x103ba10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103ba0c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100127c
push 0x1001208
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100f59d
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x10109b7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10109ec
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01010b7f
ret
Function at 0x101b661
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
mov eax, 0x1030c3a
call fcn.01010a18
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea edi, [eax + 1]
push edi
mov dword [esi], 0x10038ac
mov dword [esi + 8], eax
call fcn.010106bd
or dword [ebp - 0x1c], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
call fcn.010106bd
pop ecx
or edi, 0xffffffff
pop ecx
mov dword [esi + 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x20], ebx
je 0x101b71a
cmp dword [esi + 4], ebx
je 0x101b71a
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0xa
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esi + 0x24], ecx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x20
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
push ebx
call fcn.010106e8
mov dword [ebp - 4], edi
push ebx
call fcn.010106e8
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x10038cc
push esi
call fcn.0102ee21
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x101ba53
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1037024]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push dword [0x1037854]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101baee
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101bae2
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.010110d8
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x101baf0
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01010773
leave
ret 8
Function at 0x101bb03
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf003f
push edi
push 0
push dword [0x1037854]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101bb48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x1037854]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x101bb6d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0
push 0x1003980
push 0
push dword [0x1037854]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x101bb71
xor eax, eax
jmp 0x101bb7d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x101be2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1030cc9
call fcn.01010a18
sub esp, 0x218
mov eax, dword [0x1037024]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push dword [0x1037848]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101bf26
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [0x1037850]
mov dword [ebp - 0x218], 0x200
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101bf1a
mov eax, dword [ebp - 0x218]
push esi
xor esi, esi
dec eax
je 0x101bf08
push edi
lea edi, [ebp + esi - 0x210]
push edi
lea ecx, [ebp - 0x220]
call fcn.01010ff5
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
push eax
call fcn.0101bdb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.01010f73
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101beef
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0x218]
dec eax
cmp esi, eax
jb 0x101beb8
pop edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
jmp 0x101bf28
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01010773
leave
ret 4
Function at 0x101cb83
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1030e57
call fcn.01010a18
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x1037848]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x101cbbb
xor eax, eax
jmp 0x101cccc
lea eax, [ebp - 0x18]
push eax
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x34]
push eax
call fcn.0101cb47
mov dword [ebp - 4], ebx
or dword [ebp - 0x28], 0xffffffff
xor edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [0x103784c]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x101ccb1
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.010106bd
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0101bbd7
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x101ccb1
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [0x103784c]
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x101ccb1
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.01010e7b
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x101cca0
dec eax
je 0x101cca0
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x14]
call fcn.010110d8
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.01011251
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0101bb86
cmp eax, ebx
je 0x101cc8c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0101bdb3
lea ecx, [ebp - 0x14]
call fcn.01010d69
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0x10]
dec eax
cmp esi, eax
jb 0x101cc54
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.01010f73
xor esi, esi
inc esi
jmp 0x101ccb3
xor esi, esi
mov byte [ebp - 4], bl
push edi
call fcn.010106e8
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.0101c620
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4