joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41c915
movzx ecx, ax
mov edx, 5
call fcn.0040adc0
movzx ecx, word [edi + 0x10]
mov ebx, eax
push 5
push ecx
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c915
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0042e724
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41c915
push esi
push dword [ebp - 4]
push ebx
call fcn.0042bb60
add esp, 0xc
cmp dword [edi + 0x18], 0
jne 0x41c8d5
mov eax, dword [0x4657a0]
test eax, eax
je 0x41c8cf
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [edi + 0x18], eax
mov ecx, dword [edi]
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0xc]
push eax
mov esi, dword [ecx + 0x40]
mov ecx, esi
call dword [0x44e360]
mov ecx, edi
call esi
push edi
push 0x41c920
push dword [edi + 0x18]
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push ebx
mov esi, eax
call fcn.0042e72f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41eb20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41eb87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x41eb7a
cmp ecx, 0x2e4
je 0x41eb7a
cmp ecx, 0x4c7
je 0x41eb7a
shr eax, 0x10
xor edx, edx
cmp edx, eax
sbb eax, eax
not eax
and eax, ecx
cmp dword [esi + 0x10], 8
ja 0x41eb87
movzx eax, ax
add eax, 0x10000
mov dword [esi + 0x10], eax
jmp 0x41eb87
cmp dword [esi + 0x10], 8
ja 0x41eb87
mov dword [esi + 0x10], 0x3f5
mov eax, dword [edi + 0x38]
test eax, eax
je 0x41ebad
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [edi + 0x38]
call dword [0x463018]
cmp dword [esi + 0x10], 8
ja 0x41ebb9
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x420f20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cb00
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x463188]
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
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
call fcn.00438d79
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x420ffe
lea esp, [esp]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420f75
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x420fb0
movzx eax, word [esi]
cmp eax, 0x2d
je 0x420f96
cmp eax, 0x2f
jne 0x420fb0
lea eax, [esi + 2]
push 0x45cca0
push eax
call fcn.0042ebb0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x420ffe
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420fb5
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x420ff0
cmp word [esi], 0x2d
jne 0x420ff0
cmp word [esi + 2], 0x2d
jne 0x420ff0
lea eax, [esi + 4]
push str.language
push eax
call fcn.0042ebb0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x420ffe
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x420f70
cmp dword [edi], 0
je 0x42103e
mov esi, dword [edi + 4]
test esi, esi
je 0x42103e
push 0x2c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0042c0e0
add esp, 0xc
lea ecx, [ebp - 0x254]
mov edx, esi
call fcn.00426cb0
test al, al
je 0x42103e
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x42108d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042c0e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
call fcn.004271e0
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x42108d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov dword [ebp - 0x21c], esi
push esi
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x421126
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
push eax
push 0x421150
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x228]
call fcn.00426f70
mov esi, 0x409
test al, al
je 0x4210ed
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x228]
test edx, edx
je 0x421126
mov ecx, dword [ebp - 0x220]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x42111c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421144
push ecx
push edx
call fcn.00429a23
add esp, 8
mov eax, esi
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.004299ea
mov esp, ebp
pop ebp
ret
call fcn.0042e9c4
int3
Function at 0x4239d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov dword [ebp - 4], ecx
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
shr esi, 4
push edi
xor edi, edi
lea ebx, [esi + 1]
movzx eax, bx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
push dword [ebp - 8]
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x423a21
push 0x409
push dword [ebp - 8]
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x423a6a
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x423a6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
shl ebx, 4
shl esi, 4
cmp esi, ebx
jae 0x423a61
mov edx, dword [ebp - 0xc]
movzx edi, word [eax]
add eax, 2
test di, di
je 0x423a5a
mov ecx, edi
cmp esi, edx
je 0x423a73
lea eax, [eax + ecx*2]
inc esi
cmp esi, ebx
jb 0x423a46
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
push esi
call fcn.004387dc
add esp, 0x10
test eax, eax
jne 0x423a5f
push dword [ebp - 8]
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x463188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0042c0e0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, esi
mov byte [edi + 0x50], 1
call fcn.004239d0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x137
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push 0x137
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004299ea
mov esp, ebp
pop ebp
ret 4

