joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e72ff
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 0x4e739c
push ebx
push esi
call fcn.004e72c8
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.004e4203
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e7349
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e739b
push edi
push eax
call fcn.004e063d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e7369
call fcn.004e05c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e739a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e4203
add esp, 0x20
test eax, eax
jne 0x4e7388
push edi
call fcn.004e05c3
jmp 0x4e7390
push ebx
call fcn.004e05c3
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 0x4e739f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e73b0
pop esi
ret
push ebx
push edi
push esi
call fcn.004e72c8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004e063d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e73d8
push ebx
push esi
push edi
call fcn.004ca570
add esp, 0xc
push 0
call fcn.004e05c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e7b32
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e764d

Function at 0x4e9d6b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004df3eb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e9dda
cmp esi, dword [ebp - 4]
je 0x4e9dd5
cmp dword [ebp + 0xc], 0
je 0x4e9dd5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e9db2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004e98bd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4e9ddc
xor eax, eax
inc eax
jmp 0x4e9ddc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4e9e42
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x530048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004df3eb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004df3eb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4e9eb9
cmp word [ecx], dx
je 0x4e9eb9
mov eax, dword [0x50a58c]
push edi
dec eax
push eax
push 0x50a478
call fcn.004e9de0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4e9f2c
cmp word [eax], dx
je 0x4e9f2c
mov eax, dword [edi]
test eax, eax
je 0x4e9edd
cmp word [eax], dx
je 0x4e9edd
lea eax, [ebp - 0x10]
push eax
call fcn.004e97c3
jmp 0x4e9ee6
lea eax, [ebp - 0x10]
push eax
call fcn.004e985e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4e9f56
mov eax, dword [0x50a474]
push dword [ebp - 0x14]
dec eax
push eax
push 0x50a168
call fcn.004e9de0
add esp, 0xc
test al, al
je 0x4e9f56
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4e9f21
cmp word [eax], di
je 0x4e9f21
lea eax, [ebp - 0x10]
push eax
call fcn.004e97c3
pop ecx
jmp 0x4e9f58
lea eax, [ebp - 0x10]
push eax
call fcn.004e985e
jmp 0x4e9f1e
mov eax, dword [edi]
test eax, eax
je 0x4e9f43
cmp word [eax], dx
je 0x4e9f43
lea eax, [ebp - 0x10]
push eax
call fcn.004e9778
pop ecx
jmp 0x4e9f56
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4ea021
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004e9c65
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4ea021
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4ea021
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4ea021
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e9fae
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004e0e20
test ebx, ebx
je 0x4ea01c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004e0e20
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ea021
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ea021
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004ed789
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4ea023
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b2e25
leave
ret
Function at 0x4ee230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ee25d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ee25d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
push edx
pop esi
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
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 sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
or ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
push eax
pop esi
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
or esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x42403e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x42404d
pop dword [ebp - 0x38]
mov eax, 0xc6c5b391
add eax, 0x397c8cbc
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x49fc2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x602e
mov edi, eax
mov edx, 0x448800
add edx, dword [ebp - 0x38]
mov esi, 0x8b2ebbb4
sub esi, 0xf65c0661
add dword [ebp - 0x28], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x34], 0x3b0254d8
xor ebx, esi
mov dword [ebp - 0xc], 0x5ac4438a
mov dword [edi], ebx
add dword [ebp - 0x10], esi
add edi, 0xcf6ed997
add edi, 0x3091266d
add edx, 0x6cbd6e20
sub edx, 0x6cbd6e1c
loop 0x42409b
add eax, 0x15a3118a
add eax, 0xea5e6201
mov ebx, eax
add eax, 0x827f2b1
sub eax, 0x827f2ac
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1004cad
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
jne 0x1004cc5
xor eax, eax
jmp 0x1004d45
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1004d43
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x7fff
jae 0x1004d39
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1004d39
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d39
cmp byte [edi], bl
mov eax, edi
je 0x1004d39
mov cl, byte [eax]
cmp cl, 9
je 0x1004d37
cmp cl, 0xa
je 0x1004d37
cmp cl, 0xd
je 0x1004d37
inc eax
cmp byte [eax], bl
jne 0x1004d1f
jmp 0x1004d39
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x401150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
test edi, edi
jne 0x401172
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x34]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stat]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [esp + 0x3c]
push 0x403510
push eax
call esi
mov ecx, dword [esp + 0x14c]
mov ebx, eax
push 0
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x160]
push 0x40350c
push edx
call esi
push edi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4011e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push ebx
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401272
push 5
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x408951
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
call fcn.00408981
or ecx, edx
xor dword [esi], edi
push ecx
pop ecx
add ecx, 0x43c6f0eb
inc esi
add edx, 0xf61959a0
cmp esi, ebx
jne fcn.00408951
mov ecx, 0xbb3ff23
ret
Function at 0x408151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x408160
pop dword [ebp - 0xc]
mov eax, 0xe35c239e
add eax, 0x1ce45dc2
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x401b5
push 0
mov eax, 0xb3a8b11c
add eax, 0x4c99a0fc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x3266f3e5
sub ecx, 0x3266a29e
mov esi, eax
mov edi, 0x8c3bdb1
add edi, 0xf77f964f
add edi, dword [ebp - 0xc]
mov ebx, 0xe44e908d
xor dword [ebp - 8], 0x1def816a
mov edx, dword [edi]
add dword [ebp - 8], 0x4ec1f746
add edx, ebx
xor dword [ebp - 4], eax
mov dword [esi], edx
add esi, 0x76635b8d
add esi, 0x899ca477
add edi, 0xcbe3b3f3
add edi, 0x341c4c11
loop 0x4081b9
add eax, 0x6228e84c
add eax, 0x9dd84fa3
mov ebx, eax
add eax, 0xcd0cf412
sub eax, 0xcd0cf40d
mov ecx, 0x7478ad21
add ecx, 0x8bc752df
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x405d6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x405d79
pop dword [ebp - 0x3c]
mov eax, 0x1d8e8d45
sub eax, 0x1d4e2fcc
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xe4c136ec
sub dword [ebp - 0x4c], 0x966ef1a1
mov dword [ebp - 0x48], 0x90ef8dc6
sub dword [ebp - 0x48], 0x5ebc4181
mov dword [ebp - 0x44], 0x903de657
add dword [ebp - 0x44], 0xbc0e5dd7
mov dword [ebp - 0x40], 0x9a10cb7c
sub dword [ebp - 0x40], 0x9a10cb7c
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xc8cc74d0
add dword [ebp - 0x4c], 0xaba5f486
mov dword [ebp - 0x48], 0x57cf3796
sub dword [ebp - 0x48], 0x1662d621
mov dword [ebp - 0x44], 0x640c89a6
add dword [ebp - 0x44], 0xff62e2c6
mov dword [ebp - 0x40], 0x9fe15ca0
sub dword [ebp - 0x40], 0x9fe15ca0
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xa58da73f
sub eax, 0xa54d371f
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x35beb
push 0
call eax
mov ecx, 0xe2ea9822
add ecx, 0x1d15a7fd
xor esi, esi
add esi, eax
mov edx, 0x3cf4733b
add edx, 0xc34c54c5
add edx, dword [ebp - 0x3c]
mov ebx, 0xe89c047f
add ebx, 0x2747ed11
mov dword [ebp - 0x30], 0x15647f0
mov edi, dword [edx]
xor dword [ebp - 4], edx
sub edi, ebx
mov dword [ebp - 0xc], 0x10cdbe6b
mov dword [esi], edi
mov dword [ebp - 0x24], 0x3dea2c80
add esi, 4
add edx, 0x3d317fd7
sub edx, 0x3d317fd3
loop 0x405e98
add eax, 0xada1e83d
add eax, 0x525f0b12
mov ebx, eax
add eax, 0xd07468ca
sub eax, 0xd07468c5
mov ecx, 0xbcc58c30
add ecx, 0x437a73d0
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401645
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401654
pop dword [ebp - 0x34]
mov eax, 0x59de5c23
sub eax, 0x599e45cf
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbfda401f
add dword [ebp - 0x44], 0x8e78052c
mov dword [ebp - 0x40], 0x388518fd
add dword [ebp - 0x40], 0xf9ae3348
mov dword [ebp - 0x3c], 0x5f83417e
add dword [ebp - 0x3c], 0xecc902b0
mov dword [ebp - 0x38], 0x9c3848b
add dword [ebp - 0x38], 0xf63c7b75
lea eax, [ebp - 0x44]
push eax
mov eax, 0x447acf86
sub eax, 0x4439ff3a
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x7f1839f1
add dword [ebp - 0x44], 0xf55a2f65
mov dword [ebp - 0x40], 0xd47f3dc1
add dword [ebp - 0x40], 0x6ced23b4
mov dword [ebp - 0x3c], 0x57204861
add dword [ebp - 0x3c], 0xc4f240b
mov dword [ebp - 0x38], 0x4be9a2cb
add dword [ebp - 0x38], 0xb4165d35
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xb7cf781e
add eax, 0x4871582a
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37425
push 0
call eax
mov ecx, 0xe180c3bf
sub ecx, 0xe180849a
xor ebx, ebx
add ebx, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x34]
mov edi, 0xf2e99f9a
add edi, 0x8def3e8f
xor dword [ebp - 0x2c], 0x65119177
mov esi, dword [edx]
sub dword [ebp - 0x18], edi
xor esi, edi
add dword [ebp - 4], ecx
mov dword [ebx], esi
sub dword [ebp - 0xc], ebx
add ebx, 4
add edx, 0xe71cae16
add edx, 0x18e351ee
loop 0x401772
add eax, 0xef67
mov ebx, eax
add eax, 0xa8221b8e
sub eax, 0xa8221b89
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x401640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x405188], 0x30
mov dword [0x40518c], 0x1000
mov dword [0x405190], 0x401bb0
mov dword [0x405194], 0
mov dword [0x405198], 0
push dword [0x405050]
pop dword [0x40519c]
mov dword [0x4051a8], 0x10
mov dword [0x4051b0], 0x405092
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x4051a0], eax
mov dword [0x4051b4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x4051a4], eax
push 0x405188
call sub.user32.dll_RegisterClassExA
call fcn.004012f0
push 0
push dword [0x405050]
push 0
push 0
push pe_nt_image_headers32
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Form
push str.proga
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x40517c], eax
push 0
push dword [0x40517c]
call sub.user32.dll_ShowWindow
push dword [0x40517c]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x4051b8
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401745
push 0x4051b8
call sub.user32.dll_TranslateMessage
push 0x4051b8
call sub.user32.dll_DispatchMessageA
jmp 0x40171b
mov eax, dword [0x405218]
lea ecx, [0x405050]
add eax, dword [0x40510e]
call eax
mov eax, dword [0x4051c0]
push eax
call sub.kernel32.dll_ExitProcess
mov esp, ebp
pop ebp
ret