joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5076a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x507915
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55f9f4], 0
je 0x5078fa
mov ebx, dword [0x55f9f4]
call fcn.00404328
mov eax, ebx
call fcn.00404648
or edx, 0xffffffff
call fcn.004043d4
xor eax, eax
push ebp
push 0x5078f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x55f9f4]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x50780a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x55f9f4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x55f9f4]
mov edx, dword [0x4ec650]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x4fd238
mov eax, dword [0x55f9f4]
call fcn.005063f8
mov eax, dword [0x55f9f4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x55f9f4]
mov ebx, dword [eax + 0x38]
cmp byte [0x55fa3c], 0
je 0x5077aa
test ebx, ebx
je 0x5077aa
xor edi, edi
test ebx, ebx
je 0x5077aa
cmp dword [ebx + 4], 0xfffffffe
jne 0x5077a3
inc edi
push 0x507930
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040d140
push dword [ebp - 0x14]
push 0x507970
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004066c0
mov eax, dword [ebp - 0x10]
call fcn.00406194
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x507768
mov eax, dword [0x55f9f4]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x5077e1
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov edx, dword [ebx + 0xc]
mov ecx, ebx
mov eax, dword [0x55f9f4]
call fcn.005066b4
mov ebx, esi
test ebx, ebx
jne 0x5077b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507811
mov eax, dword [0x55f9f4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x55f9f4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50791c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406100
ret
Function at 0x52c7dc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd20
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.004060f0
xor eax, eax
push ebp
push 0x52c9fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.004036f4
mov esi, eax
lea eax, [ebp - 0x2d0]
xor ecx, ecx
mov edx, 0x2b4
call fcn.00403658
cmp dword [ebp + 0x20], 0
je 0x52c897
cmp dword [ebp - 0x10], 0
je 0x52c897
mov eax, dword [ebp + 0x20]
call fcn.0040d8bc
test al, al
jne 0x52c84d
mov eax, dword [ebp + 0x20]
call fcn.0040d904
test al, al
je 0x52c870
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00406194
push eax
call sub.shell32.dll_SHGetFileInfoW
jmp 0x52c891
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.00406194
push eax
call sub.shell32.dll_SHGetFileInfoW
mov esi, dword [ebp - 0x2cc]
cmp byte [ebp + 0x1c], 0
je 0x52c8be
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x52ca0c
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
jmp 0x52c8dd
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x52ca0c
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call sub.comctl32.dll_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00408c84
test bl, bl
je 0x52c925
cmp byte [ebp + 0x14], 0
jne 0x52c925
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00439dc0
push eax
push esi
push edi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 4]
call fcn.0052d2e0
test byte [ebp + 0x14], bl
je 0x52c9e4
mov dl, 1
mov eax, dword [0x437334]
call fcn.0043e0d4
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x52c9dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0043e9ec
call fcn.00439dc0
push eax
push esi
push edi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2dc], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.00403498
add eax, dword [ebp - 8]
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.00403498
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp - 4]
call fcn.0052c6fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c9e4
mov eax, dword [ebp - 0x1c]
call fcn.00403d8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ca01
lea eax, [ebp + 0x20]
call fcn.004060f8
ret
Function at 0x53881c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
cmp byte [ebx + 0x2aa], 0
je 0x538835
xor esi, esi
jmp 0x53883c
movzx esi, byte [ebx + 0x296]
xor ebp, ebp
mov eax, dword [ebx + 0x270]
test eax, eax
je 0x53884e
movzx edi, byte [eax + 0x5e]
jmp 0x538853
mov edi, 0xff
movzx eax, byte [ebx + 0x29c]
push eax
mov eax, edi
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x538876
mov dword [esp + 4], 1
call sub.kernel32.dll_GetTickCount_1
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebx + 0x298]
jl 0x5388b2
call sub.kernel32.dll_GetTickCount_1
mov ebp, eax
add esi, dword [esp + 4]
cmp edi, esi
jge 0x53889b
mov esi, edi
mov eax, esi
mov byte [ebx + 0x296], al
push ebx
push fcn.0053839c
mov eax, dword [esp + 8]
call fcn.0042f7b0
push 2
call sub.kernel32.dll_Sleep_1
mov eax, dword [esp]
cmp byte [eax + 0xd], 0
jne 0x5388ec
mov eax, dword [0x558e00]
mov eax, dword [eax]
cmp byte [eax + 0xa0], 0
jne 0x5388ec
cmp dword [ebx + 0x270], 0
je 0x5388ec
mov eax, dword [0x558e00]
mov eax, dword [eax]
test byte [eax + 0x1c], 8
jne 0x5388ec
cmp edi, esi
jg 0x538876
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x538a28
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov esi, eax
movzx edi, byte [esi + 0x296]
xor ebp, ebp
mov eax, dword [esi + 0x270]
test eax, eax
je 0x538a4a
movzx ecx, byte [eax + 0x5e]
jmp 0x538a4f
mov ecx, 0xff
movzx eax, byte [esi + 0x29c]
push eax
mov eax, ecx
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp], eax
cmp dword [esp], 0
jne 0x538a6f
mov dword [esp], 1
call sub.kernel32.dll_GetTickCount_1
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esi + 0x298]
jl 0x538aa9
call sub.kernel32.dll_GetTickCount_1
mov ebp, eax
sub edi, dword [esp]
cmp edi, dword [esp]
jge 0x538a94
xor edi, edi
mov eax, edi
mov byte [esi + 0x296], al
push esi
push fcn.0053845c
mov eax, ebx
call fcn.0042f7b0
mov eax, dword [ebx + 0x44]
mov edx, 2
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
cmp byte [eax + 0xd], 0
jne 0x538af6
mov edx, dword [0x558e00]
mov edx, dword [edx]
cmp byte [edx + 0xa0], 0
jne 0x538af6
mov edx, dword [0x558e00]
mov edx, dword [edx]
test byte [edx + 0x1c], 8
jne 0x538af6
cmp dword [eax + 0x4c], 1
je 0x538af6
test edi, edi
jg 0x538a6f
push esi
mov edx, dword [esi]
mov edx, dword [edx + 0xf8]
push edx
call fcn.0042f4a0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x544a10
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov eax, 0xedb88320
xor esi, esi
mov ebx, dword [esp]
mov edx, esi
mov ecx, 0xfffffff8
mov edi, edx
and edi, 1
dec edi
jne 0x544a36
shr edx, 1
xor edx, eax
jmp 0x544a38
shr edx, 1
inc ecx
jne 0x544a28
mov dword [ebx], edx
inc esi
add ebx, 4
cmp esi, 0x100
jne 0x544a21
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x544ac4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x544b38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x55cb50]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406308
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00414d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544b3f
lea eax, [ebp - 0x20c]
call fcn.004060f8
ret

