joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1145070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
shr eax, 8
test al, al
je 0x1145086
mov dword [esp + 0x14], ecx
jmp fcn.01144290
mov dword [esp + 0x14], ecx
jmp fcn.01143700
Function at 0x40a1de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426458]
jne 0x40a1e8
repz ret
jmp fcn.0040cf0b

Function at 0x40a97b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408497
and dword [ebp - 0x14], 0
cmp dword [0x4289e0], 0
mov dword [ebp - 0x18], eax
jne 0x40aa2e
push 0x4021f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aad6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021e4
push ebx
call edi
test eax, eax
je 0x40aad6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021d4
push ebx
mov dword [0x4289e0], eax
call edi
push eax
call esi
push 0x4021c0
push ebx
mov dword [0x4289e4], eax
call edi
push eax
call esi
push 0x4021a4
push ebx
mov dword [0x4289e8], eax
call edi
push eax
call esi
mov dword [0x4289f0], eax
test eax, eax
je 0x40aa2e
push 0x40218c
push ebx
call edi
push eax
call esi
mov dword [0x4289ec], eax
mov eax, dword [0x4289ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa87
cmp dword [0x4289f0], ecx
je 0x40aa87
push eax
call esi
push dword [0x4289f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa87
test ebx, ebx
je 0x40aa87
call edi
test eax, eax
je 0x40aa7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa7e
test byte [ebp - 8], 1
jne 0x40aa87
or dword [ebp + 0x10], 0x200000
jmp 0x40aaba
mov eax, dword [0x4289e4]
cmp eax, dword [ebp - 0x18]
je 0x40aaba
push eax
call esi
test eax, eax
je 0x40aaba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aaba
mov eax, dword [0x4289e8]
cmp eax, dword [ebp - 0x18]
je 0x40aaba
push eax
call esi
test eax, eax
je 0x40aaba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4289e0]
call esi
test eax, eax
je 0x40aad6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aad8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a1de
leave
ret
Function at 0x422630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7aca90], ax
mov word [0x7aca94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7aca90
mov dword [0x7aca9c], 0x320033
mov dword [0x7acaa4], 0x6c006c
mov word [0x7aca96], cx
mov dword [0x7aca98], 0x6c0065
mov dword [0x7acaa0], 0x64002e
mov word [0x7aca92], dx
mov word [0x7acaa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7aca8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7aca88], eax
mov eax, dword [0x42dadc]
push edx
push eax
mov byte [0x428d53], 0x65
mov dword [0x428d49], 0x75747269
mov word [0x428d4d], 0x6c61
mov byte [0x428d48], 0x56
mov word [0x428d54], 0x7463
mov byte [0x428d56], 0
mov dword [0x428d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x422720
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x148c
call fcn.0040cee0
cmp dword [0x7aca8c], 0x37
jne 0x4227f5
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046bc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x48c]
push edx
push 0x4046e8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
push 0x404728
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push 0
lea ecx, [esp + 0xc8c]
push ecx
push 0
push 0x40473c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404774
push 0x40478c
push 0x4047a4
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7ada80]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x42dadc]
mov byte [edx + esi], cl
add esp, 0x148c
ret
Function at 0x422990
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7aca8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42dadc]
shr eax, 3
push edi
test eax, eax
je 0x422b3c
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x4229c4
mov esi, dword [esp + 0x18]
cmp dword [0x7aca8c], 0x1c
jne 0x4229e1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x427210]
mov ecx, dword [0x427214]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [str.fiWy]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x42721c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x422a25
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7ac9fc], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x7aca8c], 0x1be
lea ebp, [ebx + edi]
jne 0x422a7a
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x7aca8c], 0x979
mov dword [0x7aca00], 0xff6b3619
mov dword [0x7aca04], 0xffffffff
jne 0x422aba
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x422a21
cmp dword [0x7aca8c], 0x8d4
jne 0x422aef
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7aca8c], 0x17
jne 0x422b2b
push 0
push 0
push 0
push 0x404690
push 0x4046a4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x4229c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0xa3b790
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa3b7cf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa53d42
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a539bf

Function at 0xa5a3f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a5a26b

Function at 0x40a945
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40a943
xor edi, edi
movzx ecx, word [edx + 0x26]
jmp 0x40a958
mov esi, dword [edx + 0x28]
nop
jmp 0x40a967
xor eax, eax
nop
lodsb al, byte [esi]
cmp al, 0x61
nop
jl 0x40a983
nop
jmp 0x40a981
sub al, 0x20
nop
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x40a995
dec ecx
nop
jne 0x40a967
nop
nop
jmp 0x40a9a6
push edx
jmp 0x40a9b2
push edi
nop
mov edx, dword [edx + 0x10]
nop
jmp 0x40a9c2
mov eax, dword [edx + 0x3c]
nop
add eax, edx
nop
mov eax, dword [eax + 0x78]
jmp 0x40a9dd
test eax, eax
nop
jmp 0x40a9ed
je 0x40aba0
jmp 0x40aa01
jmp 0x40aa11
add eax, edx
mov ebx, dword [eax + 0x20]
nop
jmp 0x40aa27
push eax
add ebx, edx
mov ecx, dword [eax + 0x18]
jmp 0x40aa3d
test ecx, ecx
nop
jmp 0x40aa4b
je 0x40ab9e
jmp 0x40aa5e
jmp 0x40aa6d
xor edi, edi
nop
dec ecx
nop
mov esi, dword [ebx + ecx*4]
nop
jmp 0x40aa83
add esi, edx
nop
xor eax, eax
nop
jmp 0x40aa98
ror edi, 0xd
nop
jmp 0x40aaac
lodsb al, byte [esi]
add edi, eax
nop
cmp al, ah
nop
jmp 0x40aabe
jne 0x40aa86
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
nop
jmp 0x40aad5
jne 0x40aa2d
nop
nop
pop eax
jmp 0x40aaea
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
jmp 0x40ab07
mov ebx, dword [eax + 0x1c]
add ebx, edx
jmp 0x40ab19
mov eax, dword [ebx + ecx*4]
nop
jmp 0x40ab31
add eax, edx
jmp 0x40ab41
mov dword [esp + 0x24], eax
nop
pop ebx
nop
jmp 0x40ab56
pop ebx
jmp 0x40ab65
popal
jmp 0x40ab74
pop ecx
jmp 0x40ab88
pop edx
nop
jmp 0x40ab9b
push ecx
jmp eax
nop
pop eax
nop
jmp 0x40abaf
pop edi
jmp 0x40abbe
pop edx
mov edx, dword [edx]
nop
jmp 0x40abd5
jmp 0x40a937
Function at 0x405748
Capabilities:
Encode data using xor

Disassembly:
call fcn.00405648
sub ecx, ecx
sub cx, 0xff7f
call 0x405748
rcr byte [esi - 0x7f], 0x76
push cs
hlt

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, eax
push ecx
push esi
xor byte [ebp + 8], 0x8a
inc esi
sub al, 0x84
ror byte [edi], 0x84
mov esi, 0x361d0000
dec esi
xchg edx, eax
lodsd eax, dword [esi]
shr dh, 0x83
stc
add ebp, ecx
sahf
inc ebp
cld
stosb byte es:[edi], al
inc ebp
or byte [edi], cl
test dword [eax + eax + 0x7e8b0000], ebx
cmp al, 0xd5
clc
je 0xf240f593
mov ebx, dword [esi + 0x38]
or dword [esi - 1], 0x76
add eax, 0xebffc883
add cl, byte [ebx + 0x4798ba5]
mov al, 0x4d
cld
push 0
mov ss, word [eax + 0x53]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b358
mov eax, dword [ebp - 0x1f]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edx, eax
adc ecx, 0
sub edi, eax
cli
fmul dword [ecx - 0x49afaa]
mov dword [esi + 0x54], ecx
jmp 0x8863f2f
mov ecx, edi
cwde
rol byte [eax], 0xff
fadd qword [ebp - 0x76fa8a40]
inc ebp
or bl, ch
Function at 0x4038eb
Capabilities:
Enumerate files on windows
Enumerate files recursively
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
jne 0x403aa2
push 0x1b
call esi
test ax, ax
jne 0x403aa2
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
je 0x40391a
inc esi
jmp 0x403912
mov ebx, dword [esp + 0x10]
mov eax, dword [0x406824]
mov ebp, esi
sub ebp, ebx
test al, 1
jne 0x40394f
lea eax, [ebx - 4]
push 0x20
push eax
mov word [esi], 0x5c
push 0
mov dword [eax], 0x202c4e2f
call fcn.00403f1f
add esp, 0xc
test eax, eax
jg 0x403982
jmp 0x403aa4
test eax, eax
jl 0x403963
mov eax, dword [0x406858]
lea eax, [eax + ebp + 2]
mov dword [0x406858], eax
jmp 0x403982
push ebx
push dword [0x40685c]
call fcn.00403b64
pop ecx
mov dword [0x40685c], eax
mov word [eax], 0xa0d
add dword [0x40685c], 2
pop ecx
test byte [0x406824], 2
mov dword [esp + 0x10], 1
je 0x403a9c
push 0x4063d4
push ebx
mov dword [esi], 0x2a5c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x403a99
push edi
mov edi, 0x406400
test byte [0x4063d4], 0x10
je 0x403a08
cmp byte [0x406400], 0x2e
jne 0x4039e6
mov ax, word [0x406401]
test al, al
je 0x403a77
cmp ax, 0x2e
je 0x403a77
lea eax, [esi + 1]
push edi
push eax
call fcn.00403b64
push eax
push ebx
call fcn.004038eb
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jle 0x403a8e
jmp 0x403a77
mov ecx, dword [0x406824]
test cl, 1
je 0x403a77
mov eax, dword [0x40682c]
test eax, eax
je 0x403a21
cmp byte [eax], 0
je 0x403a77
test ecx, ecx
jl 0x403a4b
mov eax, dword [0x406858]
cmp byte [0x406400], 0
lea ecx, [eax + ebp + 3]
mov eax, edi
je 0x403a3f
inc eax
cmp byte [eax], 0
jne 0x403a39
sub eax, edi
add ecx, eax
mov dword [0x406858], ecx
jmp 0x403a77
and byte [esi + 1], 0
push edi
push ebx
push dword [0x40685c]
call fcn.00403b64
pop ecx
pop ecx
push eax
call fcn.00403b64
pop ecx
mov dword [0x40685c], eax
mov word [eax], 0xa0d
add dword [0x40685c], 2
pop ecx
push 0x4063d4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4039bc
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
and byte [esi], 0
mov eax, dword [esp + 0x10]
jmp 0x403aa4
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x403aa8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x403aef
push 0xf
lea esi, [ebp + 8]
xor edi, edi
pop ebx
movzx eax, al
push eax
inc esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
mov cl, bl
shr eax, cl
or edi, eax
mov al, byte [esi]
dec ebx
test al, al
je 0x403ae3
cmp al, 0xb0
jb 0x403ac4
cmp byte [esi], 0
je 0x403b4a
test edi, edi
je 0x403b5c
or dword [ebp - 4], edi
xor esi, esi
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403b37
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x403b13
cmp eax, 0x12
jbe 0x403b4e
cmp eax, 0x100
jb 0x403b27
cmp eax, 0x108
ja 0x403b27
cmp dword [ebp + 8], 0
jne 0x403b31
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
inc esi
cmp esi, 5
jb 0x403af1
cmp dword [ebp + 8], 0
je 0x403b5c
push 0xd
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403ab5
mov eax, edi
jmp 0x403b5f
push 0
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f1f
Capabilities:
Check for foreground window switch
Create process on windows
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
and eax, 2
push 0
mov dword [ebp - 8], eax
pop ebx
mov edi, str.CabinetWClass
je 0x403f49
call dword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x403f56
cmp dword [ebp + 0x10], ebx
je 0x404013
push ebx
push edi
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], 0x2000700
jne 0x403f79
mov eax, str.EXPLORER
mov ecx, dword [ebp + 0xc]
cmp byte [eax], 0x5c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 1
jne 0x403f98
mov dword [ebp - 0x44], 0x2000780
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40408e
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x40400d
push 0x5d
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push 0x1b10
call fcn.00403aa8
pop ecx
test eax, eax
pop ecx
jne 0x404048
cmp dword [ebp - 8], ebx
je 0x403fdf
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp + 8], eax
jmp 0x403fe6
push ebx
push edi
call esi
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 4]
je 0x404008
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x404008
cmp dword [ebp - 8], ebx
jne 0x40400d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40400d
dec dword [ebp + 0xc]
jns 0x403fb5
test byte [ebp + 0x10], 1
jne 0x40405f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40407b
cmp dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x44]
jne 0x404067
mov dword [0x4067f8], eax
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x40404c
mov dword [0x4067fc], 0x14
jmp 0x40405f
xor eax, eax
jmp 0x404062
inc eax
push 0x10
cdq
sub eax, edx
mov ecx, eax
pop eax
cdq
sar ecx, 1
idiv ecx
mov dword [0x4067fc], eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
sub eax, dword [0x4067f8]
cmp eax, dword [0x4067fc]
jg 0x40408e
cmp dword [ebp - 0x44], 0x50
ja 0x40408e
cmp dword [ebp + 0xc], 4
jg 0x40405f
push ebx
push ebx
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
or eax, 0xffffffff
jmp 0x404062
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x412e87
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x5f
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x74
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf0
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x3c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xc6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x14
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xe8
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x37
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x21
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x28
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x66
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xc4
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x2e
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xb7
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd7
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xa3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xa3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xad
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xf6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfd
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe9
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x16
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd0
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xde
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x31
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe1
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfd
inc edi
cmp edi, ebx
jb 0x412d20
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451c59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451c6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405902
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b112
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b123
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aff9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b14b
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.0040623f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x43cf61
Capabilities:
Encode data using xor

