joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445d10
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.4869e283049b9bfdf02fea73c5834ba
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x445d41
jmp 0x445e45
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0xa9
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x48
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xc9
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x51
mov edx, 0xe0
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x445d99
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x445db9
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x445d90
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x445de9
jmp 0x445e45
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x445e0d
jmp 0x445e45
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x445e50
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.b0c197afcb37838db
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x445e81
jmp 0x445f82
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0x4c
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0xb0
xor edx, edx
div dword [ebp - 0x20]
add edx, 0x35
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x79
mov edx, 0xf1
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x445ed6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x445ef6
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x445ecd
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x445f26
jmp 0x445f82
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x445f4a
jmp 0x445f82
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x446000
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.86d9be4fd81d680b469f
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x446031
jmp 0x446135
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0x3a
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x4d
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xcd
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x15c
mov edx, 0xce
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x446089
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x4460a9
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x446080
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4460d9
jmp 0x446135
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4460fd
jmp 0x446135
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x446220
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0xb1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44624a
jmp 0x446294
cmp dword [ebp - 4], 0xa
jbe 0x446264
mov ecx, dword [ebp - 4]
push ecx
push str.8f23b7a7b9d7cc8123b75fd59811
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446294
push str.a2753dd1cf3fdbcd318304a5b
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x44628a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456994
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446294
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret

Function at 0x4464b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x94
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4464da
jmp 0x446527
cmp dword [ebp - 4], 0xed
jbe 0x4464f7
mov ecx, dword [ebp - 4]
push ecx
push str.d9599c85580345dd0d33aedd63c1
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446527
push str.a89d321f3745c9291c5dc18149abce
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x44651d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456a40
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446527
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret

Function at 0x446540
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x6f
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x446567
jmp 0x4465b1
cmp dword [ebp - 4], 0x36
jbe 0x446581
mov ecx, dword [ebp - 4]
push ecx
push str.91e715a53ea16ce714cb79dbd5dd
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4465b1
push str.cde392ab6dd540b17879a7f55d5d98
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4465a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456aa0
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4465b1
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret
Function at 0x4465c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x79
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4465e7
jmp 0x446634
cmp dword [ebp - 4], 0x9c
jbe 0x446604
mov ecx, dword [ebp - 4]
push ecx
push str.67bbc4b3812312a3c713b6cf68d1
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446634
push str.d3cdc6a334172dc1bf1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x44662a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456af4
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x446634
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret

