joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ceb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42484b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42f8d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x3e8
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], vtable.CCArray.0
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi + 0x3c], edi
call fcn.004120c0
push 0x12
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e17d
test al, 0x10
jne 0x40e17d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40e290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
push edi
call fcn.004147f5
add esp, 4
mov esi, eax
push edi
push esi
push ebx
mov byte [esi], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e2c0
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
push esi
call fcn.0040d380
push esi
call fcn.004147fa
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f0a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4249d0
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
mov esi, 1
mov dword [ebp - 4], esi
jne 0x40f0e5
mov eax, 0x425478
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40f120
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f105
sub eax, edx
push eax
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp + 0x1c]
call fcn.0040d380
cmp dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x2c]
jne 0x40f12d
mov eax, 0x425478
lea ecx, [ebp - 0x410]
push ecx
push eax
call fcn.0040f010
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40f156
lea ebx, [ebp - 0x410]
call fcn.0040ea00
test eax, eax
jne 0x40f154
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
mov ecx, dword [ebp + 0x2c]
jne 0x40f163
mov ecx, 0x425478
cmp dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0x18]
jne 0x40f170
mov eax, 0x425478
lea edx, [ebp - 0x414]
push edx
push ebx
push esi
push ebx
push 1
push eax
lea eax, [ebp - 0x410]
push 0x400
push eax
xor edx, edx
call fcn.0040ead0
add esp, 0x20
cmp eax, ebx
jne 0x40f284
cmp dword [ebp - 0x414], ebx
jne 0x40f221
cmp edi, ebx
je 0x40f284
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp + 0x1c]
call fcn.004012d0
cmp esi, ebx
jne 0x40f1f1
cmp dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0x18]
jne 0x40f1cb
mov eax, 0x425478
push 0x400
lea edx, [ebp - 0x410]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jbe 0x40f1f1
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp + 8]
call fcn.004012d0
cmp dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0x18]
jne 0x40f1fe
mov ecx, 0x425478
cmp dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x2c]
jne 0x40f20b
mov eax, 0x425478
push ecx
push eax
lea ecx, [ebp - 0x410]
push str._s___s_
push ecx
call fcn.00414a1a
add esp, 0x10
push 0x44
lea edx, [ebp - 0x468]
push ebx
push edx
call fcn.00414b90
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x468]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x410]
push edx
push ebx
mov dword [ebp - 0x468], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x40f284
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004013d0
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004013d0
mov eax, 1
jmp 0x40f2a0
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004013d0
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004013d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
Function at 0x40f2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a2a
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x42f8d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], edi
mov ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 0x3e8
mov dword [ebx + 0x10], edi
mov dword [ebx], vtable.CCArray.0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x420], ecx
jne 0x40f330
mov eax, 0x425478
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x414]
push edx
push ecx
push edi
push eax
push bind
call esi
test eax, eax
jne 0x40f4da
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x424]
push edx
push edi
push 0x425478
push eax
mov dword [ebp - 0x41c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f4cd
mov ecx, dword [ebp - 0x414]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [ebp - 0x414]
push edx
push 0x20000
push 0
lea eax, [ebp - 0x410]
push eax
push bind
call esi
test eax, eax
jne 0x40f4da
mov edx, dword [ebp - 0x414]
lea ecx, [ebp - 0x418]
push ecx
push 0x20000
push eax
push str.Shell
push edx
call esi
test eax, eax
jne 0x40f4c2
mov eax, dword [ebp - 0x414]
push eax
call edi
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x418]
push ecx
push 0x20000
push 0
push str.opennew
push eax
mov dword [ebp - 0x414], eax
call esi
test eax, eax
je 0x40f432
mov eax, dword [ebp - 0x414]
lea edx, [ebp - 0x418]
push edx
push 0x20000
push 0
push str.Open
push eax
call esi
test eax, eax
jne 0x40f4c2
mov edx, dword [ebp - 0x414]
push edx
call edi
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x418]
push ecx
push 1
push 0
push str.Command
push eax
mov dword [ebp - 0x414], eax
call esi
test eax, eax
jne 0x40f4b7
mov edx, dword [ebp - 0x414]
push edx
call edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x424]
push edx
push 0
push 0x425478
push eax
mov dword [ebp - 0x41c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f4ac
lea ecx, [ebp - 0x410]
push ecx
mov ecx, ebx
call fcn.004012d0
mov edx, dword [ebp - 0x418]
push edx
call edi
jmp 0x40f4da
mov eax, dword [ebp - 0x414]
push eax
call edi
jmp 0x40f4da
mov ecx, dword [ebp - 0x414]
push ecx
call edi
jmp 0x40f4da
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.004013d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
Function at 0x40fb80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [ebp + 8]
jne 0x40fb9c
push edi
call fcn.00416d05
add esp, 4
jmp 0x40fbaa
cmp dword [esi], edi
jge 0x40fbbb
push edi
push eax
call fcn.00416a54
add esp, 8
test eax, eax
mov dword [esi + 4], eax
jne 0x40fbb9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esi], edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x40fc20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40fc40
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fc5d
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x40fca3
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x40fc8e
mov ecx, edx
cmp edi, esi
jb 0x40fc98
add ecx, esi
cmp edi, ecx
jbe 0x40fcac
add ebx, 1
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0x40fc80
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
add ebx, 1
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410010
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ab28
push 0x4170f0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x15c0
call fcn.004170c0
mov eax, dword [0x42f8d8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x15d0], eax
mov dword [ebp - 4], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4101e9
push str.CreateToolhelp32Snapshot
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
push str.Module32First
push esi
call edi
mov dword [ebp - 0x15cc], eax
push str.Module32Next
push esi
call edi
mov edi, eax
mov dword [ebp - 0x15d4], edi
test ebx, ebx
je 0x4101e9
mov esi, dword [ebp - 0x15cc]
test esi, esi
je 0x4101e9
test edi, edi
je 0x4101e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4101e9
mov dword [ebp - 0x15c8], 0x224
lea ecx, [ebp - 0x15c8]
push ecx
push ebx
call esi
test eax, eax
je 0x4101e9
lea edx, [ebp - 0x13a4]
push edx
push 0x4e20
push 0
lea eax, [ebp - 0x14a8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4101cc
lea ecx, [ebp - 0x15d8]
push ecx
lea edx, [ebp - 0x15cc]
push edx
push 0x426cfc
lea eax, [ebp - 0x13a4]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41019b
mov esi, dword [ebp - 0x15cc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov edi, dword [ebp - 0x15b0]
push edi
mov edi, dword [ebp - 0x15b4]
push edi
movzx edi, ax
push edi
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx ecx, dx
push ecx
shr edx, 0x10
push edx
movzx edx, si
push edx
shr esi, 0x10
push esi
lea eax, [ebp - 0x14a8]
push eax
push str._s_Product_Version___d._d._d._d__File_Version___d._d._d._d_Base_08X_Size_08X
lea ecx, [ebp - 0x13a4]
push ecx
call fcn.00414a1a
add esp, 0x34
mov edi, dword [ebp - 0x15d4]
jmp 0x4101b6
lea edx, [ebp - 0x14a8]
push edx
push 0x426ca4
lea eax, [ebp - 0x13a4]
push eax
call fcn.00414a1a
add esp, 0xc
mov ecx, dword [ebp - 0x15d0]
push ecx
lea edx, [ebp - 0x13a4]
push edx
call fcn.0040fe40
add esp, 8
lea eax, [ebp - 0x15c8]
push eax
push ebx
call edi
test eax, eax
jne 0x4100f3
jmp 0x4101e9
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00414407
mov esp, ebp
pop ebp
ret
Function at 0x4109b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4109ef
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push edx
push eax
push 0x8000
push ecx
push esi
call fcn.004108e0
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call fcn.004108c0
add esp, 0x18
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
add edi, 8
test ecx, ecx
jle 0x410eb4
push ebx
mov dword [ebp + 0xc], ecx
push esi
jmp 0x410e60
mov esi, dword [eax + 4]
lea esi, [esi + esi - 2]
test esi, esi
jl 0x410e9b
jmp 0x410e70
mov ebx, dword [edx]
mov eax, dword [edx + 4]
sub eax, dword [edi + esi*4 + 4]
mov cl, bl
and cl, 0x1f
ror eax, cl
xor eax, ebx
mov dword [edx + 4], eax
sub ebx, dword [edi + esi*4]
mov cl, al
and cl, 0x1f
ror ebx, cl
xor ebx, eax
sub esi, 2
mov dword [edx], ebx
jns 0x410e70
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx]
sub dword [edx], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
sub dword [edx + 4], ecx
add edx, 8
sub dword [ebp + 0xc], 1
jne 0x410e60
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x410ec0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
mov eax, ebx
cdq
and edx, 3
add eax, edx
push edi
mov edi, eax
sar edi, 2
mov edx, ebx
and edx, reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
jns 0x410ef8
dec edx
or edx, 0xfffffffc
inc edx
je 0x410f00
add edi, 1
mov dword [ebp - 4], edi
lea eax, [edi*4]
push eax
call fcn.00416d05
add esp, 4
test edi, edi
mov edx, eax
mov dword [ebp + 0x10], edx
jle 0x410f24
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
test ebx, ebx
jle 0x410f40
mov ecx, dword [ebp + 0xc]
mov eax, edx
sub ecx, edx
nop
mov dl, byte [ecx + eax]
mov byte [eax], dl
add eax, 1
sub ebx, 1
jne 0x410f30
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov ebx, dword [ebp - 0x10]
mov dword [eax], 0xb7e15163
mov eax, 1
cmp ebx, eax
jle 0x410f6f
mov ecx, dword [esi]
mov edx, dword [ecx + eax*4 - 4]
lea ecx, [ecx + eax*4]
sub edx, 0x61c88647
add eax, 1
cmp eax, ebx
mov dword [ecx], edx
jl 0x410f54
mov edx, dword [ebp + 0x10]
cmp edi, ebx
jle 0x410f7b
lea eax, [edi + edi*2]
mov dword [ebp - 0xc], eax
jmp 0x410f81
lea ecx, [ebx + ebx*2]
mov dword [ebp - 0xc], ecx
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jle 0x410fe2
jmp 0x410f93
mov esi, dword [ebp + 8]
mov eax, edi
cdq
idiv dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
add ecx, ebx
add edx, edx
add edx, edx
add ecx, dword [eax + edx]
add eax, edx
rol ecx, 3
mov dword [eax], ecx
mov eax, dword [esi]
mov ebx, dword [edx + eax]
mov eax, edi
cdq
idiv dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + edx*4]
add edi, 1
lea esi, [ecx + edx*4]
mov edx, dword [ebp - 8]
mov cl, bl
add cl, dl
add eax, edx
and cl, 0x1f
add eax, ebx
rol eax, cl
cmp edi, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebp - 8], eax
jl 0x410f90
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x410fef
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call fcn.00416dc8
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411050
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
push ebx
push esi
xor ebx, ebx
xor esi, esi
test eax, eax
push edi
mov dword [ebp - 4], eax
je 0x411100
mov edi, dword [ebp + 0xc]
jmp 0x411074
mov eax, dword [ebp - 4]
add dword [ebp + 8], 1
push eax
call fcn.0041734d
add esp, 4
test eax, eax
jne case.default.0x4110a0
mov eax, dword [ebp - 4]
cmp eax, 0x3d
je 0x411100
movzx eax, byte [eax + 0x426ef0]
cmp eax, 0xff
je 0x411109
cmp ebx, 3
ja case.default.0x4110a0
jmp dword [ebx*4 + 0x411114]
add al, al
add al, al
mov byte [esi + edi], al
mov ebx, 1
jmp case.default.0x4110a0
mov ecx, eax
sar ecx, 4
or byte [esi + edi], cl
shl al, 4
mov byte [esi + edi + 1], al
add esi, 1
mov ebx, 2
jmp case.default.0x4110a0
mov edx, eax
sar edx, 2
or byte [esi + edi], dl
shl al, 6
mov byte [esi + edi + 1], al
add esi, 1
mov ebx, 3
jmp case.default.0x4110a0
or byte [esi + edi], al
add esi, 1
xor ebx, ebx
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
mov dword [ebp - 4], eax
jne 0x411071
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411a70
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424b90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42f8d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0x108
call fcn.00414af3
add esp, 4
test eax, eax
je 0x411abb
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00411680
jmp 0x411abd
xor eax, eax
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push 0x411910
push 0
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x411ae4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0x64
call edi
mov eax, dword [esi + 0x104]
sub eax, 1
je 0x411b51
sub eax, 1
je 0x411b32
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
mov dword [ebp - 4], 0
call edx
mov dword [ebp - 4], 0xffffffff
jmp 0x411af0
push esi
call fcn.004147ff
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
push esi
mov dword [edx], ecx
call fcn.004147ff
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411bd8
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 1]
push ecx
push esi
push esi
push edx
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, 0xea
jne 0x411bce
xor esi, esi
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41318e
pop ebp
ret 8
mov ecx, dword [ecx + 4]
push 0
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4131da
push 4
call fcn.00414af3
mov esi, eax
add esp, 4
test esi, esi
je 0x4131c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00412f90
jmp 0x4131c9
xor eax, eax
push 0x42ad84
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], eax
call fcn.00414dee
mov eax, dword [ebp + 8]
pop ebp
ret 8

