joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46baae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4020
call fcn.00470240
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esi + 0x4c], 0x104
je 0x46bad9
push edi
push 1
push dword [ebp + 0x14]
push esi
call ebx
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x46bae7
mov eax, 0x1002
jmp 0x46bafc
mov ecx, dword [ebp + 8]
push eax
call fcn.004672ac
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x46bb1c
mov eax, 0x1003
cmp ebx, edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 0x105
je 0x46bc66
push eax
push 4
push dword [ebp + 0x14]
push esi
call ebx
jmp 0x46bc66
push 1
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
fldz
fstp qword [ebp - 0x14]
mov ecx, eax
fild dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 4], eax
fmul qword [0x47cf30]
mov eax, ecx
cdq
fdivr qword [0x47cf28]
xor ebx, ebx
or ebx, eax
mov eax, dword [ebp - 4]
or eax, edx
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], 2
fmul qword [0x473ef8]
fstp qword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push 0x4000
lea eax, [ebp - 0x4020]
push eax
push edi
push 0xa
call fcn.00432393
mov ebx, eax
cmp ebx, edi
jbe 0x46bbef
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x4020]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46bbf3
fld qword [ebp - 0x1c]
add dword [esi + 0x10], ebx
fadd qword [ebp - 0x14]
adc dword [esi + 0x14], edi
fst qword [ebp - 0x14]
call fcn.00470280
cmp dword [ebp - 4], eax
mov dword [esi + 0x48], eax
je 0x46bbed
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
je 0x46bbed
push eax
push 2
push dword [ebp + 0x14]
push esi
call dword [ebp + 0x10]
test eax, eax
jne 0x46bbfc
cmp ebx, edi
jne 0x46bb84
jmp 0x46bc03
mov dword [esi + 0x50], 0x1004
jmp 0x46bc03
mov dword [esi + 0x50], 3
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.0046731d
mov eax, dword [esi + 0x50]
dec eax
dec eax
mov dword [esi + 0x4c], 0x105
je 0x46bc2c
dec eax
jne 0x46bc55
mov eax, 0x1009
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
jmp 0x46bc55
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edi
push 0x930
push ecx
push eax
call fcn.00470650
or ecx, ebx
mov dword [ebp - 0x18], edx
je 0x46bc4b
xor ecx, ecx
inc ecx
jmp 0x46bc4d
xor ecx, ecx
add ecx, eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x50], edi
cmp dword [ebp + 0x10], edi
je 0x46bc66
push dword [esi + 0x50]
push 4
push dword [ebp + 0x14]
push esi
call dword [ebp + 0x10]
mov eax, dword [esi + 0x50]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x46e4d1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0x6b
mov dword [esi], eax
push dword [0x495150]
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
push 0
push 0x172
push 0x3ee
push dword [esi]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x40
lea eax, [ebp - 0x80]
push eax
push 0x250
push dword [0x495150]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 0xc]
movsx eax, byte [eax]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x104]
push 0x40
push eax
call fcn.00402fb5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push 0x3ec
push dword [esi]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
push dword [esi + 0x28]
push 0x3f2
push dword [esi]
call edi
push eax
call ebx
push 0x3f6
push dword [esi]
call edi
push dword [esi + 0x20]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 0x20]
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0046e095
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46e659
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp edx, edi
mov esi, ecx
jne 0x46e676
mov eax, 0x106
jmp 0x46e765
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jne 0x46e687
mov eax, 0x104
jmp 0x46e765
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x46e698
mov eax, 0x105
jmp 0x46e765
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
push ebx
mov ebx, dword [ebp + 0x20]
and eax, 4
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
push 0x66
push 5
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 4], ebx
mov dword [esi], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 1
mov dword [esi + 0x24], edi
push dword [0x495150]
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, edi
je 0x46e6f8
push eax
push dword [0x495150]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
push esi
push 0x46e5d1
push ebx
push dword [ebp + 0x10]
push dword [0x49514c]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
jne 0x46e719
mov eax, 0x102
jmp 0x46e764
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x46e74a
cmp eax, 0xffffffff
je 0x46e75a
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x46e74a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
call ebx
cmp eax, edi
jne 0x46e721
jmp 0x46e761
mov dword [esi + 0x18], 0x103
mov eax, dword [esi + 0x18]
pop ebx
pop edi
pop esi
leave
ret 0x1c
Function at 0x46eb8d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
push 0x80
lea eax, [esi + 0x18]
push eax
call fcn.00467521
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x46eae9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x10]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x46ecbb
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
pop esi
ret
Function at 0x46f023
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x46f043
mov eax, 0x104
jmp 0x46f1a6
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x46f054
mov eax, 0x105
jmp 0x46f1a6
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
or dword [esi + 0x20], 0xffffffff
push edi
mov edi, dword [esi + 0x14]
cmp edi, ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
je 0x46f088
mov ecx, edi
call fcn.0046eae4
push edi
call sub.NSCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, esi
mov dword [esi + 0x14], ebx
call fcn.0046ed02
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x46f1a5
cmp eax, 2
je 0x46f1a5
cmp eax, 0x101
je 0x46f1a5
push ebx
push 9
push 5
push dword [0x495150]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, ebx
je 0x46f0d7
push eax
push dword [0x495150]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push 0x46efac
push dword [ebp + 0x14]
push edi
push dword [0x49514c]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
jne 0x46f0fb
mov eax, 0x102
jmp 0x46f1a5
push 0x30
lea eax, [ebp - 0x7c]
push eax
push 0x245
push dword [0x495150]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xfc]
push 0x40
push eax
call fcn.00402fb5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
lea eax, [ebp - 0xfc]
push eax
push 0x3ec
push dword [esi]
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp + 0x10]
push 1
push dword [esi]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x46f18c
cmp eax, 0xffffffff
je 0x46f19b
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x46f18c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call edi
cmp eax, ebx
jne 0x46f163
jmp 0x46f1a2
mov dword [esi + 0x10], 0x103
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x46f435
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x184
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, ecx
mov dword [esi + 4], eax
push 0x60
lea eax, [ebp - 0x110]
push eax
push 0x251
push dword [0x495150]
call edi
push dword [esi]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x50]
push 0x62
push eax
call fcn.00402fb5
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x62
mov dword [ebp + 0x7c], eax
lea eax, [ebp - 0x50]
push eax
push 0x252
push dword [0x495150]
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x50]
push eax
push 0
push 0x143
push dword [ebp + 0x7c]
call ebx
push 0x62
lea eax, [ebp - 0x50]
push eax
push 0x253
push dword [0x495150]
call edi
lea eax, [ebp - 0x50]
push eax
xor edi, edi
push edi
push 0x143
push dword [ebp + 0x7c]
call ebx
push edi
push edi
push 0x14e
push dword [ebp + 0x7c]
call ebx
push edi
push 0x103eb
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x46f7f9
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 1
mov edi, 0x3e9
push edi
mov esi, ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push edi
push dword [esi + 8]
call ebx
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push 0x30
call sub.NSCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x46f841
mov ecx, eax
call fcn.0046fad2
jmp 0x46f843
xor eax, eax
test eax, eax
mov dword [esi + 0xc], eax
jne 0x46f858
push 0x106
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EndDialog]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.0046f2a4
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x3e8
push 0x7bc
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x640000
push 0
push 0x401
push 0x3ea
push dword [esi + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0xc]
push 0
push esi
push 0x46f675
push dword [esi + 0x10]
push dword [esi]
call fcn.0046fd3f
push 1
push edi
push dword [esi + 8]
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x46fa2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push ebp
push esi
push edi
push 0
mov esi, ecx
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
push 0x68
push 5
mov dword [esi + 0x28], eax
push dword [0x495150]
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
je 0x46fa66
push eax
push dword [0x495150]
call ebp
jmp 0x46fa68
xor eax, eax
mov edi, dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push esi
push 0x46f535
push dword [esp + 0x24]
push eax
push dword [0x49514c]
call edi
test eax, eax
jne 0x46facb
push eax
push 0x67
push 5
push dword [0x495150]
call ebx
test eax, eax
je 0x46faa1
push eax
push dword [0x495150]
call ebp
jmp 0x46faa3
xor eax, eax
push esi
push 0x46f8e7
push dword [esp + 0x24]
push eax
push dword [0x49514c]
call edi
cmp eax, 7
jne 0x46fac0
push 2
pop eax
jmp 0x46facb
mov ecx, 0x1000
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x46fd3f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
push 1
mov dword [esi + 0x28], eax
call fcn.0046fba0
cmp dword [esi + 0x18], edi
mov ecx, esi
je 0x46fd75
push edi
push 0x1001
call fcn.0046fba0
xor eax, eax
jmp 0x46fe6c
push ebx
push edi
push 2
call fcn.0046fba0
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.00468e73
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x46fd9a
push eax
push 0x1002
jmp 0x46fe61
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00468ca6
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x46fdb7
push eax
push 0x1003
jmp 0x46fe61
push edi
push edi
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00468cce
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x46fdde
push eax
push 0x1004
jmp 0x46fe61
cmp dword [ebp + 0x10], edi
jne 0x46fdeb
push edi
push 0x1005
jmp 0x46fe61
push esi
push dword [ebp + 8]
push ebx
call fcn.0046bca3
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x46fe07
push eax
push 0x1006
jmp 0x46fe61
push dword [ebp + 0xc]
lea eax, [esi + 4]
push eax
mov ecx, ebx
call fcn.00468b9c
cmp eax, edi
mov dword [esi + 0x24], eax
jne 0x46fe5b
push edi
push 3
mov ecx, esi
call fcn.0046fba0
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [ebp + 0x18], edi
mov dword [esi + 0x1c], eax
je 0x46fe43
push esi
call fcn.0046fbbc
mov dword [esi + 0x24], eax
jmp 0x46fe68
lea eax, [ebp + 0x14]
push eax
push edi
push esi
push fcn.0046fbbc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
jmp 0x46fe68
push eax
push 0x1008
mov ecx, esi
call fcn.0046fba0
mov eax, dword [esi + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x470420
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x47d038
call fcn.00470798
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x470460
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x470460
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x470478
cmp eax, 0x20b
je 0x470465
mov dword [ebp - 0x1c], ebx
jmp 0x47048c
cmp dword [ecx + 0x84], 0xe
jbe 0x470460
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x470486
cmp dword [ecx + 0x74], 0xe
jbe 0x470460
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.NSCRT.dll___set_app_type]
pop ecx
or dword [0x4975d4], 0xffffffff
or dword [0x4975d8], 0xffffffff
call dword [sym.imp.NSCRT.dll___p__fmode]
mov ecx, dword [0x496190]
mov dword [eax], ecx
call dword [sym.imp.NSCRT.dll___p__commode]
mov ecx, dword [0x49618c]
mov dword [eax], ecx
mov eax, dword [sym.imp.NSCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4975d0], eax
call fcn.004706f8
call fcn.0041cbe7
cmp dword [0x4839e0], ebx
jne 0x4704ec
push fcn.0041cbe7
call dword [sym.imp.NSCRT.dll___setusermatherr]
pop ecx
call fcn.00470786
push 0x4820e8
push 0x4820e4
call sub.NSCRT.dll__initterm
push 0x47073c
call fcn.00470362
mov eax, dword [0x496188]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x496184]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.NSCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x470540
push 8
call sub.NSCRT.dll__amsg_exit
pop ecx
push 0x4820e0
push section..data
call sub.NSCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.NSCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4705be
cmp al, bl
je 0x47056a
cmp dword [ebp - 0x20], ebx
jne 0x4705be
mov al, byte [esi]
cmp al, bl
je 0x47057a
cmp al, 0x20
ja 0x47057a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x47056a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x470596
movzx eax, word [ebp - 0x54]
jmp 0x470599
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00450947
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4705b6
push esi
call dword [sym.imp.NSCRT.dll_exit]
call dword [sym.imp.NSCRT.dll__cexit]
jmp 0x470613
cmp al, 0x22
jne 0x4705cd
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.NSCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x4705e0
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x470558
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004707d3
ret
Function at 0x5d8aa6
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x5d87dc
add eax, 0xf1fbd773
mov ebx, eax
mov eax, 0x596d4959
call fcn.005d8ae1
add eax, eax
sub eax, ebx
sub eax, eax
xor dword [edx], esi
add ebx, 0x778bf1d0
add edx, 2
mov eax, 0x10ec668d
cmp edx, edi
jl fcn.005d8aa6
sub eax, ebx
ret