Function at 0x544b44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x544bb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406308
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.00414d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544bba
lea eax, [ebp - 0x210]
call fcn.004060f8
ret

Function at 0x54a1c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x54a2b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x558a90]
cmp dword [eax], 6
jl 0x54a29c
call fcn.00549e68
mov ebx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040d140
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x54a2d0
call fcn.004065dc
mov eax, dword [ebp - 4]
call fcn.00406194
push eax
call sub.kernel32.dll_OutputDebugStringW
cmp ebx, 3
jge 0x54a244
mov eax, dword [0x558a90]
cmp dword [eax], 0xa
jge 0x54a244
cmp dword [0x5587bc], 0
je 0x54a231
call dword [0x5587bc]
cmp dword [0x5587c0], 0
je 0x54a29c
push 2
call dword [0x5587c0]
jmp 0x54a29c
cmp dword [0x5587c0], 0
je 0x54a257
push 2
call dword [0x5587c0]
jmp 0x54a29c
xor eax, eax
mov dword [0x59ffc0], eax
push 0x54a318
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [0x59ffc0], eax
cmp dword [0x59ffc0], 0xffffffff
je 0x54a28b
push 0x54a330
mov eax, dword [0x59ffc0]
push eax
call fcn.00409044
mov dword [0x5587c0], eax
cmp dword [0x5587c0], 0
je 0x54a29c
push 2
call dword [0x5587c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a2be
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406100
ret
Function at 0x54ca50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x54a3b8
call fcn.00408a48
xor eax, eax
push ebp
push 0x54cb9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x59ffc4
mov eax, 0x54cbb4
call fcn.004877b8
test al, al
je 0x54cb81
mov edx, 0x59ffc8
mov eax, 0x54cbcc
call fcn.0048780c
test al, al
jne 0x54cab4
push 0x54cbd8
push 0x54cbf8
call sub.user32.dll_FindWindowW
mov dword [0x59ffc8], eax
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004062b4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x54cc1c
call fcn.004065dc
mov eax, dword [ebp - 0x14]
call fcn.004e8754
call fcn.004e88b4
test al, al
je 0x54cb24
mov eax, dword [0x558e00]
mov eax, dword [eax]
call fcn.00485610
mov eax, dword [0x558e00]
mov eax, dword [eax]
xor edx, edx
call fcn.00487174
mov ecx, dword [0x5589b4]
mov eax, dword [0x558e00]
mov eax, dword [eax]
mov edx, dword [0x545b68]
call fcn.00485628
mov eax, dword [0x558e00]
mov eax, dword [eax]
call fcn.00485778
jmp 0x54cb81
call fcn.004e8f7c
test al, al
je 0x54cb77
mov eax, 0x54cc34
call fcn.00491ca8
mov eax, dword [0x558e00]
mov eax, dword [eax]
call fcn.00485610
mov eax, dword [0x558e00]
mov eax, dword [eax]
xor edx, edx
call fcn.00487174
mov ecx, dword [0x558a38]
mov eax, dword [0x558e00]
mov eax, dword [eax]
mov edx, dword [0x547e34]
call fcn.00485628
mov eax, dword [0x558e00]
mov eax, dword [eax]
call fcn.00485778
jmp 0x54cb81
mov eax, dword [0x59ffc8]
call fcn.00491ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cba3
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406100
ret
Function at 0x42e000
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
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
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
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x42a403f2
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5ec00268
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x4017f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40408e], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Monster
push str.Uhhh
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401838
xor eax, eax
jmp 0x401853
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401a7d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401aa6
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401a9e
cmp al, 0x22
jne 0x401a92
cmp byte [esi], 0x22
jne 0x401ab0
inc esi
jmp 0x401ab0
cmp al, 0x20
jle 0x401ab0
inc esi
cmp byte [esi], 0x20
jg 0x401aaa
mov al, byte [esi]
test al, al
je 0x401aba
cmp al, 0x20
jle 0x401aa3
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402e16
push 0x404004
push section..data
call fcn.00402dfc
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x401aea
movzx eax, word [ebp - 0x14]
jmp 0x401aed
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401130
mov esi, eax
call fcn.00402e2e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x6d6124
push eax
push dword fs:[0]
popal
insd dword es:[edi], dx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffb7
dec edx
mul dword [esi - 0x69]
invalid
push edx
inc edi
aas
int1
lds esi, [eax - 0x386d9885]
out 0xf1, eax
xchg edx, eax
cmp al, 0x61
sahf
jmp 0xb6298785
Function at 0x401150
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
test ebx, ebx
je 0x40119e
push 0x10
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x40b46c], eax
test eax, eax
je 0x40119e
push 0
mov dword [eax + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x40b46c]
mov dword [ecx], eax
mov eax, dword [0x40b46c]
cmp dword [eax], 0
jne 0x4011b8
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0x3c
push 0x3e
push 0
call fcn.00401660
add esp, 0x10
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4011e3
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [0x40b46c]
push esi
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x40b46c]
cmp dword [eax + 0xc], 0
ja 0x4011f5
mov dword [eax + 0xc], 0x60
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
cmp eax, 1
jle 0x4012b5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x40125f
mov eax, dword [esi + 4]
cmp word [eax], 0x40
jne 0x40125f
add eax, 2
xor edi, edi
mov dword [ebp - 8], eax
xor esi, esi
push dword [esi + 0x4091b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40127c
mov eax, dword [ebp - 8]
add esi, 0xc
inc edi
cmp esi, 0x18
jb 0x401242
push 0
push 0x3e8
push 0x3e9
push 0
call fcn.00401660
add esp, 0x10
mov esi, 3
jmp 0x4012c1
mov esi, dword [ebp - 0xc]
cmp esi, 2
jg 0x401287
push edi
jmp 0x4012b7
push 0x4091c8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40125f
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
lea eax, [esi - 2]
push eax
call fcn.00406180
mov esi, eax
add esp, 8
cmp esi, 3
jne 0x4012c1
jmp 0x40125f
push 0
call fcn.00401000
mov esi, eax
add esp, 4
push dword [0x40b46c]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40b46c]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, dword [ebp + 8]
test esi, esi
je 0x4014aa
mov ebx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4014aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x4014aa
mov edx, ebx
and edx, 0xf
jbe 0x401460
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x401452
movzx eax, word [ecx]
lea esi, [eax + 1]
test eax, eax
je 0x4014aa
lea eax, [esi + esi]
push eax
mov eax, dword [0x40b46c]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
test eax, eax
je 0x4014aa
push esi
push eax
mov eax, dword [0x40b46c]
push ebx
push dword [eax]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jg 0x4014b2
push dword [edi]
mov eax, dword [0x40b46c]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4042d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x24
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
jne 0x4042ff
push 0x10
push 0x3c
push 0x157
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop esi
pop ebx
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
push 0x1d
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404337
push edi
call fcn.004016d0
add esp, 4
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x404337
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
push 0x154
push 0x15d
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x25
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
jne 0x40438f
push 0x10
push 0x3c
push 0x157
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop esi
pop ebx
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
push 0xe
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4043c7
push edi
call fcn.004016d0
add esp, 4
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4043c7
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
push 0x154
push 0x15e
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret