joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419558
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a391
mov byte [ebp - 0xd], 0
jmp 0x40a3e6
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x14], 0
test edi, edi
je 0x40a3cc
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
lea eax, [eax + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a3cc
add esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x40a3a1
cmp esi, edi
jne 0x40a3df
mov eax, dword [ebp + 0x10]
shr edi, 1
xor ecx, ecx
mov byte [ebp - 0xd], 1
mov word [eax + edi*2], cx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a750
xor al, al
pop ebx
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x40a78a
jmp 0x40a760
push 0
lea eax, [ebp + 8]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a78a
add esi, dword [ebp + 8]
cmp esi, edi
jb 0x40a760
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
Function at 0x40b9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198fc
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [ebp + 8]
push str.kernel32
mov dword [ebp - 0x224], 0
call esi
push str.kernel32
mov ebx, eax
mov dword [ebp - 0x21c], 0
call esi
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x40ba59
push str.IsWow64Process
push ecx
call eax
mov esi, eax
test esi, esi
je 0x40ba54
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x21c], 0
je 0x40ba99
test ebx, ebx
je 0x40ba99
push str.GetSystemWow64DirectoryW
push ebx
call eax
test eax, eax
je 0x40ba99
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call eax
push 8
call fcn.0040e63c
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
jmp 0x40bac2
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 8
call fcn.0040e63c
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40bad6
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00401070
jmp 0x40bad8
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x42503c], eax
call fcn.00401000
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6b5
mov esp, ebp
pop ebp
ret
Function at 0x40bcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419980
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x41c], edi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x418], 0
call fcn.00402110
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40bde2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push esi
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x414], 0x400
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x40bdb9
push dword [ebp - 0x414]
call fcn.0040e63c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x414]
push eax
push edi
push 0
push 0
lea ecx, [ebp + 0x18]
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40bda8
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
push edi
mov ecx, ebx
call fcn.00401800
push edi
call fcn.0040e6b0
mov edi, dword [ebp - 0x41c]
add esp, 4
jmp 0x40bdd6
cmp esi, 2
je 0x40bdd6
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, ebx
call fcn.00401800
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
mov dword [edi], esi
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6b5
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4199ce
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov dword [ebp - 4], 0
test eax, eax
je 0x40be6a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
push 0
push 0x41a47c
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp + 8]
call fcn.00401d00
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.00402170
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00402170
cmp esi, eax
jne 0x40bf0d
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40beba
xor bl, bl
jmp 0x40bf23
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401070
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.004014e0
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
lea ecx, [ebp + 8]
call fcn.00401820
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
setne bl
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6b5
mov esp, ebp
pop ebp
ret 8
Function at 0x41462a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00413221
mov dword [ebp - 0x14], eax
cmp dword [0x425db8], edi
jne 0x41471b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4146a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4147fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4147fb
push 0x41d154
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4147fb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x425db8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x425dbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x425dc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc8], eax
test eax, eax
je 0x414718
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414740
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414733
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x414755
push 4
pop eax
jmp 0x4147fd
cmp dword [ebp - 0x14], edi
je 0x414755
push dword [0x425db8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41473a
mov eax, dword [0x425dc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4147b3
cmp dword [0x425dc8], esi
je 0x4147b3
push eax
call ebx
push dword [0x425dc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4147b3
test eax, eax
je 0x4147b3
call ecx
test eax, eax
je 0x4147a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4147a8
test byte [ebp - 8], 1
jne 0x4147b3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4147e3
mov eax, dword [0x425dbc]
cmp eax, esi
je 0x4147e0
push eax
call ebx
test eax, eax
je 0x4147e0
call eax
mov edi, eax
test edi, edi
je 0x4147e0
mov eax, dword [0x425dc0]
cmp eax, esi
je 0x4147e0
push eax
call ebx
test eax, eax
je 0x4147e0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x425db8]
call ebx
test eax, eax
je 0x4147fb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4147fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e6b5
leave
ret
Function at 0xb2a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b2a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a06a
add dl, dl
jne 0xb2a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a0dc
xor eax, eax
add dl, dl
jne 0xb2a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2a17d
add dl, dl
jne 0xb2a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb2a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb2a075
mov eax, 1
add dl, dl
jne 0xb2a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb2a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a0e1
sub eax, ebx
mov ebx, 1
jne 0xb2a128
mov ecx, 1
add dl, dl
jne 0xb2a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb2a136
cmp eax, 0x7d00
jae 0xb2a16d
cmp eax, 0x500
jb 0xb2a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
cmp eax, 0x7f
ja 0xb2a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb2a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb2a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, esi
mov esi, ebx
xor ebx, ebx
mov ebx, esi
mov ebx, eax
mov esi, ebx
mov ebx, esi
xor esi, eax
xor esi, esi
rol eax, 5
dec eax
bswap edi
rcl esi, 0x3d
imul esi
ror eax, 0x3c
ror eax, 0x4e
neg edi
dec edx
sub ebx, 0xc5
ror eax, 0x1d
imul eax
ror eax, 0x1c
sbb eax, 0xd3
rol edx, 0xa9
dec edx
ror edx, 0xf6
not esi
imul eax
add eax, 0x73
neg edi
not edi
neg eax
neg ebx
mov eax, 0x5c
dec esi
add ebx, 0x63
rcl ebx, 0x34
imul eax
inc esi
rcl esi, 0x1c
rcl edx, 0x44
imul edi
rcr edi, 0xea
rol edx, 0x5d
or edx, 0xcc
dec esi
imul esi
sub ebx, 0x2b
ror eax, 0x96
rcl eax, 0x64
or esi, 0x38
inc edx
or esi, 0xc
bswap ebx
bswap esi
bswap edx
bswap edi
imul eax
bswap eax
xor ecx, ecx
xor edi, edi
mov ebx, eax
xor ebx, eax
xor eax, ebx
mov eax, esi
xor eax, ebx
xor ebx, eax
not edi
and eax, 0xf5
not eax
inc edi
rcl eax, 0x5c
bswap edi
add ebx, 0x87
bswap eax
sbb edx, 0x6e
bswap edi
dec eax
and esi, 0x29
sub edx, 0xbd
sbb esi, 0xf
ror edi, 0x22
bswap edi
bswap edi
not esi
sub esi, 0x88
ror edx, 0x6f
imul eax
mov eax, 9
rcl edi, 2
sbb esi, 0xcc
sbb edi, 0xc9
neg edi
not edx
add eax, 0x85
inc edi
bswap ebx
add ebx, 0x1e
or esi, 0x7c
rol eax, 0x3d
or edx, 0xe5
mov edi, 0xbf
bswap ebx
sbb ebx, 0x8c
mov ebx, 0x7f
rcr esi, 0xfe
mov edi, 0x82
sbb edi, 0xe
add edx, 0x50
not ebx
inc esi
inc ebx
imul ebx
sub ebx, 0xdc
rol eax, 0x69
sbb ebx, 0xf5
inc edi
mov eax, ebx
mov eax, esi
xor eax, ebx
mov ebx, eax
xor eax, ebx
xor eax, eax
mov eax, ebx
xor ebx, esi
mov ebx, esi
mov ecx, dword [ebp + 0xc]
rcl edi, 0xfb
bswap edi
imul edx
inc eax
imul esi
mov ebx, 0x58
imul edi
inc edi
not eax
ror eax, 0x97
rcr edi, 0xab
or eax, 0xfe
bswap edx
and ebx, 0x4e
rcl eax, 0x37
mov ebx, 0x43
and edx, 0x76
bswap edi
sbb eax, 0xe3
ror eax, 0xd7
not edi
rol eax, 0xfa
neg edi
and edx, 0x44
inc edx
inc edi
bswap esi
bswap ebx
not eax
inc esi
ror ebx, 0xc1
add ebx, 8
neg edx
sub edi, 0x76
inc edi
ror edx, 0xd5
dec esi
sub esi, 0x7f
dec esi
neg edi
dec esi
add ebx, 0xef
inc esi
inc edi
sub esi, 0xf9
rcl esi, 0xfa
not edi
bswap ebx
rcl edx, 0xb0
sbb esi, 8
mov edi, dword [ebp + 8]
xor eax, ebx
mov eax, eax
xor eax, eax
xor eax, ebx
mov eax, esi
xor ebx, ebx
xor esi, ebx
mov eax, eax
xor esi, esi
not byte [edi]
mov ebx, ebx
xor eax, esi
mov ebx, esi
xor esi, ebx
xor esi, eax
mov esi, eax
xor ebx, ebx
xor ebx, ebx
xor ebx, eax
xor esi, eax
mov ebx, esi
xor ebx, esi
sub byte [edi], 0xf1
add byte [edi], 0x63
xor ebx, esi
xor eax, esi
mov esi, ebx
xor eax, eax
xor eax, ebx
mov ebx, ebx
mov esi, eax
mov esi, ebx
xor eax, esi
imul byte [edi]
inc edi
loop 0x40126b
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404e40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404e7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404e7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404e7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404e7f
cmp dword [ecx + 0x74], 0xe
jbe 0x404e7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a9d3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40aa70
push ebx
push esi
call fcn.0040a99c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a930
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aa1d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa6f
push edi
push eax
call fcn.0040b5f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40aa3d
call fcn.00409491
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa6e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a930
add esp, 0x20
test eax, eax
jne 0x40aa5c
push edi
call fcn.00409491
jmp 0x40aa64
push ebx
call fcn.00409491
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40bd6e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cb68
push 0x44cb60
push str.FlsAlloc
push 0x1f
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40bda2
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
jmp 0x40bda8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40bdec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cb78
push 0x44cb70
push str.FlsGetValue
push 0x21
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be23
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40be2b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44cb80
push 0x44cb78
push str.FlsSetValue
push 0x22
call fcn.0040bc2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be65
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4112c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4112ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4112ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402000
Capabilities:
Hide graphical window
Terminate process

Disassembly:
call fcn.0040221b
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
push 0x402027
push 0
push 0x64
push eax
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40221b
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push str.HIDmon
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x402243
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x402243
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
Function at 0x40cb68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40cb77
pop dword [ebp - 0x48]
mov eax, 0x40cb77
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xeeb80ad5
sub dword [ebp - 0x58], 0xa065c58a
mov dword [ebp - 0x54], 0x33f82eb
sub dword [ebp - 0x54], 0xd10c36a6
mov dword [ebp - 0x50], 0xa7e46bda
add dword [ebp - 0x50], 0xa467d854
mov dword [ebp - 0x4c], 0x801a9c73
add dword [ebp - 0x4c], 0x7fe5638d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x480dfda2
add eax, 0xb832e2a2
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf8e29079
add dword [ebp - 0x58], 0x7b8fd8dd
mov dword [ebp - 0x54], 0xf9df2e81
add dword [ebp - 0x54], 0x478d32f4
mov dword [ebp - 0x50], 0x75220084
add dword [ebp - 0x50], 0xee4d6be8
mov dword [ebp - 0x4c], 0x57222264
sub dword [ebp - 0x4c], 0x57222264
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4aaf1faf
add eax, 0xb591c0dd
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3462c
push 0
call eax
mov ecx, 0x7116daef
sub ecx, 0x71169f1c
mov ebx, eax
mov esi, 0xfda4a0d
add esi, 0xf06759f3
add esi, dword [ebp - 0x48]
mov edx, 0x4b7ff113
xor dword [ebp - 0x40], 0x9de8006d
mov edi, dword [esi]
xor dword [ebp - 0x2c], eax
sub edi, edx
sub dword [ebp - 0x18], ebx
mov dword [ebx], edi
xor dword [ebp - 0x14], 0xc181af8a
add ebx, 4
add esi, 0x1e2e65c6
sub esi, 0x1e2e65c2
loop 0x40cc8e
add eax, 0xe9b7e9b3
sub eax, 0xe9b70794
xor ebx, ebx
add ebx, eax
add eax, 0x38ffbdb2
add eax, 0xc7004253
mov ecx, 0x60c0779a
sub ecx, 0x6080779a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401800
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [0xeea028], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
call sub.KERNEL32.dll_GetCommandLineW
mov dword [esp + 4], 0xeea028
mov dword [esp], eax
call sub.SHELL32.DLL_CommandLineToArgvW
mov edx, dword [0xeea028]
sub esp, 8
test edx, edx
jle 0x401983
test eax, eax
mov edi, eax
je 0x401983
xor esi, esi
xor ebx, ebx
lea esi, [esi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WideCharToMultiByte
add esi, eax
mov eax, dword [0xeea028]
sub esp, 0x20
cmp ebx, eax
jl 0x401850
lea eax, [esi + eax*4 + 4]
mov dword [esp], eax
call fcn.00894240
mov edx, eax
mov dword [esp + 0x2c], eax
mov dword [0xeea02c], eax
mov eax, dword [0xeea028]
test edx, edx
lea ecx, [eax*4 + 4]
mov dword [esp + 0x3c], ecx
je 0x401991
test eax, eax
jle 0x40198b
xor ebp, ebp
mov dword [esp + 0x30], esi
mov ecx, edx
mov esi, edi
xor ebx, ebx
mov edi, ebp
mov ebp, dword [esp + 0x3c]
jmp 0x4018f6
mov ecx, dword [0xeea02c]
lea eax, [edi + ebp]
add eax, dword [esp + 0x2c]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
sub ecx, edi
mov dword [esp + 0x14], ecx
mov eax, dword [esi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
add edi, eax
cmp ebx, dword [0xeea028]
jl 0x4018f0
mov eax, dword [0xeea02c]
mov edi, esi
shl ebx, 2
mov dword [eax + ebx], 0
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
sub esp, 4
mov eax, dword [0xeea028]
mov esi, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [0xeea02c]
mov esi, dword [esp + 0x38]
mov dword [esi], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
xor ebx, ebx
jmp 0x40195b
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
sub esp, 4
jmp 0x401983