Function at 0x406dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebx, dword [ebp + 0xc498b53]
push esi
mov esi, dword [ebp + 8]
daa
fdiv st(5)
adc byte [esi - 0x7b], ah
dec dword [ecx - 0x7699efa2]
loop 0x406e11
je 0x406dfa
or edi, edi
outsd dx, dword [esi]
test al, 0xc1
inc eax
enter 0x6466, 0x46
sub ah, byte [esi - 0x77]
jle 0x406e06
invalid
mov byte [0xd600a8], al
lahf
inc esi
adc al, 0xa2
lea eax, [esi + 0x2c]
mov dword [esi + 0x20], eax
pop edi
pop esi
Function at 0x40b000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4715cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00465f6c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b082
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463e5d
mov eax, dword [eax]
push 0x4921e0
push eax
call fcn.00456cc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004661f7
test bl, bl
je 0x40b082
push 0x4921e0
lea ecx, [esp + 0xc]
call fcn.00466587
push 0x495d54
lea ecx, [esp + 0xc]
call fcn.00466587
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b0be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004661f7
jmp 0x40b189
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b142
lea edx, [esp + 0x7c]
push 0x495d50
push edx
call fcn.00456cc4
add esp, 8
test eax, eax
je 0x40b142
lea eax, [esp + 0x7c]
push 0x495d4c
push eax
call fcn.00456cc4
add esp, 8
test eax, eax
je 0x40b142
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b0d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004661f7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b9a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ba02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ba10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47164b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a1aa8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bb48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ba76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004661f7
xor eax, eax
jmp 0x40bbbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00466334
push esi
lea ecx, [esp + 0xc]
call fcn.004665c3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bb9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b9a0
test eax, eax
jne 0x40bb9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040b9a0
test eax, eax
jne 0x40bb9d
lea eax, [esp + 0x14]
push 0x495d68
push eax
call fcn.00457d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb7c
lea ecx, [esp + 0x14]
push 0x495d64
push ecx
call fcn.00457c80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bb7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004662e4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ba8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004661f7
xor eax, eax
jmp 0x40bbbf
mov byte [esi], 0
push 0x495d60
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004661f7
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4