Disassembly:
push 0x43ccda
mov ebx, dword [esp]
add esp, 4
mov eax, 0xf3b9af8b
add edi, 1
call fcn.0043cf97
xor dword [esi], ebx
mov eax, 0x9f411efa
inc esi
mov eax, 0x9c49934b
mov edi, 0x7dffd2dd
cmp esi, ecx
jne fcn.0043cf61
or edi, eax
push edi
pop eax
ret

Function at 0x401e10
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4042d8
call fcn.00401f7c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x405478
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x401bd1
cmp eax, esi
jne 0x401bc4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x401bd4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401bab
xor esi, esi
inc esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401be7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401c16
mov eax, dword [0x405474]
test eax, eax
jne 0x401c10
mov dword [0x405474], esi
push 0x4030e4
push 0x4030d8
call fcn.00401b1a
pop ecx
pop ecx
test eax, eax
je 0x401c16
jmp 0x401d3e
mov dword [0x40513c], esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401c3a
push 0x4030d4
push 0x4030cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405474], 2
test ebx, ebx
jne 0x401c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40547c], 0
je 0x401c6a
push 0x40547c
call fcn.00401f04
pop ecx
test eax, eax
je 0x401c6a
push 0
push 2
push 0
call dword [0x40547c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401cc6
test al, al
je 0x401c84
cmp dword [ebp - 0x1c], 0
jne 0x401cc6
mov al, byte [esi]
test al, al
je 0x401c94
cmp al, 0x20
ja 0x401c94
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401c84
test byte [ebp - 0x3c], 1
je 0x401ca0
movzx eax, word [ebp - 0x38]
jmp 0x401ca3
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x405138], eax
cmp dword [0x40512c], 0
jne 0x401d1a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x401cd5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401ce8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401c71
cmp dword [0x40513c], 0
jne 0x401d29
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405138]
jmp 0x401d4a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401fc1
ret
call fcn.004020ab
jmp 0x401b71