joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, 8
mov dword [ebp - 0x3c], 0x3c
cmp dword [eax + 0x14], ecx
jb 0x401a7c
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x240
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x42b7ec
cmp dword [eax + 0x14], ecx
jb 0x401aa3
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x401aa6
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0x1d
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [ebp + 0x10], 0
je 0x401ae5
mov eax, dword [ebp - 4]
test eax, eax
je 0x401ae5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x402310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x434c18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push eax
push 0xc8
mov dword [ebp - 0x1b4], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1b0]
push esi
push ecx
call fcn.00401d80
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40235f
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402361
push edi
lea edi, [ebp - 0x194]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402380
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402380
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp - 0x19c], 8
rep movsb byte es:[edi], byte [esi]
pop edi
jb 0x4023b5
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.004119f5
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023d1
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x194]
push ecx
mov ecx, ebx
call fcn.00408cc0
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00412c12
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4290e3
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x434c18]
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
lea eax, [ebp - 0x2c]
push 5
push eax
call fcn.00401af0
add esp, 8
push eax
mov ecx, 0x434400
mov dword [ebp - 4], 0
call fcn.0040af50
or esi, 0xffffffff
mov ebx, 8
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], ebx
jb 0x4027da
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004119f5
add esp, 4
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.00401af0
add esp, 8
push eax
mov ecx, 0x4344e0
mov dword [ebp - 4], 1
call fcn.0040af50
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], ebx
jb 0x40280e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004119f5
add esp, 4
lea ecx, [ebp - 0x2c]
push 2
push ecx
call fcn.00401af0
add esp, 8
push eax
mov ecx, 0x434470
mov dword [ebp - 4], 2
call fcn.0040af50
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], ebx
jb 0x402842
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004119f5
add esp, 4
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00401af0
add esp, 8
push eax
mov ecx, 0x4344a8
mov dword [ebp - 4], 3
call fcn.0040af50
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], ebx
jb 0x402876
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004119f5
add esp, 4
lea edx, [ebp - 0x2c]
push 3
push edx
call fcn.00401af0
add esp, 8
push eax
mov ecx, 0x43448c
mov dword [ebp - 4], 4
call fcn.0040af50
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], ebx
jb 0x4028aa
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004119f5
add esp, 4
push 0x11c
lea ecx, [ebp - 0x164]
push 0
push ecx
call fcn.00412330
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
mov dword [ebp - 0x164], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 0x11c
lea eax, [ebp - 0x48]
mov edi, esp
mov ecx, 0x47
lea esi, [ebp - 0x164]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401b80
add esp, 0x120
push eax
mov ecx, 0x43441c
mov dword [ebp - 4], 5
call fcn.0040af50
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], ebx
jb 0x402925
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004119f5
add esp, 4
mov eax, dword [0x43449c]
xor edx, edx
push edx
push 0x42be20
push eax
push edx
mov ecx, 0x43448c
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00405820
test eax, eax
je 0x402990
mov ecx, dword [0x434480]
push 0
push 0x42be24
push ecx
push 0
mov ecx, 0x434470
call fcn.00405820
test eax, eax
je 0x402990
mov edx, dword [0x4344b8]
push 0
push 0x42be28
push edx
push 0
mov ecx, 0x4344a8
call fcn.00405820
test eax, eax
jne 0x4029ac
push 0
push 0x42be2c
push 0x42be80
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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.00412c12
mov esp, ebp
pop ebp
ret
Function at 0x406e20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428aab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434c18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041183e
push 4
mov dword [ebp - 4], 0
call fcn.0041352d
mov edi, eax
add esp, 4
test edi, edi
je 0x406ea0
call fcn.00411414
mov dword [edi], eax
call fcn.004111d3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411108
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406e96
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411130
jmp 0x406ea2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x40a620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x434c18]
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
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40a741
cmp byte [edi + 0x49], bl
je 0x40a741
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40a735
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40a695
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40a6ad
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40a6d6
dec eax
je 0x40a6da
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40a730
jmp 0x40a73c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40a6ea
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40a713
cmp ebx, 0x10
jae 0x40a6f9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00413fa5
add esp, 0x10
cmp esi, eax
jne 0x40a72d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40a739
test esi, esi
jne 0x40a6a1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408a50
jmp 0x40a69b
lea ecx, [ebp - 0x2c]
call fcn.00406ca0
xor al, al
jmp 0x40a743
lea ecx, [ebp - 0x2c]
call fcn.00406ca0
mov al, 1
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.00412c12
mov esp, ebp
pop ebp
ret
Function at 0x40ec90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x434c18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x3bc
xor edi, edi
lea eax, [esi + 8]
push edi
push eax
mov dword [0x436eec], esi
call fcn.00412330
push 0x110
lea ecx, [ebp - 0x114]
push edi
push ecx
mov dword [esi + 0x3d0], edi
mov dword [esi + 0x3d4], 1
mov dword [esi + 0x3d8], 1
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], 1
mov dword [esi + 0x3dc], edi
mov dword [esi + 0x3f4], edi
mov dword [esi + 0x40c], edi
mov dword [esi + 0x3cc], edi
mov dword [esi + 0x418], edi
mov dword [ebp - 0x118], 0x114
call fcn.00412330
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40ed5f
cmp dword [ebp - 0x114], 5
jb 0x40ed5f
mov eax, 1
pop edi
mov dword [esi + 0x3e0], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e0], edi
pop edi
xor ecx, ebp
pop esi
call fcn.00412c12
mov esp, ebp
pop ebp
ret

