joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e46
Capabilities:
Create directory
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1064
call fcn.100010f0
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
call fcn.10001a69
cmp dword [esp + 0x10], 0
je 0x10001e71
xor eax, eax
jmp 0x10001fcb
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x70]
call fcn.10003000
mov edx, 0x100061a4
lea ecx, [esp + 0x70]
call fcn.100031c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x874]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
call fcn.1000254c
lea edx, [esp + 0x870]
lea ecx, [esp + 0x70]
call fcn.100031c0
mov edx, 0x1000617c
lea ecx, [esp + 0x70]
call fcn.100031c0
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [esp + 0x88]
push eax
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001fc6
push edi
mov edi, dword [ebp + 0x14]
lea eax, [esp + 0x18]
push eax
push edi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001f24
cmp dword [esp + 0x14], edi
push 1
pop eax
cmove esi, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test esi, esi
je 0x10001fc6
push dword [ebp + 0xc]
call fcn.10001b9d
push dword [ebp + 0xc]
lea eax, [esp + 0x74]
push eax
call fcn.10001d20
push 0x44
pop esi
push esi
lea eax, [esp + 0x2c]
push 0
push eax
call sub.ntdll.dll_memset
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push 0x100061a8
lea eax, [esp + 0x878]
push 0x400
push eax
mov dword [esp + 0x38], esi
call fcn.10003130
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
xor eax, eax
push eax
push 0xc000000
push eax
push eax
push eax
lea eax, [esp + 0x890]
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001fc6
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x18]
call ebx
xor ebx, ebx
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001fd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.100010f0
push ebx
push esi
push edi
push 0x1a
pop ecx
call fcn.10003110
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov edx, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.1000254c
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
call fcn.10003000
mov edx, 0x100061a4
lea ecx, [esp + 0x18]
call fcn.100031c0
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.100031c0
mov edx, 0x1000617c
lea ecx, [esp + 0x18]
call fcn.100031c0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x100020d3
mov ebx, dword [ebp + 0x14]
push esi
lea ecx, [esp + 0x14]
push ecx
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002089
cmp dword [esp + 0x10], ebx
push 1
pop eax
cmove esi, eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100020d3
lea edx, [esp + 0x18]
lea ecx, [esp + 0x818]
call fcn.10003000
mov edx, 0x100061b4
lea ecx, [esp + 0x818]
call fcn.100031c0
push edi
push edi
mov edx, edi
lea ecx, [esp + 0x820]
call fcn.100026be
test eax, eax
je 0x100020d3
mov ecx, edi
call fcn.10002773
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100020ef
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10002259
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10002fa0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10002fa0
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100021b7
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call fcn.10002fa0
add esi, 0x28
dec edi
jne 0x10002175
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x100021b7
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10002fa0
lea esi, [esi + 0x28]
dec ebx
jne 0x1000219c
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10003750
push dword [ebp - 0x18]
mov ecx, dword [0x10007004]
mov edx, edi
call fcn.10003830
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10002256
cmp dword [ebx + 0x64], 0
je 0x10002256
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x100021fe
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100037f0
mov ecx, eax
xor eax, eax
jmp 0x10002202
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000222b
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100037f0
mov ecx, eax
xor eax, eax
jmp 0x1000222d
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10002250
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100037f0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100022a4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
push 0x40
add ebx, esi
push 0x3000
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1c], ecx
push dword [eax + 0x38]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100023ad
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10002fa0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10002fa0
movzx ecx, word [ebx + 0x14]
lea eax, [esi + 0x18]
movzx esi, word [esi + 0x14]
lea edx, [ebx + 0x18]
movzx ebx, word [ebx + 6]
add ecx, edx
add esi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x1000235c
mov edi, ecx
sub edi, esi
push 0x28
lea edx, [edi + esi]
mov ecx, esi
call fcn.10002fa0
add esi, 0x28
dec ebx
jne 0x10002322
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000235c
lea esi, [ecx + 0x14]
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10002fa0
lea esi, [esi + 0x28]
dec ebx
jne 0x10002344
mov ebx, dword [ebp - 0x14]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10003750
push dword [ebp - 0x18]
mov ecx, dword [0x10007004]
mov edx, edi
call fcn.10003830
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x100023aa
cmp dword [ebx + 0x64], 0
je 0x100023aa
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x100023a2
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100037f0
jmp 0x100023a4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000254c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, str..exe
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
call fcn.10003150
mov esi, 0x103
sub esi, eax
push esi
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100026b3
mov esi, dword [sym.imp.ntdll.dll_RtlRandom]
push ebx
call esi
mov ebx, eax
push dword [esp + 0x14]
and ebx, 0xff
mov dword [esp + 0x28], ebx
call esi
and eax, 0xff
mov edx, str..exe
lea ecx, [esp + 0x278]
mov dword [esp + 0x14], eax
call fcn.100031c0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x100026b3
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov ecx, eax
cmova ecx, ebx
push 0x2e
mov dword [esp + 0x24], ecx
mov ebx, edi
pop ecx
cmp ebx, dword [esp + 0x24]
je 0x10002608
cmp ebx, eax
jne 0x10002654
mov esi, edi
cmp word [esp + 0x54], cx
je 0x10002619
inc esi
cmp word [esp + esi*2 + 0x54], cx
jne 0x10002611
mov ecx, dword [esp + 0x10]
mov edx, edi
test ecx, ecx
je 0x1000262d
lea edx, [esi - 4]
xor eax, eax
cmp edx, esi
cmova edx, eax
push 4
pop eax
cmp esi, eax
cmova esi, eax
lea eax, [esi + esi]
push eax
lea eax, [esp + 0x58]
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ecx*2]
call fcn.10002fa0
add dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002684
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x14]
inc ebx
push 0x2e
pop ecx
cmp ebx, dword [esp + 0x20]
jbe 0x100025fe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 8]
xor edi, edi
push esi
mov dword [eax], ecx
inc edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100026be
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
mov edi, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1000276a
push esi
push esi
push str.RPCSS
push esi
push esi
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
push 2
push 0x10
push 0xf01ff
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x10002763
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
inc eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1000275c
xor eax, eax
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
mov dword [ebp - 4], 0xea60
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
push 1
pop eax
cmovne esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10002773
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x100027ce
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x100027c7
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 2
push ebx
mov dword [ebp - 4], 0x10006434
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
inc esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100034d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov eax, dword [edi + 0x3c]
mov ecx, 0x14c
cmp word [eax + edi + 4], cx
lea esi, [eax + edi]
jne 0x10003643
push ebx
mov ebx, dword [eax + edi + 0x88]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1000353d
cmp dword [eax + edi + 0x8c], 0
je 0x1000353d
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
movzx esi, word [esi + 6]
add ecx, eax
xor edx, edx
test esi, esi
je 0x1000353d
mov edi, edi
cmp dword [ecx + 0xc], ebx
je 0x10003548
inc edx
add ecx, 0x28
cmp edx, esi
jb 0x10003530
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ecx + 0x14]
movzx ecx, word [esi + edi + 0xe]
movzx eax, word [esi + edi + 0xc]
add esi, edi
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 0
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
je 0x1000353d
mov edx, dword [ebp - 0xc]
xor eax, eax
mov edi, edi
mov ebx, dword [esi + eax*8 + 0x14]
and ebx, 0x7fffffff
add ebx, esi
mov dword [ebp - 0x14], ebx
movzx edi, word [ebx + 0xe]
movzx eax, word [ebx + 0xc]
add edi, eax
mov dword [ebp - 4], edi
mov edi, 0
je 0x10003600
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
xor eax, eax
jmp 0x100035a0
cmp word [ebx + eax*8 + 0x10], dx
jne 0x100035f2
mov edx, dword [ebx + eax*8 + 0x14]
and edx, 0x7fffffff
add edx, esi
mov ecx, 0
movzx esi, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add esi, eax
je 0x100035e9
xor eax, eax
jmp 0x100035d0
lea eax, [edx + eax*8]
mov ebx, 0x409
cmp word [eax + 0x10], bx
mov ebx, dword [ebp - 0x14]
je 0x1000361a
inc ecx
movzx eax, cx
cmp eax, esi
jb 0x100035d0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
movzx eax, di
cmp eax, ecx
jb 0x100035a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0x10], ecx
cmp eax, edx
jb 0x10003570
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
pop ebx
mov eax, dword [ecx]
sub eax, dword [ebp - 0x18]
pop edi
add eax, dword [ebp - 8]
pop esi
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10003694
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x10003683
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x100036af
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x100036a4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x100036f1
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x100036d4
test esi, esi
je 0x100036fd
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x100036f5
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.1000111b
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x4090a0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x4090a4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00402abc
jmp 0x4011d3
mov eax, dword [0x4090a4]
test eax, eax
jne 0x4011c9
mov dword [0x4090a4], 1
mov dword [esp + 4], 0x40c014
mov dword [esp], 0x40c00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x40901c], 1
mov eax, dword [0x4090a4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x40c008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x4090a4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x4090a0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401f99
mov dword [esp], 0x4020b4
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x409074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00401938
mov eax, dword [0x409004]
mov dword [esp + 4], 0x409008
mov dword [esp], eax
call fcn.004013c8
call fcn.00401774
mov eax, dword [0x405014]
mov edx, dword [0x40900c]
mov dword [eax], edx
mov ecx, dword [0x40900c]
mov edx, dword [0x409008]
mov eax, dword [0x409004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004038fc
mov dword [0x409014], eax
mov eax, dword [0x409018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x409014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x40901c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x409014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret