joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cad0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x400
lea eax, [esp]
push 0x400
push eax
call fcn.0040c8e0
add esp, 8
test eax, eax
jne 0x40caf3
add esp, 0x400
ret
lea ecx, [esp]
push str.tbhmark
push ecx
push 0x80000003
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
inc eax
add esp, 0x400
ret

Function at 0x40cb20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d6b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x490
mov ecx, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x49c]
push esi
push edi
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosb byte es:[edi], al
mov eax, dword [esp + 0x4ac]
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d6fc
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x490
ret
lea ecx, [esp + 0x44]
push ecx
call fcn.0040cb20
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0xc]
lea eax, [esp + 0x9c]
push 0
push edx
push 0x400
push eax
push esi
call edi
test eax, eax
je 0x40d763
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40d763
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0040cb50
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x9c]
push 0
push eax
push 0x400
push ecx
push esi
call edi
test eax, eax
jne 0x40d72a
lea edx, [esp + 0x44]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040cc00
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [esp + 0x20]
xor ecx, ecx
mov cl, byte [esp + esi + 0x10]
push ecx
push str._02x
push 2
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x10
inc esi
add edi, 2
cmp esi, 0x10
jl 0x40d782
mov ecx, 8
lea esi, [esp + 0x20]
mov edi, ebx
mov al, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0x490
ret
Function at 0x40dbc6
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0040dbc0
mov edi, eax
cmp dword [edi + 0x22c], 0
je 0x40dbe3
mov eax, dword [esp + 8]
mov dword [edi + 0x230], eax
pop edi
ret
push ebx
push ebp
push esi
push str._nMIRACL_error_from_routine
call fcn.0040dda5
pop ecx
mov eax, dword [edi + 0x20]
mov ebp, 0x419fe0
cmp eax, 0x18
jge 0x40dc0b
mov eax, dword [edi + eax*4 + 0x24]
push dword [eax*4 + 0x4194c8]
jmp 0x40dc0c
push ebp
call fcn.0040dda5
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
pop ecx
add eax, 0x20
push eax
push 0xa
call ebx
mov esi, dword [edi + 0x20]
pop ecx
dec esi
pop ecx
js 0x40dc6a
lea edi, [edi + esi*4 + 0x24]
push str.______________called_from
call fcn.0040dda5
cmp esi, 0x18
pop ecx
jge 0x40dc4c
mov eax, dword [edi]
push dword [eax*4 + 0x4194c8]
jmp 0x40dc4d
push ebp
call fcn.0040dda5
mov eax, dword [sym.imp.MSVCRT.dll__iob]
pop ecx
add eax, 0x20
push eax
push 0xa
call ebx
dec esi
pop ecx
sub edi, 4
pop ecx
test esi, esi
jge 0x40dc31
mov eax, dword [esp + 0x14]
pop esi
dec eax
pop ebp
cmp eax, 0x17
pop ebx
ja case.default.0x40dc7b
jmp dword [eax*4 + 0x40dd45]
push str.Number_base_too_big_for_representation_n
jmp 0x40dd37
push str.Division_by_zero_attempted_n
jmp 0x40dd37
push str.Overflow___Number_too_big_n
jmp 0x40dd37
push str.Internal_result_is_negative_n
jmp 0x40dd37
push str.Input_format_error_n
jmp 0x40dd37
push str.Illegal_number_base_n
jmp 0x40dd37
push str.Illegal_parameter_usage_n
jmp 0x40dd37
push str.Out_of_space_n
jmp 0x40dd37
push str.Even_root_of_a_negative_number_n
jmp 0x40dd37
push str.Raising_integer_to_negative_power_n
jmp 0x40dd37
push str.Attempt_to_take_illegal_root_n
jmp 0x40dd37
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x40dd37
push str.Flash_overflow_n
jmp 0x40dd37
push str.Numbers_too_big_n
jmp 0x40dd37
push str.Log_of_a_non_positive_number_n
jmp 0x40dd37
push str.Flash_to_double_conversation_failure_n
jmp 0x40dd37
push str.I_O_buffer_overflow_n
jmp 0x40dd37
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x40dd37
push str.Illegal_modulus__n
jmp 0x40dd37
push str.No_modulus_defined_n
jmp 0x40dd37
push str.Exponent_too_big_n
jmp 0x40dd37
push str.Number_Base_must_be_power_of_2_n
jmp 0x40dd37
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x40dd37
push str.Specified_basis_is_NOT_irreducible_n
call fcn.0040dda5
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]
sbb ah, 0x40
add byte [esp + ebx*8 - 594149312], cl
inc eax
add byte [eax - 0x55ffbf24], ah
fadd qword [eax]
mov ah, 0xdc
inc eax
add byte [ebx - 0x3dffbf24], bh
fadd qword [eax]
leave
fadd qword [eax]
rcr ah, 1
inc eax
add bh, dl
fadd qword [eax]
invalid
Function at 0x40dead
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop esi
call fcn.0040dbc0
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], 0xe
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
xor dword [ecx + 0x9c], edi
mov eax, dword [ebp + 8]
push 0x25
cdq
pop ebx
add dword [ebp + 8], 0xe
idiv ebx
xor dword [ecx + edx*4 + 0x9c], esi
sub edi, esi
cmp dword [ebp + 8], 0x206
lea eax, [ecx + edx*4 + 0x9c]
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x40dedb
mov esi, 0x3e8
call fcn.0040de2b
dec esi
jne 0x40df0c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f410
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x410ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov al, 0x9a
push esi
mov byte [esp + 0x30], al
mov byte [esp + 0x38], al
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push 0x14
push eax
push 0x26
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 1
mov dword [esp + 0x7c], edi
mov byte [esp + 0x38], 0x95
mov byte [esp + 0x39], 0xe3
mov byte [esp + 0x3a], 0xee
mov byte [esp + 0x3b], 0xef
mov byte [esp + 0x3c], 0x91
mov byte [esp + 0x3d], 0xed
mov byte [esp + 0x3e], 0xfa
mov byte [esp + 0x3f], 0xfe
mov byte [esp + 0x41], 0xf8
mov byte [esp + 0x42], 0xcd
mov byte [esp + 0x43], 0xd5
mov byte [esp + 0x44], 0xa5
mov byte [esp + 0x45], 0xc9
mov byte [esp + 0x46], 0xc6
mov byte [esp + 0x47], 0xcf
mov byte [esp + 0x49], 0xf8
mov byte [esp + 0x4a], 0xea
mov byte [esp + 0x4b], 0xf3
call fcn.004029b0
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push str.Install
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], 0
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f5f8
mov al, 0x99
push 0x1c
mov byte [esp + 0x44], al
mov byte [esp + 0x5c], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push 0x29
mov byte [esp + 0x4d], 0xdd
mov byte [esp + 0x4e], 0xc4
mov byte [esp + 0x4f], 0xd9
mov byte [esp + 0x50], 0xbb
mov byte [esp + 0x51], 0xce
mov byte [esp + 0x52], 0xc6
mov byte [esp + 0x53], 0x9e
mov byte [esp + 0x54], 0x8f
mov byte [esp + 0x55], 0xc6
mov byte [esp + 0x56], 0xc7
mov byte [esp + 0x57], 0xdb
mov byte [esp + 0x58], 0xba
mov byte [esp + 0x59], 0xf3
mov byte [esp + 0x5a], 0xff
mov byte [esp + 0x5b], 0xfb
mov byte [esp + 0x5c], 0x87
mov byte [esp + 0x5d], 0xec
mov byte [esp + 0x5e], 0xee
mov byte [esp + 0x5f], 0xf0
mov byte [esp + 0x60], 0x9d
mov byte [esp + 0x61], 0xf3
mov byte [esp + 0x62], 0xf8
mov byte [esp + 0x63], 0xed
mov byte [esp + 0x65], 0xc3
mov byte [esp + 0x66], 0xde
mov byte [esp + 0x67], 0xcd
call fcn.004029b0
push edi
push esi
mov byte [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40f5d2
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], al
call fcn.00402a00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00402a00
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea ecx, [esp + 0xc]
call fcn.00402a40
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 0
call fcn.00402a00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00402a00
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x410410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x410447
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xc]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41596c]
xor eax, edx
inc ecx
dec esi
jne 0x410427
pop esi
pop ebx
not eax
ret