Function at 0x4131f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x413278
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ecx + 4]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413247
push 4
call fcn.00414af3
mov esi, eax
add esp, 4
test esi, esi
je 0x413234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00412f90
jmp 0x413236
xor eax, eax
push 0x42ad84
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], eax
call fcn.00414dee
cmp dword [ebp + 8], esi
je 0x413278
push 4
call fcn.00414af3
add esp, 4
test eax, eax
je 0x413265
push 0x27
mov ecx, eax
call fcn.00412f90
jmp 0x413267
xor eax, eax
push 0x42ad84
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], eax
call fcn.00414dee
pop esi
pop ebp
ret 8

Function at 0x413410
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push 0
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41346a
push 4
call fcn.00414af3
mov esi, eax
add esp, 4
test esi, esi
je 0x413457
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00412f90
jmp 0x413459
xor eax, eax
push 0x42ad84
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], eax
call fcn.00414dee
pop esi
pop ebp
ret 8
Function at 0x413470
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ecx + 4]
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4134cc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4134c8
push 4
call fcn.00414af3
mov esi, eax
add esp, 4
test esi, esi
je 0x4134b5
call edi
push eax
mov ecx, esi
call fcn.00412f90
jmp 0x4134b7
xor eax, eax
push 0x42ad84
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], eax
call fcn.00414dee
mov eax, dword [ebp - 0xc]
pop edi
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x413620
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
mov eax, ecx
jmp 0x413530

Function at 0x413e94
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413eec
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x425478
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413edf
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x413eee
xor eax, eax
pop esi
leave
ret 4

Function at 0x414407
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f8d8]
jne 0x414411
repz ret
jmp fcn.0041868c