Function at 0x40f8d0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434c18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40f91d
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x40f7a0
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c12
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push 5
mov dword [ebp - 0x28], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x40f997
mov eax, dword [ebp - 0x1c]
cmp eax, 3
ja case.default.0x40f93c
jmp dword [eax*4 + 0x40f9c8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
pop edi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi], edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c12
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esi + 4], ecx
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
pop edi
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c12
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub edx, 0x96
sub eax, 0x1e
mov dword [esi + 4], eax
mov dword [esi], edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00412c12
mov esp, ebp
pop ebp
ret
Function at 0x412c12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434c18]
jne 0x412c1c
repz ret
jmp fcn.0041a61a

Function at 0x41d5a9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434c18]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00418574
and dword [ebp - 0x14], 0
cmp dword [0x438368], 0
mov dword [ebp - 0x18], eax
jne 0x41d65c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d704
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42ee04
push ebx
call edi
test eax, eax
je 0x41d704
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x438368], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43836c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x438370], eax
call edi
push eax
call esi
mov dword [0x438378], eax
test eax, eax
je 0x41d65c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x438374], eax
mov eax, dword [0x438374]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d6b5
cmp dword [0x438378], ecx
je 0x41d6b5
push eax
call esi
push dword [0x438378]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d6b5
test ebx, ebx
je 0x41d6b5
call edi
test eax, eax
je 0x41d6ac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d6ac
test byte [ebp - 8], 1
jne 0x41d6b5
or dword [ebp + 0x10], 0x200000
jmp 0x41d6e8
mov eax, dword [0x43836c]
cmp eax, dword [ebp - 0x18]
je 0x41d6e8
push eax
call esi
test eax, eax
je 0x41d6e8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d6e8
mov eax, dword [0x438370]
cmp eax, dword [ebp - 0x18]
je 0x41d6e8
push eax
call esi
test eax, eax
je 0x41d6e8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438368]
call esi
test eax, eax
je 0x41d704
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d706
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412c12
leave
ret
Function at 0x467930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
push edi
or ebp, 0xffffffff
jmp 0x467952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467948
mov eax, 1
add ebx, ebx
jne 0x46796b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46797c
jne 0x46799b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46799b
dec eax
add ebx, ebx
jne 0x467988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467960
add ebx, ebx
jne 0x467997
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4679ed
xor ecx, ecx
sub eax, 3
jb 0x4679b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467a22
sar eax, 1
mov ebp, eax
jmp 0x4679be
add ebx, ebx
jne 0x4679be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46798c
inc ecx
add ebx, ebx
jne 0x4679cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46798c
add ebx, ebx
jne 0x4679d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4679ce
jne 0x4679ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4679ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x467a0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4679fe
jmp 0x46794e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x467a0c
add edi, ecx
jmp 0x46794e
pop esi
mov edi, esi
mov ecx, 0xcb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x467a2a
cmp byte [edi], 0xb
jne 0x467a2a
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 0x467a2f
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x467aa7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6777c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x677b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x467a5c
mov ecx, edi
jns 0x467a8b
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 + 0x677bc]
or eax, eax
je 0x467aa1
mov dword [ebx], eax
add ebx, 4
jmp 0x467a79
call dword [esi + 0x677cc]
mov ebp, dword [esi + 0x677c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x467adb
sub esp, 0xffffff80
jmp 0x401a64
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x60564af5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x52360777
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0xb01c0d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b01c0d
ret
Function at 0x401159
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 1]
test eax, eax
jle 0x401184
mov edx, eax
push esi
xor ecx, ecx
mov eax, dword [ebp + 8]
lea eax, [eax + ecx*2]
mov esi, 0x3c5b
xor word [eax], si
inc ecx
cmp ecx, 0x32
jl 0x40116c
dec edx
jne 0x40116a
pop esi
pop ebp
ret
Function at 0x40484c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e010]
jne 0x404856
repz ret
jmp fcn.004054fd