Function at 0x446650
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x58
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x446677
jmp 0x4466c1
cmp dword [ebp - 4], 0x71
jbe 0x446691
mov ecx, dword [ebp - 4]
push ecx
push str.9503ed458c0722814ab5c393e
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4466c1
push str.7165e58f913305bf1215be119a83e
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4466b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetCurrentDirectory_failed___d_
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4466c1
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret
Function at 0x449600
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4612c0]
jne 0x44960a
repz ret
jmp fcn.00449bf1
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x39d03db5
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x473b55c7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4011a9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
lea eax, [ecx + eax - 0x104]
mov ecx, dword [ebp - 0xc]
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
mov dword [ebp - 8], eax
lea eax, [edx + ecx - 0x61]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
mov eax, dword [ebp - 4]
push 0
add eax, 0x33
push 0
push eax
mov eax, dword [ebp - 8]
add eax, 0x82
push eax
push edi
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
mov eax, dword [ebp - 4]
push 0
add eax, 0x3b
push 0
push eax
mov eax, dword [ebp - 8]
add eax, 0x92
push eax
push edi
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
add eax, 0x104
push ecx
cdq
sub eax, edx
push ebx
sar eax, 1
add dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
mov eax, dword [ebp - 4]
push 0
sub eax, dword [ebp - 0xc]
push 0
add eax, dword [ebp - 0x14]
add eax, 0x4f
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x105
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x120]
push ecx
push 0x3ee
push esi
call fcn.00401856
push 0x3ed
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push 1
push 0
mov eax, dword [ebp - 4]
push 0
add eax, 0x53
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x105
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x120]
push ecx
push 0x3ed
push esi
call fcn.00401856
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401a37
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
xor edi, edi
cmp dword [esp + 0x1c], edi
je 0x401a48
mov edi, 1
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
cmp eax, dword [0x402198]
je 0x401a79
mov edi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x402198], eax
call ebx
mov dword [0x40219c], 0
mov dword [0x4021a0], eax
jmp 0x401a7f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x40219c], 0x14
jb 0x401a97
mov dword [0x40219c], 0
mov edi, 1
test edi, edi
je 0x401bb5
call ebx
sub eax, dword [0x4021a0]
mov ecx, 0x3e8
sub edx, edx
mov ebx, 0x3c
div ecx
sub edx, edx
div ebx
mov edi, eax
cmp edi, dword [0x4021a4]
jne 0x401ad0
cmp dword [0x4021a4], 0
jne 0x401bb5
mov ecx, 0x3c
mov eax, edi
sub edx, edx
mov ebp, ecx
div ecx
mov ebx, edx
mov eax, edi
sub edx, edx
mov dword [0x4021a4], edi
div ebp
mov edi, eax
xor ebp, ebp
push dword [esi + 0xc]
push 0x4b3
call fcn.00401bc2
add esp, 8
mov esi, eax
test edi, edi
jne 0x401b09
test ebx, ebx
je 0x401b61
test ebx, ebx
je 0x401b45
test edi, edi
je 0x401b37
mov eax, 1
cmp edi, 1
jbe 0x401b29
cmp eax, ebx
sbb eax, eax
and eax, 2
add eax, 0x4b9
jmp 0x401b54
cmp eax, ebx
sbb eax, eax
and eax, 2
add eax, 0x4b8
jmp 0x401b54
mov eax, 1
cmp eax, ebx
mov eax, 0x4b5
jmp 0x401b51
mov eax, 1
cmp eax, edi
mov eax, 0x4b7
adc eax, 0xffffffff
push ebx
push edi
push eax
call fcn.00401bc2
add esp, 0xc
mov ebp, eax
push ebp
push esi
push 0x4bc
call fcn.00401bc2
add esp, 0xc
mov edi, eax
test esi, esi
je 0x401b81
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x401b87
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x401b8e
push ebp
call esi
push edi
push 0x3ea
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [0x402180], 0
je 0x401baf
mov eax, dword [0x402180]
push eax
call esi
mov dword [0x402180], edi
pop ebp
inc dword [0x40219c]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40e393
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x34ca
sub eax, 0x34ca
xor eax, dword [ebp + 0x403d4a]
cmp eax, 0x4e20
jbe 0x40e40e
call fcn.0040c1d4
jb 0x40e40e
push 0
pop ebx
add ebx, dword [ebp + 0x403e90]
movzx edx, word [ebx]
xor edx, 0x5a4d
je 0x40e3cf
push 0xe918
pop ecx
test ecx, ecx
jne 0x40e409
cmp word [ebx + 0x3c], 0
jne 0x40e3d8
jmp 0x40e409
mov eax, 0
add eax, dword [ebx + 0x3c]
cmp eax, dword [ebp + 0x403d4a]
ja 0x40e409
add eax, ebx
movzx edx, word [eax]
xor edx, 0x4550
je 0x40e3f7
jmp 0x40e409
cmp dword [eax + 0x4c], 0x43617965
jne 0x40e402
jmp 0x40e409
call fcn.0040e1be
jb 0x40e40e
call fcn.0040c269
ret

Function at 0x40893e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
and edx, edx
mov edx, edi
call fcn.00408962
xor dword [esi], ebx
inc edx
add esi, 1
sub edx, edx
cmp esi, eax
jne fcn.0040893e
or edx, edi
and edi, edx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x31372305
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xf2005df
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462f3b
Capabilities:
Encode data using xor

Disassembly:
push edi
cmp esi, esi
xchg esp, eax
sbb dl, byte [0x5aa8147e]
invalid
ja 0x462f2d
jle 0x462f4e
aam 0x75
push 0x5e
or ebp, dword [ebx]
xchg ecx, eax
and eax, 0xb535f505
fistp dword [ebp - 0x14]
xor byte [edx], 0xcb
adc byte [ebp - 0x73361931], 0x50
xor al, 0x9c
fimul dword [esi + 0xe]
and dword [edi + edx*4], ecx
inc eax
xor edx, esp
mov edx, 0x87a7a4e2
aas
lodsb al, byte [esi]
cmp eax, 0x2c7470ca
dec edx
jae 0x462f50
retf
add eax, dword [ebp - 7]
push es
int3

Function at 0x4c6f71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce378
cmp edx, dword [eax]
je 0x4c6f93
add eax, 8
inc ecx
cmp eax, 0x4ce408
jl 0x4c6f84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce378]
jne 0x4c70c1
mov eax, dword [0x4d3da0]
cmp eax, 1
je 0x4c709b
test eax, eax
jne 0x4c6fc4
cmp dword [0x4ce2a4], 1
je 0x4c709b
cmp edx, 0xfc
je 0x4c70c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6ffb
lea eax, [ebp - 0x1a4]
push 0x4cc6c0
push eax
call fcn.004c7950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7de0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c703e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7de0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cc6bc
push edi
call fcn.004c9cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cc6a0
push eax
call fcn.004c7950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7960
lea eax, [ebp - 0xa0]
push 0x4cc69c
push eax
call fcn.004c7960
push dword [esi + 0x4ce37c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7960
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cc674
push eax
call fcn.004c9c24
add esp, 0x2c
pop edi
jmp 0x4c70c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce37c]
push 0
push eax
push dword [esi]
call fcn.004c7de0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret