joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040af34
and dword [ebp - 4], 0
cmp dword [0x419b2c], 0
mov ebx, eax
jne 0x410280
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410331
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410331
push eax
call fcn.0040aec2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419b2c], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419b30], eax
call esi
push eax
call fcn.0040aec2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419b34], eax
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b3c], eax
test eax, eax
je 0x410280
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aec2
pop ecx
mov dword [0x419b38], eax
mov eax, dword [0x419b38]
cmp eax, ebx
je 0x4102d8
cmp dword [0x419b3c], ebx
je 0x4102d8
push eax
call fcn.0040af3d
push dword [0x419b3c]
mov esi, eax
call fcn.0040af3d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4102d8
test edi, edi
je 0x4102d8
call esi
test eax, eax
je 0x4102cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4102cf
test byte [ebp - 0xc], 1
jne 0x4102d8
or dword [ebp + 0x10], 0x200000
jmp 0x410311
mov eax, dword [0x419b30]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410311
mov eax, dword [0x419b34]
cmp eax, ebx
je 0x410311
push eax
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410311
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419b2c]
call fcn.0040af3d
pop ecx
test eax, eax
je 0x410331
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410333
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403655
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040df30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x440af8], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4036a5
push 0x402e30
push 0x402e40
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e5c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4363c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4363cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040364e
mov eax, dword [0x4363d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4363d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4036e4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x440af8], 0xc
mov dword [ebp - 4], eax
jne 0x403746
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x440af8]
cmp eax, 0xfa9
jne 0x403762
mov dword [0x440094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40376f
mov dword [0x43fa40], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x440090], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x440af8], 0x213
mov dword [ebp - 0x18], edx
jne 0x4037af
push 0x402e78
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403648
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4036e1
cmp dword [0x440af8], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403819
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x403822
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x440af8]
mov ecx, dword [0x43fa48]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403895
mov edi, ecx
mov ebx, eax
cmp dword [0x440af8], 0x959
jne 0x403889
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402eb0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403655
add edi, 8
dec ebx
jne 0x403846
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403be6
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x440af8], 0x400
push edi
jne 0x403c38
push esi
push esi
call fcn.0040407b
push esi
push esi
call fcn.0040407b
push esi
push esi
push esi
call fcn.00404663
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.004035c3
fstp st(0)
push esi
call fcn.00404719
pop ecx
push esi
call fcn.0040447a
pop ecx
mov eax, dword [0x436a54]
mov dword [0x440af8], eax
mov eax, dword [0x436a2c]
mov dword [0x440afc], eax
call fcn.004038b4
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403c9f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403cad
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403c5a
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40331c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x403358
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403cdc
cmp dword [esp + 0x18], 0x785074d5
jne 0x403ce5
inc edi
cmp edi, 0x11915
jl 0x403caf
mov eax, dword [0x43fa48]
mov dword [0x44008c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4350f8]
jne 0x40509a
repz ret
jmp fcn.00408eb2
Function at 0x408bd5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004066ea
and dword [ebp - 4], 0
cmp dword [0x437300], 0
mov ebx, eax
jne 0x408c86
push 0x401b58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b4c
push edi
call esi
test eax, eax
je 0x408d37
push eax
call fcn.00406678
mov dword [esp], 0x401b3c
push edi
mov dword [0x437300], eax
call esi
push eax
call fcn.00406678
mov dword [esp], 0x401b28
push edi
mov dword [0x437304], eax
call esi
push eax
call fcn.00406678
mov dword [esp], 0x401b0c
push edi
mov dword [0x437308], eax
call esi
push eax
call fcn.00406678
pop ecx
mov dword [0x437310], eax
test eax, eax
je 0x408c86
push 0x401af4
push edi
call esi
push eax
call fcn.00406678
pop ecx
mov dword [0x43730c], eax
mov eax, dword [0x43730c]
cmp eax, ebx
je 0x408cde
cmp dword [0x437310], ebx
je 0x408cde
push eax
call fcn.004066f3
push dword [0x437310]
mov esi, eax
call fcn.004066f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cde
test edi, edi
je 0x408cde
call esi
test eax, eax
je 0x408cd5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408cd5
test byte [ebp - 0xc], 1
jne 0x408cde
or dword [ebp + 0x10], 0x200000
jmp 0x408d17
mov eax, dword [0x437304]
cmp eax, ebx
je 0x408d17
push eax
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408d17
mov eax, dword [0x437308]
cmp eax, ebx
je 0x408d17
push eax
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437300]
call fcn.004066f3
pop ecx
test eax, eax
je 0x408d37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec edi
rcr edi, 0x5a
imul eax
mov edx, 0xd3
imul edi
rol edi, 0x23
neg ebx
or ebx, 0x11
and ebx, 0x53
inc esi
not esi
inc edx
not eax
rcr edi, 0x72
mov ebx, 0x5b
not esi
bswap ebx
neg esi
or edx, 0x5d
and ebx, 0x63
bswap edi
bswap edx
imul edx
or esi, 0x81
imul esi
inc ebx
imul ebx
rcr eax, 0xe
sub edi, 0x90
neg esi
add esi, 0x64
add eax, 0x35
imul eax
ror esi, 0xa5
neg edx
and eax, 0x9e
imul edi
sub edx, 0xb2
sbb esi, 0x22
imul eax
neg edx
sub edx, 0x50
neg edi
rcl edx, 0xe8
rol esi, 0x89
inc edi
bswap ebx
sbb esi, 0xa9
bswap ebx
rcl eax, 0x61
xor ecx, ecx
xor edi, edi
bswap edx
mov eax, 0x4a
not esi
add edi, 0xc5
dec eax
rcl edx, 0x18
sub esi, 0x2b
bswap esi
mov edx, 0x78
neg edi
add eax, 0xd5
not ebx
bswap edi
sbb esi, 0xad
inc edx
imul edi
not ebx
add edi, 0xc3
not edx
sbb edi, 0xda
bswap esi
mov ebx, 0x24
add esi, 0xd5
mov edi, 0xd4
imul ebx
bswap eax
inc edx
ror esi, 0x1c
inc edx
dec edi
add eax, 0xd1
sub esi, 5
inc edx
neg esi
mov edi, 0x88
imul eax
neg edi
not esi
inc edx
rol esi, 0xa3
neg edx
inc eax
and esi, 0x5c
and esi, 7
bswap esi
and edx, 0x8e
imul edi
imul ebx
not ebx
dec edx
mov ecx, dword [ebp + 0xc]
rcl edx, 0x3e
mov ebx, 0x53
not ebx
not eax
bswap eax
sbb ebx, 0xa8
and edx, 0x6b
mov edx, 0x7d
ror ebx, 0x9e
imul eax
rcr eax, 0x55
imul ebx
neg eax
or esi, 0x9e
rcl ebx, 0x8f
bswap ebx
bswap eax
neg edx
ror ebx, 0x43
ror eax, 0xe2
and edx, 0x84
or ebx, 0xcf
ror edi, 0xed
sbb ebx, 0x82
not esi
rcr ebx, 0x8c
imul edx
rcr edi, 0x46
not edi
sub esi, 0xcc
sbb edi, 0xd7
bswap esi
rol eax, 0x8b
neg esi
not esi
and ebx, 0x24
neg eax
bswap esi
imul edi
neg edi
not esi
neg ebx
not eax
not eax
sub ebx, 0xbe
neg ebx
sbb ebx, 0xed
or edx, 0xe0
sub ebx, 0x15
imul esi
mov edi, dword [ebp + 8]
mov eax, esi
mov ebx, ebx
mov esi, esi
not byte [edi]
mov ebx, eax
xor ebx, ebx
mov esi, eax
sub byte [edi], 0x88
mov esi, ebx
xor esi, eax
xor eax, esi
add byte [edi], 0x49
mov eax, esi
xor esi, esi
xor eax, esi
imul byte [edi]
inc edi
loop 0x4013cc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4075a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x4075ae
repz ret
jmp fcn.0040b50c
Function at 0x407f13
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040583a
and dword [ebp - 4], 0
cmp dword [0x4115d4], 0
mov ebx, eax
jne 0x407fc4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408075
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408075
push eax
call fcn.004057c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.004057c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d8], eax
call esi
push eax
call fcn.004057c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115dc], eax
call esi
push eax
call fcn.004057c8
pop ecx
mov dword [0x4115e4], eax
test eax, eax
je 0x407fc4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057c8
pop ecx
mov dword [0x4115e0], eax
mov eax, dword [0x4115e0]
cmp eax, ebx
je 0x40801c
cmp dword [0x4115e4], ebx
je 0x40801c
push eax
call fcn.00405843
push dword [0x4115e4]
mov esi, eax
call fcn.00405843
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40801c
test edi, edi
je 0x40801c
call esi
test eax, eax
je 0x408013
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408013
test byte [ebp - 0xc], 1
jne 0x40801c
or dword [ebp + 0x10], 0x200000
jmp 0x408055
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x408055
push eax
call fcn.00405843
pop ecx
test eax, eax
je 0x408055
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408055
mov eax, dword [0x4115dc]
cmp eax, ebx
je 0x408055
push eax
call fcn.00405843
pop ecx
test eax, eax
je 0x408055
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115d4]
call fcn.00405843
pop ecx
test eax, eax
je 0x408075
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408077
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004014fb
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403615
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0040e9d0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x432bf8], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x403665
push 0x402e30
push 0x402e40
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e5c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040360e
mov eax, dword [0x4284d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4036a4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x432bf8], 0xc
mov dword [ebp - 4], eax
jne 0x403706
push ebx
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x104c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x432bf8]
cmp eax, 0xfa9
jne 0x403722
mov dword [0x432194], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40372f
mov dword [0x431b40], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x432190], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x432bf8], 0x213
mov dword [ebp - 0x18], edx
jne 0x40376f
push 0x402e78
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403608
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4036a1
cmp dword [0x432bf8], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x4037d9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x4037e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x432bf8]
mov ecx, dword [0x431b48]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403855
mov edi, ecx
mov ebx, eax
cmp dword [0x432bf8], 0x959
jne 0x403849
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402eb0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403615
add edi, 8
dec ebx
jne 0x403806
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bad
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x432bf8], 0x400
push edi
jne 0x403bff
push esi
push esi
call fcn.00404007
push esi
push esi
call fcn.00404007
push esi
push esi
push esi
call fcn.004048ac
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403583
fstp st(0)
push esi
call fcn.00404962
pop ecx
push esi
call fcn.004046c3
pop ecx
mov eax, dword [0x428b54]
mov dword [0x432bf8], eax
mov eax, dword [0x428b2c]
mov dword [0x432bfc], eax
call fcn.00403874
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403c66
cmp dword [esp + 0x18], 0x785074d5
jne 0x403c74
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403c21
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4032e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x40331c
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403ca3
cmp dword [esp + 0x18], 0x785074d5
jne 0x403cac
inc edi
cmp edi, 0x11915
jl 0x403c76
mov eax, dword [0x431b48]
mov dword [0x43218c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4052d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4270f8]
jne 0x4052da
repz ret
jmp fcn.00409952