Function at 0x408746
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407541
and dword [ebp - 4], 0
cmp dword [0x40fd00], 0
mov ebx, eax
jne 0x4087f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4088a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4088a8
push eax
call fcn.004074cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fd00], eax
call esi
push eax
call fcn.004074cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fd04], eax
call esi
push eax
call fcn.004074cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40fd08], eax
call esi
push eax
call fcn.004074cf
pop ecx
mov dword [0x40fd10], eax
test eax, eax
je 0x4087f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004074cf
pop ecx
mov dword [0x40fd0c], eax
mov eax, dword [0x40fd0c]
cmp eax, ebx
je 0x40884f
cmp dword [0x40fd10], ebx
je 0x40884f
push eax
call fcn.0040754a
push dword [0x40fd10]
mov esi, eax
call fcn.0040754a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40884f
test edi, edi
je 0x40884f
call esi
test eax, eax
je 0x408846
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408846
test byte [ebp - 0xc], 1
jne 0x40884f
or dword [ebp + 0x10], 0x200000
jmp 0x408888
mov eax, dword [0x40fd04]
cmp eax, ebx
je 0x408888
push eax
call fcn.0040754a
pop ecx
test eax, eax
je 0x408888
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408888
mov eax, dword [0x40fd08]
cmp eax, ebx
je 0x408888
push eax
call fcn.0040754a
pop ecx
test eax, eax
je 0x408888
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fd00]
call fcn.0040754a
pop ecx
test eax, eax
je 0x4088a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4088aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
push 0
push 3
push 0
mov edi, ecx
push 0
push 0x80000000
push dword [edi + 0x16]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
jne 0x402304
push dword [edi + 0x16]
push str.Failed_to_open__s._Press_Escape_to_exit._n
call fcn.00401010
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0xc]
mov byte [edi + 0x15], 0
push eax
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0xe000
je 0x4023af
cmp eax, 0x1a000
je 0x402343
push str.Unsupported_file_size__n
call fcn.00401010
add esp, 4
xor bl, bl
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1a000
call fcn.00409124
add esp, 4
mov dword [edi + 0x11a], eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x1a000
push dword [edi + 0x11a]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402393
cmp dword [ebp - 4], 0x1a000
je 0x4023a2
push str.Failed_to_read_card_information__n
call fcn.00401010
add esp, 4
xor bl, bl
mov al, bl
mov byte [edi + 0x15], 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xe000
call fcn.00409124
add esp, 4
mov dword [edi + 0x11a], eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0xe000
push dword [edi + 0x11a]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4023ff
cmp dword [ebp - 4], 0xe000
je 0x40240e
push str.Failed_to_read_card_information__n
call fcn.00401010
add esp, 4
xor bl, bl
mov al, bl
mov byte [edi + 0x15], 2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x10a], 1
cmp si, word [ebp + 0x10]
je 0x40260e
nop
call fcn.00406eae
test eax, eax
jne 0x40260e
movzx edi, si
mov byte [ebp - 0x109], 0x80
lea eax, [edi + 0x80]
push eax
push edi
push str._rProcessing__04x.._04x_...
call fcn.00401010
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x109]
add esp, 0xc
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x402643
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x114]
push eax
movzx eax, byte [ebp - 0x109]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, 0xffffff80
cmp si, word [ebp + 0x10]
jne 0x402590
push 0x41caa0
call fcn.00401010
add esp, 4
call fcn.00406eae
movzx ecx, byte [ebp - 0x10a]
xor edx, edx
test eax, eax
pop edi
cmovne ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404630
mov esp, ebp
pop ebp
ret 0x10
push edi
push str._nFailed_to_process__04x_n
call fcn.00401010
add esp, 8
mov byte [ebp - 0x10a], 0
jmp 0x40261b