Function at 0x426070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x463188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
xor eax, eax
test ecx, ecx
je 0x4260e1
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], edi
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
cmp dword [ebp - 0x1c], edi
jne 0x42610d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4260f6
sub ecx, edx
mov edi, 1
sar ecx, 1
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x14]
sub ecx, edi
mov dword [esi], eax
push ecx
lea eax, [eax + edi*4]
mov ecx, esi
push eax
call fcn.00426200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43b33d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0043af27
push eax
push esi
push dword [ebp + 8]
call fcn.0043aedc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0043af17
lcall 0x9d88, 0xe24d
jl 0x43b39c
invalid
invalid

Function at 0x43be9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x11fffffc]
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0043af27
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0043aedc
add esp, 0xc
mov dword [ebp - 0x3d4], eax
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4bc8411c
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x356bc7
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409dc9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4130c0]
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.00405cbb
mov dword [ebp - 0x14], eax
cmp dword [0x414da8], edi
jne 0x409eba
push 0x800
push edi
push 0x40e22c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x409e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409f9a
push 0x40e22c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x409f9a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409f9a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x414da8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x414dac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x414db0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414db8], eax
test eax, eax
je 0x409eb7
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414db4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409edf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409ed2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x409ef4
push 4
pop eax
jmp 0x409f9c
cmp dword [ebp - 0x14], edi
je 0x409ef4
push dword [0x414da8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409ed9
mov eax, dword [0x414db4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x409f52
cmp dword [0x414db8], esi
je 0x409f52
push eax
call ebx
push dword [0x414db8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409f52
test eax, eax
je 0x409f52
call ecx
test eax, eax
je 0x409f47
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 0x409f47
test byte [ebp - 8], 1
jne 0x409f52
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x409f82
mov eax, dword [0x414dac]
cmp eax, esi
je 0x409f7f
push eax
call ebx
test eax, eax
je 0x409f7f
call eax
mov edi, eax
test edi, edi
je 0x409f7f
mov eax, dword [0x414db0]
cmp eax, esi
je 0x409f7f
push eax
call ebx
test eax, eax
je 0x409f7f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x414da8]
call ebx
test eax, eax
je 0x409f9a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x409f9c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402577
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x8e1098
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e109e
pop ebp
sub ebp, 6
sub ebp, 0x4e1098
jmp 0x8e10fc
jmp 0x8e1105
mov eax, 0x4e1098
add eax, ebp
add eax, 0x93
mov ecx, 0x627
mov edx, 0xa9a270ce
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e111c
jmp 0x8e112f
movsb byte es:[edi], byte [esi]
mov fs, word [esi - 0x31312132]
cmpsb byte [esi], byte es:[edi]
into
add ah, dl
into
dec edi
popfd
test dword [esi - 0x62c1b088], 0xfd7886f7
push cs
sahf
xor dword [ebx - 0xe], ebx
lahf
mov cl, dh
sahf
inc ebp
add eax, dword [ebp + 0x47]
into
into
into
dec edi
invalid
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
jae 0x41542e
add bl, bl
and esp, dword [0xc4265c84]
invalid
in eax, 0x1d
fnstcw word [edx]
sbb ah, dl
invalid
Function at 0x4014f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
call fcn.00401650
mov dword [ebp - 0x80], 0
lea edx, [ebp - 0x7c]
mov eax, 0
mov ecx, 0x18
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x64
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401597
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea eax, [ebp - 0x80]
mov ecx, 0x64
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + ecx - 4]
mov dword [edx + ecx - 4], ebx
lea ebx, [edx + 4]
and ebx, 0xfffffffc
sub edx, ebx
sub eax, edx
add ecx, edx
and ecx, 0xfffffffc
shr ecx, 2
mov edx, ecx
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
call eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [0x403004]
mov eax, dword [eax]
test eax, eax
je 0x4015e0
sub esp, 0xc
nop
call eax
mov eax, dword [0x403004]
lea edx, [eax + 4]
mov eax, dword [eax + 4]
mov dword [0x403004], edx
test eax, eax
jne 0x4015c0
add esp, 0xc
ret
ret

Function at 0x401810
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402580
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402580
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401870
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401990
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4018a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401927
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401890
mov dword [esp], ebx
call fcn.00402260
mov edi, eax
test eax, eax
je 0x4019b7
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004023a0
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401997
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401920
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401930
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401810
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4018ae
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401810
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401810
lea esi, [esi]
nop

Function at 0x401ed0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x401f25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f1e
test esi, esi
je 0x401f1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f00
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402285
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402290
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402285
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4022d8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022da
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022c0
xor eax, eax
pop ebx
pop esi
ret