joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4443e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xc
mov eax, 0x4aecb3
call fcn.0043538a
mov esi, ecx
mov edi, 0x4ba020
lea ebx, [esi + 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, ebx
call fcn.00401974
push dword [ebp + 8]
lea edi, [esi + 8]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0043a0ac
test eax, eax
je 0x444457
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0043820f
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, eax
push edi
call fcn.00402bdb
push eax
push 0x4ba048
push ebx
call fcn.0040240b
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004019df
xor eax, eax
jmp 0x444558
xor edi, edi
cmp dword [esi + 0x48], edi
je 0x444479
lea ecx, [esi + 8]
call fcn.004380ba
cmp dword [esi + 0x6c], edi
je 0x444479
cmp dword [esi + 0x6c], eax
jg 0x444479
mov ecx, esi
call fcn.00443c00
jmp 0x444450
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x10]
push 0x4b9b0c
push 0x4b9b24
call fcn.004373ff
mov dword [ebp - 4], 1
push 0x4b9b38
push dword [ebp - 0x10]
call fcn.0041cf7d
add esp, 0x10
test eax, eax
jne 0x4444b1
push 1
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
cmp dword [esi + 0xac], edi
je 0x444524
mov ecx, esi
call fcn.0043dea0
test eax, eax
je 0x444517
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0043a0ac
test eax, eax
je 0x444508
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.0043820f
mov byte [ebp - 4], 2
mov ecx, eax
push edi
call fcn.00402bdb
push eax
push 0x4ba048
push ebx
call fcn.0040240b
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004019df
jmp 0x44454a
cmp dword [esi + 0xcc], edi
jne 0x444524
mov ecx, esi
call fcn.00443c00
lea ecx, [esi + 0x138]
call fcn.00451273
jmp 0x44454a
cmp dword [esi + 0x5c], edi
jne 0x444560
push 1
mov ecx, esi
call fcn.00443cb0
mov esi, 0x4ba238
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00401974
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004019df
mov eax, edi
call fcn.00435353
ret 4
push 0x4ba088
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x444581
mov esi, 0x4ba0e0
jmp 0x4445b2
mov eax, dword [esi + 0x100]
sub eax, dword [esi + 0xfc]
jne 0x4445a1
push 0x4ba160
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4ba160
jmp 0x4445ba
lea ecx, [esi + 8]
call fcn.004383fe
test eax, eax
jne 0x444532
mov esi, 0x4ba1b0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
mov ecx, ebx
call fcn.00401974
jmp 0x44454a
Function at 0x460364
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x460377
xor eax, eax
jmp 0x46041a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x4603b6
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x460418
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00460314
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x460416
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x46041a
jmp 0x4603ad
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4605d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], 0x4e8bcc
push 0
call fcn.00460534
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00460534
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x18]
push edx
call fcn.004602b4
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x4606bb
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
cmp ecx, eax
je 0x460675
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
cmp ecx, eax
je 0x460675
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00460484
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + ecx]
je 0x4606bb
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + ecx]
je 0x4606bb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
jmp fcn.00460720
invalid
Function at 0x2000e000
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
loope 0x2000e003
add byte [edx - 0x3fffff1f], dh
loope 0x2000e00b
add bh, cl
loope 0x2000e00f
add cl, bl
loope 0x2000e013
add dl, ah
loope 0x2000e017
add ah, ch
loope 0x2000e01b
add ch, dh
loope 0x2000e01f
add bh, bh
loope 0x2000e023
add byte [eax], bl
loop 0x2000e027
add byte [edi], ah
loop 0x2000e02b
add byte [edx], dh
add byte [eax], al
inc esp
loop 0x2000e033
add byte [ebp - 0x1e], dl
add byte [eax], al
push 0x740000e2
loop 0x2000e03f
add byte [edx - 0x6affff1e], al
loop 0x2000e047
add byte [edx - 0x46ffff1e], ah
loop 0x2000e04f
add bl, al
loop 0x2000e053
add dl, dl
loop 0x2000e057
add ah, bl
loop 0x2000e05b
add bl, ch
loop 0x2000e05f
add byte [edx], al
jecxz 0x2000e063
add byte [edx], bl
jecxz 0x2000e067
add byte [esi], dh
jecxz 0x2000e06b
add byte [ebp - 0x1d], al
add byte [eax], al
push esi
jecxz 0x2000e073
add byte [ebx - 0x1d], ah
add byte [eax], al
jb 0x2000e05d
add byte [eax], al
mov bl, ah
add byte [eax], al
xchg ebx, eax
jecxz 0x2000e083
add byte [ebx - 0x1c580000], bl
add byte [eax], al
mov ecx, 0xcc0000e3
jecxz 0x2000e093
add bl, bl
jecxz 0x2000e097
add cl, ch
jecxz 0x2000e09b
add al, bh
jecxz 0x2000e09f
add byte [esp], al
add byte [eax], al
adc ah, ah
add byte [eax], al
sbb al, 0xe4
add byte [eax], al
sub ah, ah
add byte [eax], al
aaa
in al, 0
add byte [edx - 0x1c], cl
add byte [eax], al
popal
in al, 0
add byte [edx - 0x1c], dh
add byte [eax], al
mov ah, ah
add byte [eax], al
lahf
in al, 0
add byte [ebp - 0x44ffff1c], ch
in al, 0
add al, dl
in al, 0
add bh, bl
in al, 0
add ch, ch
in al, 0
add ah, bh
in al, 0
add byte [ecx], dl
in eax, 0
add byte [edi], bl
in eax, 0
add byte [edx], dh
in eax, 0
add byte [esi - 0x1b], al
add byte [eax], al
pop eax
in eax, 0
add byte [edx - 0x1b], ch
add byte [eax], al
ja 0x2000e0df
add byte [eax], al
test ebp, esp
add byte [eax], al
popfd
in eax, 0
add byte [ebx - 0x3dffff1b], dh
in eax, 0
add ch, cl
in eax, 0
add al, ch
in eax, 0
add byte [edx], al
out 0, al
add byte [0x180000e6], cl
or eax, 0x180000e6
out 0, al
add byte [edx], dh
out 0, al
add byte [ebx - 0x1a], al
add byte [eax], al
push edx
out 0, al
add byte [eax - 0x1a], ah
add byte [eax], al
jne 0x2000e118
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ebx, 0xcc0000e7
out 0, eax
add al, bl
out 0, eax
add cl, ch
out 0, eax
add dl, bh
out 0, eax
add byte [eax + ebp*8], cl
add byte [eax], al
sbb eax, 0x250000e8
call 0x830e15a
add byte [eax], al
xor al, ch
add byte [eax], al
notrack call 0x84ce162
add byte [eax], al
pop esp
call 0x871e16a
add byte [eax], al
jle 0x2000e156
add byte [eax], al
xchg ebx, eax
call 0x8a6e176
add byte [eax], al
mov dh, pe_nt_image_headers32
add byte [eax], al
enter pe_nt_image_headers32, 0
aad 0xe8
add byte [eax], al
in al, 0xe8
add byte [eax], al
bnd call 0x903e18e
add byte [eax], al
adc ecx, ebp
add byte [eax], al
and al, 0xe9
add byte [eax], al
aaa
jmp 0x947e19e
Function at 0x481d48
Capabilities:
Check for software breakpoints