Function at 0x410470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x41049b
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41049b
xor eax, eax
test edi, edi
jle 0x41049b
mov cl, byte [esp + 0xc]
mov dl, byte [eax + esi]
xor dl, cl
sub dl, al
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x41048c
pop edi
pop esi
ret

Function at 0x4104e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4104fe
xor eax, eax
pop esi
add esp, 0x104
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x104
push esi
push ecx
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x10]
push esi
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop ebx
pop esi
add esp, 0x104
ret 4
Function at 0x4106d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
push 0x40
push eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0xbc]
push 0x40
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00410610
test eax, eax
je 0x41087d
push esi
lea ecx, [esp + 0x18]
push 0x20
lea edx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x41087d
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x41086f
cmp dword [ebp], eax
jb 0x41086f
xor esi, esi
mov dword [ebp], eax
test eax, eax
jbe 0x410832
cmp ebx, dword [esp + 0x28]
jae 0x410832
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ebx
stosw word es:[edi], ax
push ecx
push str._s_d
lea edx, [esp + 0x100]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp]
add esp, 0x14
sub eax, esi
mov edi, 0x4000
cmp eax, 0x4000
jg 0x4107fc
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
push eax
push edi
lea edx, [esi + ecx]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x410832
mov eax, dword [ebp]
add esi, edi
inc ebx
cmp esi, eax
jb 0x4107a6
mov edx, dword [ebp]
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.00410470
mov ecx, dword [ebp]
push ecx
push esi
call fcn.00410410
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x41088c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 0xc
push 0xea
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0xc
Function at 0x4108f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x54]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.004108a0
test eax, eax
jne 0x41092b
pop edi
pop esi
add esp, 0x44
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
add eax, 0x20
push eax
mov dword [esp + 0x5c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4109f6
lea edx, [esp + 0x58]
lea eax, [esp + 0x60]
push edx
push ebx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x104]
lea edx, [esi + 0x108]
push ecx
push edx
push eax
mov dword [esp + 0x78], 3
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4109ed
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx + 0xc]
push ecx
push ebx
push edx
call fcn.00410470
mov edi, dword [esp + 0x68]
add esp, 0xc
test edi, edi
je 0x4109dc
mov eax, dword [ebx + 8]
mov ecx, dword [ebp]
cmp eax, ecx
ja 0x4109dc
lea esi, [ebx + 0x20]
push eax
push esi
mov dword [ebp], eax
call fcn.00410410
mov ecx, dword [ebx + 0x10]
add esp, 8
cmp eax, ecx
jne 0x4109ed
mov ecx, dword [ebp]
mov dword [esp + 0x10], 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4109ed
mov ecx, dword [ebx + 8]
push 0xea
mov dword [ebp], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.0040d85e
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x44
ret 0xc
Function at 0x410a50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov cl, 0xcf
mov al, 0xd4
mov byte [esp + 0x3b], cl
mov byte [esp + 0x44], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x4c], cl
mov byte [esp + 0x52], al
mov byte [esp + 0x5c], al
push edi
mov cl, 0xfe
lea eax, [esp + 0x3c]
push 0x29
mov dl, 0xf4
mov byte [esp + 0x5d], cl
mov byte [esp + 0x5f], cl
mov byte [esp + 0x63], cl
push eax
push 6
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0xf5
mov byte [esp + 0x49], 0xc3
mov byte [esp + 0x4a], 0xce
mov byte [esp + 0x4c], 0xf1
mov byte [esp + 0x4d], 0xcd
mov byte [esp + 0x4e], 0xda
mov byte [esp + 0x4f], 0xde
mov byte [esp + 0x50], 0xfa
mov byte [esp + 0x51], 0xc1
mov byte [esp + 0x52], 0xe1
mov byte [esp + 0x53], 0xf8
mov byte [esp + 0x55], 0xe3
mov byte [esp + 0x56], 0xfb
mov byte [esp + 0x57], dl
mov byte [esp + 0x58], 0xc0
mov byte [esp + 0x59], 0xf8
mov byte [esp + 0x5b], 0xcc
mov byte [esp + 0x5d], 0xe2
mov byte [esp + 0x5e], 0xec
mov byte [esp + 0x5f], dl
mov byte [esp + 0x60], 0xd1
mov byte [esp + 0x61], 0xff
mov byte [esp + 0x63], 0xd8
mov byte [esp + 0x64], 0xd3
mov byte [esp + 0x66], 0xfa
mov byte [esp + 0x68], 0xc8
mov byte [esp + 0x69], 0xf8
mov byte [esp + 0x6a], 0xde
mov byte [esp + 0x6d], 0xff
mov byte [esp + 0x6e], 0xe1
mov byte [esp + 0x6f], dl
mov byte [esp + 0x70], 0xc8
call fcn.004029b0
lea ecx, [esp + 0x10]
push 9
mov al, 0xe8
push ecx
push 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], 0
mov byte [esp + 0x1c], 0xef
mov byte [esp + 0x1d], 0xe7
mov byte [esp + 0x1e], 0xfd
mov byte [esp + 0x1f], 0xd5
mov byte [esp + 0x20], 0xc3
mov byte [esp + 0x21], 0xff
mov byte [esp + 0x22], 0xd1
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
call fcn.004029b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x10
call fcn.00402a40
lea edx, [esp + 8]
mov edi, eax
push edx
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402a40
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x410be2
mov eax, dword [esp + 8]
test eax, eax
je 0x410be2
mov esi, 1
jmp 0x410be4
xor esi, esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.00402a00
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00402a00
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x401f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
call fcn.00402500
test eax, eax
je 0x40211f
push 0
push 2
call dword [0x408c84]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x402143
mov ecx, 0x4a
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x128
call dword [0x408c74]
lea ecx, [esp + 0x20]
push ecx
push esi
mov byte [esp + 0x378], 0
call dword [0x408c7c]
test eax, eax
je 0x401fe0
lea ebx, [ebx]
mov edx, dword [esp + 0x28]
cmp edx, dword [ebp + 8]
jne 0x401fd0
xor eax, eax
jmp 0x401fc0
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0x370], cl
inc eax
test cl, cl
jne 0x401fc0
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x408c7c]
test eax, eax
jne 0x401fb0
push esi
call dword [section..rdata]
mov al, byte [esp + 0x370]
test al, al
je 0x40211f
mov ecx, dword [ebp + 8]
push ecx
push 8
call dword [0x408c84]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x402143
mov ecx, 0x89
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
xor edx, edx
lea eax, [esp + 0x148]
mov ebx, edx
push eax
mov edi, edx
push esi
mov dword [esp + 0x150], 0x224
mov dword [esp + 0x24], edx
call dword [0x408c80]
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x26c]
push edx
call 0x4061b8
add esp, 8
test eax, eax
jne 0x40206b
mov ebx, dword [esp + 0x15c]
mov edi, dword [esp + 0x160]
lea eax, [esp + 0x148]
push eax
push esi
call dword [0x408c78]
test eax, eax
je 0x4020bd
mov edi, edi
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x26c]
push edx
call 0x4061b8
add esp, 8
test eax, eax
jne 0x4020aa
mov ebx, dword [esp + 0x15c]
mov edi, dword [esp + 0x160]
lea eax, [esp + 0x148]
push eax
push esi
call dword [0x408c78]
test eax, eax
jne 0x402080
push esi
call dword [section..rdata]
test ebx, ebx
je 0x40211f
cmp edi, 0x2000
jb 0x4020d5
mov edi, 0x2000
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x10
call dword [0x406020]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40211f
push edi
push 0
call dword [0x406048]
mov esi, eax
test esi, esi
je 0x40211f
mov edx, dword [esp + 0x10]
push 0x4082d8
push edi
push esi
push ebx
push edx
call dword [0x406044]
test eax, eax
je 0x402118
cmp word [esi], 0x5a4d
je 0x402128
push esi
call dword [0x406040]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
push esi
jne 0x402119
mov edi, dword [eax + esi + 0x28]
add edi, ebx
call dword [0x406040]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404dfe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404e2c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404e33
cmp ebx, dword [eax + 4]
jae 0x404e33
xor eax, eax
jmp 0x405023
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404e44
xor eax, eax
inc eax
jmp 0x405022
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404e5a
cmp ecx, edx
jae 0x404f9f
cmp dword [eax + 4], 0
je 0x404e63
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404e4b
cmp dword [ebp + 8], 0
je 0x404e85
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404f9f
cmp eax, esi
jae 0x404f9f
mov eax, dword [0x408e18]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404eaa
cmp dword [esi*4 + 0x408e20], edi
je 0x404fa3
inc esi
cmp esi, eax
jl 0x404e98
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4060ec]
test eax, eax
je 0x40501f
cmp dword [ebp - 8], 0x1000000
jne 0x40501f
test byte [ebp - 0xc], 0xcc
je 0x404f28
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40501f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40501f
cmp word [eax + 0x18], 0x10b
jne 0x40501f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40501f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404f28
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404f28
test byte [ecx + 0x27], 0x80
jne 0x404f9f
push 1
push 0x408e60
call dword [0x4060e8]
test eax, eax
jne 0x404e3c
mov ecx, dword [0x408e18]
test ecx, ecx
mov edx, ecx
jle 0x404f5c
lea eax, [ecx*4 + 0x408e1c]
cmp dword [eax], edi
je 0x404f5c
dec edx
sub eax, 4
test edx, edx
jg 0x404f50
test edx, edx
jne 0x404f8d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404f69
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404f81
lea eax, [edx*4 + 0x408e20]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404f6f
cmp ecx, 0x10
jge 0x404f8d
inc ecx
mov dword [0x408e18], ecx
push 0
push 0x408e60
call dword [0x4060e8]
jmp 0x404e3c
xor eax, eax
jmp 0x405022
test esi, esi
jle 0x404e3c
mov ebx, dword [0x4060e8]
push 1
push 0x408e60
call ebx
test eax, eax
jne 0x404e3c
cmp dword [esi*4 + 0x408e20], edi
je 0x404ff9
mov eax, dword [0x408e18]
lea esi, [eax - 1]
test esi, esi
jl 0x404fe7
cmp dword [esi*4 + 0x408e20], edi
je 0x404fe3
dec esi
jns 0x404fd7
test esi, esi
jge 0x404ff7
cmp eax, 0x10
jge 0x404ff2
inc eax
mov dword [0x408e18], eax
lea esi, [eax - 1]
jmp 0x404ff9
je 0x405011
xor ecx, ecx
test esi, esi
jl 0x405011
lea eax, [ecx*4 + 0x408e20]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404fff
push 0
push 0x408e60
call ebx
jmp 0x404e3c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401666
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
inc dword [0x404072]
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0x5c]
push eax
push dword [0x404072]
call fcn.004020b8
lea eax, [ebp - 0x5c]
push eax
push str.col_butn_class
lea eax, [ebp - 0x54]
push eax
push 2
call fcn.00402114
add esp, 0x10
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0x3000
mov dword [ebp - 0x2c], 0x401484
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x28
mov eax, dword [0x404138]
mov dword [ebp - 0x20], eax
push 0xffffff
call sub.gdi32.dll_CreateSolidBrush
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x404138]
push 0
push dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x50800000
push 0
lea eax, [ebp - 0x54]
push eax
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push 0xffffff
push 4
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp + 0x24]
push 8
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp + 0x20]
push 0xc
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push 0
push 0x10
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push 5
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
push dword [ebp - 4]
call sub.user32.dll_UpdateWindow
mov eax, dword [ebp - 4]
leave
ret 0x20