joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
test eax, eax
je 0x4079c0
cmp word [eax], 0
je 0x407a15
mov ebx, eax
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x4077e0
cmp eax, ebx
jae 0x407a13
jmp 0x407800
movzx edx, word [ebx]
cmp edx, 0x5c
je 0x4079b0
cmp edx, 0x2f
je 0x4079b0
sub ebx, 2
movzx edx, word [ebx]
cmp eax, ebx
jb 0x407800
test edx, edx
je 0x407a32
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407830
sub eax, ebx
add eax, 0x20
mov dword [esp + 8], eax
mov ecx, 8
mov dword [esp + 4], ecx
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x40796a
cmp word [ebx], 0
je 0x4079d1
mov ecx, ebx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x407880
sub ecx, ebx
cmp ecx, 8
mov edi, edx
mov esi, ebx
jae 0x407978
rep movsb byte es:[edi], byte [esi]
cmp word [ebx], 0
je 0x4079d8
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4078b0
sub eax, ebx
lea ecx, [edx + eax]
add eax, 6
mov ebx, dword [0x410b28]
add eax, edx
mov edi, 0x1a
test al, 1
mov dword [ecx], ebx
mov ebx, dword [0x410b2c]
mov word [ecx + 4], bx
mov ebx, 0x410d38
jne 0x4079e4
test al, 2
jne 0x4079fe
mov dword [ebp - 0x1c], edx
mov esi, edi
xor ecx, ecx
and esi, 0xfffffffc
mov edx, dword [ebx + ecx]
mov dword [eax + ecx], edx
add ecx, 4
cmp ecx, esi
jb 0x4078f9
add eax, ecx
add ebx, ecx
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
test edi, 2
je 0x407922
movzx ecx, word [ebx]
mov word [eax], cx
mov ecx, 2
and edi, 1
je 0x40792e
movzx ebx, byte [ebx + ecx]
mov byte [eax + ecx], bl
mov dword [esp + 4], edx
mov eax, dword [0x41c708]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call sym._SetWindowTextW_8
mov edx, dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
sub esp, 8
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test dl, 1
jne 0x407a21
test edi, 2
jne 0x407a3c
test edi, 4
je 0x407898
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x407898
movzx edx, word [ebx + 2]
add ebx, 2
jmp 0x40781f
movzx edx, word [0x41baa0]
mov ebx, 0x41baa0
jmp 0x40781f
xor ecx, ecx
jmp 0x40788b
mov ecx, edx
mov eax, 6
jmp 0x4078c1
movzx ecx, byte [0x410d38]
inc eax
mov ebx, 0x410d39
mov edi, 0x19
mov byte [eax - 1], cl
jmp 0x4078e7
movzx ecx, word [ebx]
add eax, 2
add ebx, 2
sub edi, 2
mov word [eax - 2], cx
jmp 0x4078ef
mov eax, ebx
mov ebx, eax
mov eax, 0x20
jmp 0x40783e
movzx eax, byte [ebx]
lea edi, [edx + 1]
dec ecx
lea esi, [ebx + 1]
mov byte [edx], al
jmp 0x407981
mov eax, 0x20
jmp 0x40783e
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x40798d
Function at 0x407a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 2
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
mov edx, pe_nt_image_headers32
mov dword [esp + 0x18], edi
xor edi, edi
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x10], ecx
mov ecx, 0x40000000
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x407c00
cmp ebx, 0x11
mov edi, eax
lea edx, [ebp - 0x24]
je 0x407bb8
mov dword [esp + 0xc], edx
mov eax, 0x44a
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp + 8], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], sym._stream_out_16
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x3c], eax
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c704]
sub esp, 4
mov dword [esp], eax
call sym._SetFocus_4
mov edx, dword [ebp - 0x3c]
sub esp, 4
test edx, edx
je 0x407b70
xor eax, eax
movzx edx, word [esi + eax]
add eax, 2
mov word [eax + 0x41c4de], dx
test edx, edx
jne 0x407b10
mov eax, 0x41c4e0
call sym._set_caption
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41c704]
mov ecx, 0xb9
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, ebx
sub esp, 0x10
call sym._set_fileformat
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
xor edi, edi
mov dword [esp + 8], eax
mov eax, 0x45f
mov dword [esp + 4], eax
mov eax, dword [0x41c704]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x28], 0x4b0
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, dword [ebp - 0x3c]
sub esp, 0x10
test eax, eax
je 0x407b0e
jmp 0x407b5d
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 0x410b40
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WriteFile]
lea edx, [ebp - 0x24]
sub esp, 0x14
cmp dword [ebp - 0x24], 2
je 0x407abd
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
sub esp, 4
jmp 0x407b5d
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov edx, 0x30
mov dword [esp + 0xc], edx
mov ecx, 0x410d38
mov dword [esp + 8], ecx
sete al
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._MessageBoxW_16
xor edx, edx
mov eax, edx
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407e60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 8]
movzx ecx, word [edi + 0x1c]
mov dword [ebp - 0x1c], eax
cmp ecx, 0x40
je 0x407fe2
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
lea eax, [ebx + 1]
cmp eax, edx
jbe 0x407f40
cmp eax, 0x1fffffff
ja 0x407fe2
cmp edx, 4
mov ebx, 4
cmovae ebx, edx
cmp edx, 0xfffffff
ja 0x407ff8
cmp eax, ebx
ja 0x407edc
jmp 0x407ee2
cmp ebx, 0xfffffff
ja 0x407ff8
add ebx, ebx
cmp eax, ebx
ja 0x407ed0
lea edx, [ebx*8]
mov eax, dword [esi]
test eax, eax
je 0x408010
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebp - 0x20], eax
sub esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407fe2
mov dword [esi + 8], ebx
mov ebx, dword [esi + 4]
mov dword [esi], eax
movzx ecx, word [edi + 0x1c]
jmp 0x407f45
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
and eax, 1
mov dword [ebp - 0x28], eax
je 0x407f5e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
sub eax, dword [edx + 0xc]
shl eax, 0x10
mov dword [ebp - 0x28], eax
lea edx, [edi + 0x1c]
test ecx, ecx
je 0x408040
mov eax, edx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407f70
sub eax, edx
add eax, 2
mov dword [esp + 8], eax
lea edx, [ebx*8]
xor eax, eax
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x20]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ecx + 0x30]
add ebx, edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
sub esp, 0xc
mov eax, dword [esi]
mov ebx, dword [eax + edx]
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax + 0x1c]
mov word [ebx + eax], cx
add eax, 2
test ecx, ecx
jne 0x407fc0
movzx eax, word [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [esi]
or eax, ebx
mov dword [ecx + edx + 4], eax
inc dword [esi + 4]
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, ebx
jbe 0x407ee2
mov edx, 0xfffffff8
mov ebx, 0x1fffffff
jmp 0x407ee9
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
sub esp, 0xc
jmp 0x407f1d
mov eax, 2
jmp 0x407f7e
Function at 0x4080c0
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
mov edx, 3
push edi
mov edi, pe_nt_image_headers32
push esi
xor esi, esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [esp + 0x18], esi
mov esi, 1
mov dword [esp + 0x14], edi
mov edi, 0x80000000
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x408268
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30]
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, 5
mov dword [esp + 8], eax
lea eax, [ebp - 0x29]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReadFile]
xor edx, edx
xor ecx, ecx
sub esp, 0x14
mov dword [esp + 4], edi
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], esi
call edi
mov eax, dword [ebp - 0x30]
sub esp, 0x10
cmp eax, 1
jbe 0x408258
cmp byte [ebp - 0x29], 0xff
je 0x4082b0
cmp eax, 4
jbe 0x408258
cmp dword [ebp - 0x29], 0x74725c7b
je 0x4082e8
cmp dword [ebp - 0x29], 0xe011cfd0
mov edi, 1
je 0x4082fc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], sym._stream_in_16
call sym._clear_formatting
mov eax, edi
call sym._set_fileformat
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [0x41c704]
mov dword [esp + 8], edi
mov edi, 0x449
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c704]
sub esp, 4
mov dword [esp], eax
call sym._SetFocus_4
mov eax, ebx
sub esp, 4
call sym._set_caption
xor eax, eax
nop
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x41c4de], dx
test edx, edx
jne 0x408200
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41c704]
mov ecx, 0xb9
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x41c708]
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._registry_set_filelist
call sym._update_font_list
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
jmp 0x408199
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov edx, 0x30
mov dword [esp + 0xc], edx
mov ecx, 0x410d38
mov dword [esp + 8], ecx
sete al
movzx eax, al
add eax, 0x6ad
mov dword [esp + 4], eax
mov eax, dword [0x41c708]
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0x28], 0xfe
jne 0x408171
mov dword [esp], esi
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
call edi
mov edi, 0x11
sub esp, 0x10
jmp 0x408199
cmp byte [ebp - 0x25], 0x66
mov edi, 2
jne 0x408187
jmp 0x408199
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c708]
mov ecx, 0x30
mov edx, 0x6aa
sub esp, 4
call sym._MessageBoxWithResStringW.constprop.0
jmp 0x40824d
Function at 0x408490
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp word [0x41c4e0], 0
mov eax, dword [0x41c704]
jne 0x4084e6
lea edx, [ebp - 0x20]
xor esi, esi
mov dword [esp + 8], edx
mov edi, 0x45f
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 0x4b0
call sym._SendMessageW_16
mov edx, eax
sub esp, 0x10
mov eax, dword [0x41c704]
test edx, edx
je 0x408680
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov ebx, 0xb8
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
je 0x408680
cmp word [0x41c4e0], 0
jne 0x408620
movzx eax, word [0x41baa0]
mov ebx, 0x41baa0
test eax, eax
je 0x4086d0
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x408540
sub eax, ebx
sar eax, 1
cmp word [0x41b8a0], 0
je 0x408573
mov edx, 0x41b8a0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x408560
sub edx, 0x41b8a0
sar edx, 1
add eax, edx
add eax, eax
mov dword [esp + 8], eax
mov eax, 8
mov dword [esp + 4], eax
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x408690
mov dword [esp + 8], ebx
mov eax, 0x41b8a0
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._wsprintfW
mov eax, dword [0x41c708]
mov edx, 0x33
mov dword [esp + 0xc], edx
mov ecx, 0x410d38
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
mov ebx, eax
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp ebx, 6
je 0x4086a0
xor eax, eax
cmp ebx, 7
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x41c4e0
lea esi, [esi]
lea edi, [edi]
add ebx, 2
cmp word [ebx], 0
jne 0x408630
cmp ebx, 0x41c4e0
ja 0x408667
jmp 0x4086d0
cmp eax, 0x2f
je 0x40866f
sub ebx, 2
movzx eax, word [ebx]
cmp ebx, 0x41c4e0
jbe 0x408528
movzx eax, word [ebx]
cmp eax, 0x5c
jne 0x408650
movzx eax, word [ebx + 2]
add ebx, 2
jmp 0x408528
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [0x41c4e0], 0
je 0x4086c0
mov edx, dword [0x40f2a4]
mov eax, 0x41c4e0
call sym._DoSaveFile
jmp 0x40860f
call sym._DialogSaveFile
jmp 0x40860f
xor eax, eax
jmp 0x40854d
Function at 0x40db00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x40db70
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x40db68
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41c7c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40db2d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x40e540
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x40e8f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40e97d
cmp al, 9
je 0x40e970
cmp al, 0x20
je 0x40e970
xor edi, edi
xor esi, esi
lea esi, [esi]
lea edi, [edi]
cmp al, 0x5c
je 0x40e9f0
cmp al, 0x22
je 0x40e9d8
xor esi, esi
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40e97d
cmp al, 9
sete cl
cmp al, 0x20
sete dl
or cl, dl
je 0x40e930
test edi, 1
jne 0x40e930
jmp 0x40e970
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x40e970
cmp al, 0x20
je 0x40e970
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40e998
mov word [ebp - 0x2c], 1
mov dword [esp], 0
movzx esi, word [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor edx, edx
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x40e940
xor edi, 1
jmp 0x40e942
inc esi
jmp 0x40e942
Function at 0x538810
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4de000
lea edi, [esi - 0x7d000]
push edi
or ebp, 0xffffffff
jmp 0x538832
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x538839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538828
mov eax, 1
add ebx, ebx
jne 0x53884b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x538840
jne 0x53885c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x538840
xor ecx, ecx
sub eax, 3
jb 0x538870
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5388e2
mov ebp, eax
add ebx, ebx
jne 0x53887b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x538888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5388ac
inc ecx
add ebx, ebx
jne 0x538898
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53888d
jne 0x5388a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53888d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5388cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5388bd
jmp 0x53882e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5388cc
add edi, ecx
jmp 0x53882e
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5388ea
cmp byte [edi], 0x11
jne 0x5388ea
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 0x5388ef
lea edi, [esi + 0x131000]
mov eax, dword [edi]
or eax, eax
je 0x538967
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1518c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x151a3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53891c
mov ecx, edi
jns 0x53894b
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 + 0x151a40]
or eax, eax
je 0x538961
mov dword [ebx], eax
add ebx, 4
jmp 0x538939
call dword [esi + 0x151a50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x538998
cmp al, 0xef
ja 0x53898b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x53896d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x53897a
mov ebp, dword [esi + 0x151a44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x5389cc
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x7bc40cc9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x43ad714e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401193
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
nop
mov eax, 0xf8
push eax
mov eax, 0x402024
push eax
call section..text
add esp, 8
push eax
mov eax, 0
push eax
call fcn.004010ec
add esp, 8
mov eax, 0x18
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x18]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x40211d
mov dword [ebp - 0x18], eax
mov eax, 0x402122
mov dword [ebp - 0x14], eax
mov eax, 0x40212e
mov dword [ebp - 0x10], eax
mov eax, str.Temp
mov dword [ebp - 0xc], eax
mov eax, 0x4bd334
mov dword [ebp - 8], eax
mov eax, 0x4bd347
mov dword [ebp - 4], eax
mov eax, 0x20
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x38]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0xb
mov dword [ebp - 0x38], eax
mov eax, 1
mov dword [ebp - 0x34], eax
mov eax, 0xbb200
mov dword [ebp - 0x30], eax
mov eax, 0x12
mov dword [ebp - 0x28], eax
mov eax, 1
mov dword [ebp - 0x24], eax
mov eax, 0x1f4000
mov dword [ebp - 0x20], eax
mov eax, 0
mov dword [ebp - 0xa14], eax
mov eax, dword [ebp - 0xa14]
cmp eax, 2
jge 0x4013b1
jmp 0x40127e
mov eax, dword [ebp - 0xa14]
inc eax
mov dword [ebp - 0xa14], eax
jmp 0x40125b
mov eax, dword [ebp - 0xa14]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x18]
add ecx, eax
mov eax, dword [ecx]
push eax
call sub.msvcrt.dll_getenv
add esp, 4
mov ecx, dword [ebp - 0xa14]
mov edx, 0xc
imul ecx, edx
lea edx, [ebp - 0x18]
add edx, ecx
add edx, 4
mov ecx, dword [ebp - 0xa14]
shl ecx, 4
mov dword [ebp - 0xa18], eax
lea eax, [ebp - 0x38]
add eax, ecx
mov ecx, dword [eax]
push ecx
mov eax, dword [edx]
push eax
call section..text
add esp, 8
push eax
mov eax, dword [ebp - 0xa18]
push eax
mov eax, str._s_s
push eax
lea eax, [ebp - 0x524]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
mov eax, dword [ebp - 0xa14]
mov ecx, 0xc
imul eax, ecx
lea ecx, [ebp - 0x18]
add ecx, eax
add ecx, 8
mov eax, dword [ebp - 0xa14]
shl eax, 4
lea edx, [ebp - 0x38]
add edx, eax
add edx, 8
mov eax, dword [edx]
push eax
mov eax, dword [ecx]
push eax
call section..text
add esp, 8
mov ecx, dword [ebp - 0xa14]
shl ecx, 4
lea edx, [ebp - 0x38]
add edx, ecx
add edx, 8
mov ecx, dword [edx]
push ecx
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.0040109f
add esp, 0xc
mov eax, dword [ebp - 0xa14]
shl eax, 4
lea ecx, [ebp - 0x38]
add ecx, eax
add ecx, 4
mov eax, dword [ecx]
cmp eax, 0
je 0x4013ac
mov eax, 0xd
push eax
mov eax, 0x6b1354
push eax
call section..text
add esp, 8
lea ecx, [ebp - 0x524]
push ecx
push eax
mov eax, str._s__s
push eax
lea eax, [ebp - 0xa10]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
mov eax, 0
push eax
call fcn.004010ec
add esp, 8
jmp 0x40126f
mov eax, 0
leave
ret