Disassembly:
call 0x481d4d
pop eax
mov ebx, 0x400000
mov esi, dword [ebx + 0xc0]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x481d5c
sub eax, 3
mov edx, dword [eax]
mov esi, dword [ebx + 0x16c]
add esi, ebx
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.00481bea
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1d6be
call fcn.00481d0b
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x481df3
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x481dee
pushal
test eax, 0x80000000
je 0x481dd8
and eax, 0x7fffffff
jmp 0x481ddc
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x481dc3
add esi, 0x14
jmp 0x481da9
pop edx
add ebx, dword [edx + 0x28]
jmp ebx
Function at 0x404f11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a578
cmp edx, dword [eax]
je 0x404f33
add eax, 8
inc ecx
cmp eax, 0x40a608
jl 0x404f24
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a578]
jne 0x405061
mov eax, dword [0x40a9c0]
cmp eax, 1
je 0x40503b
test eax, eax
jne 0x404f64
cmp dword [0x408124], 1
je 0x40503b
cmp edx, 0xfc
je 0x405061
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404f9b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406100
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405cc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404fde
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405cc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4074cc
push edi
call fcn.004065b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406100
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406110
lea eax, [ebp - 0xa0]
push 0x4074ac
push eax
call fcn.00406110
push dword [esi + 0x40a57c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406110
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406525
add esp, 0x2c
pop edi
jmp 0x405061
lea eax, [ebp + 8]
lea esi, [esi + 0x40a57c]
push 0
push eax
push dword [esi]
call fcn.00405cc0
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 0x2e00bb0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x2e00bb1e
pop dword [ebp - 4]
mov eax, 0x2e00bb1e
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x35a2b285
sub dword [ebp - 0x14], 0xe7506d3a
mov dword [ebp - 0x10], 0xe9b05ef5
add dword [ebp - 0x10], 0x4882ed50
mov dword [ebp - 0xc], 0xde357185
sub dword [ebp - 0xc], 0x91e92d57
mov dword [ebp - 8], 0x39e6742d
add dword [ebp - 8], 0xc6198bd3
lea eax, [ebp - 0x14]
push eax
mov eax, 0xc6549cad
add eax, 0x67ae841b
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x883ab772
add dword [ebp - 0x14], 0xec37b1e4
mov dword [ebp - 0x10], 0x6a2a2259
sub dword [ebp - 0x10], 0x28bdc0e4
mov dword [ebp - 0xc], 0x31b89967
sub dword [ebp - 0xc], 0xce492cfb
mov dword [ebp - 8], 0x7efb0bf4
sub dword [ebp - 8], 0x7efb0bf4
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3d138
push 0
call eax
mov ecx, 0xef968636
sub ecx, 0xef964dcf
mov ebx, eax
mov edx, 0x2e056e00
add edx, dword [ebp - 4]
mov edi, 0xbf5e0312
sub edi, 0x9c8b2404
mov esi, dword [edx]
xor esi, edi
mov dword [ebx], esi
add ebx, 0xd3c7a1
sub ebx, 0xd3c79d
add edx, 0xa003e8e1
sub edx, 0xa003e8dd
loop 0x2e00bc30
add eax, 0xab1b9107
sub eax, 0xab1abc98
mov ebx, eax
add eax, 0x730718ce
sub eax, 0x730718c9
mov ecx, 0x644ab3cc
sub ecx, 0x364ab3cc
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e00bb0f
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e00bb0f
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret
Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e00bb0f
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e00bb0f
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e00bb0f
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e00bb0f
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8

Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e00bb0f
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e00bb0f
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x4057bb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40580c
xor eax, eax
jmp 0x405833
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405833
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405808
call esi
pop esi
leave
ret 4

Function at 0x40586d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45e6f0], 0x44
push eax
xor eax, eax
push 0x45e6f0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058ac
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x40594e
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d55
mov edi, eax
cmp edi, 0xffffffff
je 0x40598f
test byte [esp + 0x10], 1
push esi
je 0x405971
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405977
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405980
xor eax, eax
inc eax
jmp 0x405991
test byte [esp + 0x10], 4
jne 0x40598f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x401da7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.00403880
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401df3
push ebx
call fcn.00402caf
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x401e04
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401e2b
push 0x36
push 0x4010052
push 6
call fcn.00402cb5
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401e50
mov eax, 0xb8c48e
push eax
push 3
mov ebx, 0x19c
call fcn.004036e0
add esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x80000101
jne 0x401e84
and eax, 0xff
jmp 0x401ed9
cmp ecx, 0x80000201
jne 0x401e8f
cwde
jmp 0x401ed9
cmp ecx, 0x80000301
je 0x401ed9
cmp ecx, 0x80000401
je 0x401ed9
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x401ec9
cmp ecx, 0x80000601
je 0x401ece
push 0x69
push 0x4010052
push 2
call fcn.00402cb5
add esp, 0xc
fld dword [ebp - 0x1c]
jmp 0x401ed4
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00401b5d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x401ef4
cmp dword [ebp - 8], 9
je 0x401ef4
xor eax, eax
jmp 0x401ef9
mov eax, 1
jmp 0x401efe
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401f0f
push ebx
call fcn.00402caf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4034c2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4034b4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4034ac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x403475
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4034d0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x4034f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x403531.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x403531.2
jmp dword [eax*4 + 0x4035bc]
mov word [esp + 0x48], di
jmp 0x40356a
mov word [esp + 0x48], 2
jmp 0x40356a
mov word [esp + 0x48], 3
jmp 0x40356a
mov word [esp + 0x48], 4
jmp 0x40356a
mov word [esp + 0x48], 7
jmp 0x40356a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4035b4
cmp dword [esp + 0x70], edi
je 0x4035a0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret