joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e0
Capabilities:
Check mutex on windows
Print debug messages
Terminate thread

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x410d40
push 0x67
push esi
call edi
push 0x64
push 0x410cd8
push 0x6d
push esi
call edi
push str.SCANOP_MUTEX
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x410da8], eax
je 0x401563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401542
push str._TRACE_New_Mutex_is_created._n
call ebp
push 1
call fcn.00401940
add esp, 4
test eax, eax
je 0x401557
mov eax, esi
call fcn.00401680
mov eax, dword [esp + 0x38]
push eax
mov eax, esi
call fcn.00401710
add esp, 4
test eax, eax
jne 0x401477
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
push str.sendvalue.installer.epson.co.jp
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
mov dword [0x410dbc], eax
je 0x401499
push eax
push str._INFO_The_massage_of_sendvalue.installer.epson.co.jp_is_registerd:__x_n
call fcn.00401000
add esp, 8
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x4014e0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x4014c0
pop ebx
mov eax, dword [0x410dac]
test eax, eax
je 0x40156d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401510
mov edx, dword [0x410dac]
push 4
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.TRACE:_Force_Close_Thread_n
jmp 0x401515
push str.TRACE:_Closing_Thread_detected_n
call ebp
mov eax, dword [0x410dac]
push 0x410db8
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [0x410dac]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x410db0]
push edx
call esi
jmp 0x40156d
push str._TRACE_An_existing_Mutex_is_opened._n
call ebp
push 0
call fcn.00401940
add esp, 4
test eax, eax
jne 0x40156d
mov dword [0x410db8], 3
jmp 0x40156d
mov dword [0x410db8], 2
cmp dword [0x410ac8], 0
je 0x40158b
push str._TRACE_The_result_code_will_be_posted_to_parent_application._n
call ebp
mov eax, dword [0x410ac8]
push eax
call fcn.004015f0
add esp, 4
mov eax, dword [0x410db8]
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x401598
jmp dword [eax*4 + 0x4015d8]
mov eax, 1
jmp 0x4015b6
mov eax, 3
jmp 0x4015b6
mov eax, 2
jmp 0x4015b6
xor eax, eax
push eax
push str._INFO_g_dwExitCode:__x_n
mov dword [0x410db4], eax
call fcn.00401000
mov eax, dword [0x410db4]
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x401940
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x4c
mov eax, dword [0x40f040]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
xor esi, esi
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 1
mov dword [0x410cd4], esi
mov dword [0x410acc], esi
mov dword [0x410ac8], esi
mov dword [0x410ad0], 0xb4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
jne 0x4019a1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00401b6f
add esp, 0x4c
ret
cmp dword [esp + 0xc], esi
jle 0x401b29
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esp, [esp]
mov ecx, dword [edi + esi*4]
push 7
push str._NODISP
push ecx
call fcn.0040214d
add esp, 0xc
test eax, eax
jne 0x4019e1
mov dword [0x410cd4], eax
jmp 0x401b18
mov edx, dword [edi + esi*4]
push 5
push str._W32:
push edx
call fcn.0040214d
add esp, 0xc
test eax, eax
jne 0x401a2b
mov ecx, dword [edi + esi*4]
push eax
push eax
push 0x40
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
add ecx, 0xa
push ecx
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00402485
add esp, 0xc
mov dword [0x410ac8], eax
jmp 0x401b10
mov eax, dword [edi + esi*4]
push 4
push str._TO:
push eax
call fcn.0040214d
add esp, 0xc
test eax, eax
jne 0x401a7e
mov edx, dword [edi + esi*4]
push eax
push eax
push 0x40
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
add edx, 8
push edx
push eax
push eax
call ebx
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402703
push eax
push str._INFO_Timeout_is_set_to__d_n
mov dword [0x410ad0], eax
call fcn.00401000
add esp, 0x14
jmp 0x401b18
mov ecx, dword [edi + esi*4]
push 4
push str._DRV
push ecx
call fcn.0040214d
add esp, 0xc
test eax, eax
jne 0x401ac7
mov edx, dword [edi + esi*4]
push eax
push eax
push 0x100
push 0x410ad4
push 0xffffffffffffffff
add edx, 8
push edx
push eax
push eax
call ebx
push 0x410ad4
push str._INFO_DriverName_is_set_to__s_n
call fcn.00401000
add esp, 8
push 0x410ad4
jmp 0x401b0e
mov eax, dword [edi + esi*4]
push 6
push str._DEVID
push eax
call fcn.0040214d
add esp, 0xc
test eax, eax
jne 0x401b18
mov ecx, dword [edi + esi*4]
push eax
push eax
push 0x100
push 0x410bd4
push 0xffffffffffffffff
add ecx, 0xc
push ecx
push eax
push eax
call ebx
push 0x410bd4
push str._INFO_DeviceID_is_set_to__s_n
call fcn.00401000
add esp, 8
push 0x410bd4
call ebp
test eax, eax
jne 0x401b18
mov dword [esp + 0x10], eax
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x4019c0
pop ebp
xor esi, esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x58], esi
jne 0x401b5a
push esi
push 0x410cd8
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x401b5a
mov edx, dword [0x410ad0]
push edx
push esi
push 0x8000
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00401b6f
add esp, 0x4c
ret
Function at 0x401b6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f040]
jne 0x401b79
repz ret
jmp fcn.0040297c

Function at 0x40562c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f808]
je 0x405647
inc edi
cmp edi, 0x17
jb 0x405638
cmp edi, 0x17
jae 0x4057c7
push ebp
push 3
call fcn.00409745
cmp eax, 1
pop ecx
je 0x405793
push 3
call fcn.00409745
test eax, eax
pop ecx
jne 0x40567b
cmp dword [0x40f03c], 1
je 0x405793
cmp ebx, 0xfc
je 0x4057c6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4103c8
push ebp
call fcn.00407279
add esp, 0xc
test eax, eax
je 0x4056b1
push esi
push esi
push esi
push esi
push esi
call fcn.00402bea
add esp, 0x14
push 0x104
mov esi, 0x4103e1
push esi
push 0
mov byte [0x4104e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4056f5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407279
add esp, 0xc
test eax, eax
je 0x4056f5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402bea
add esp, 0x14
push esi
call fcn.00407030
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40573a
push esi
call fcn.00407030
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4106dc
push 0x40c9f4
sub ecx, eax
push ecx
push eax
call fcn.00408636
add esp, 0x14
test eax, eax
je 0x40573a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402bea
add esp, 0x14
jmp 0x40573c
xor esi, esi
push 0x40c9f0
push ebx
push ebp
call fcn.00408572
add esp, 0xc
test eax, eax
je 0x40575c
push esi
push esi
push esi
push esi
push esi
call fcn.00402bea
add esp, 0x14
push dword [edi*8 + 0x40f80c]
push ebx
push ebp
call fcn.00408572
add esp, 0xc
test eax, eax
je 0x40577e
push esi
push esi
push esi
push esi
push esi
call fcn.00402bea
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00409588
add esp, 0xc
jmp 0x4057c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4057c6
cmp ebp, 0xffffffff
je 0x4057c6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f80c]
push dword [esi]
call fcn.00407030
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi - 0x68000007], esp
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.004064e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040649a
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.004064e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040649a
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.004064d5
sbb ch, dl
inc edx
xchg esp, eax
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.004064e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040649a
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.004064d5
add dword [edi - 0x12], edx
mov ch, 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x4071c9
cmp dword [ebp - 0x398], 0
je 0x407393
cmp dword [ebp + 0xc], 1
je 0x407393
cmp dword [ebp + 0xc], 8
jne 0x40735b
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
test dword [edx - 7], edx
invalid
call dword [esi]
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
call fcn.004064d5
cmp eax, 0x80164015
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.004064d5
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
Function at 0x4073d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004064b3
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte ss:[ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004064e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040649a
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004064d5
daa
or bh, byte [esi + 0x1046813]
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004064d5
dec di
sub dl, byte [edx - 0x80]
loopne 0x4074f3
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
ljmp 0xc6b2
inc ebp
in al, dx
add esi, 0x45
in eax, dx
xchg esi, eax
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.004064e5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040649a
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x407581
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x4075a1
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x4075be
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0x104
jge 0x407625
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
and eax, 0x80
test eax, eax
je 0x4075f0
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
jmp 0x407623
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
cmp eax, 0x5c
jne 0x40760f
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
test eax, eax
jne 0x407623
invalid
Function at 0x409588
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040469c
xor ebx, ebx
cmp dword [0x410998], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40965e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40973e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40973e
push eax
call fcn.0040462e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410998], eax
call esi
push eax
call fcn.0040462e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41099c], eax
call esi
push eax
call fcn.0040462e
mov dword [0x4109a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004053b9
test eax, eax
pop ecx
pop ecx
je 0x40962c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402bea
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40965e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040462e
cmp eax, ebx
pop ecx
mov dword [0x4109a8], eax
je 0x40965e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040462e
pop ecx
mov dword [0x4109a4], eax
mov eax, dword [0x4109a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4096e3
cmp dword [0x4109a8], ecx
je 0x4096e3
push eax
call fcn.004046a5
push dword [0x4109a8]
mov esi, eax
call fcn.004046a5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4096e3
cmp edi, ebx
je 0x4096e3
call esi
cmp eax, ebx
je 0x4096b0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4096b0
test byte [ebp - 0x18], 1
jne 0x4096e3
lea eax, [ebp - 0x10]
push eax
call fcn.004053f0
test eax, eax
pop ecx
je 0x4096cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402bea
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4096da
or dword [ebp + 0x10], 0x200000
jmp 0x40971e
or dword [ebp + 0x10], 0x40000
jmp 0x40971e
mov eax, dword [0x41099c]
cmp eax, dword [ebp - 8]
je 0x40971e
push eax
call fcn.004046a5
cmp eax, ebx
pop ecx
je 0x40971e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40971e
mov eax, dword [0x4109a0]
cmp eax, dword [ebp - 8]
je 0x40971e
push eax
call fcn.004046a5
cmp eax, ebx
pop ecx
je 0x40971e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410998]
call fcn.004046a5
cmp eax, ebx
pop ecx
je 0x40973e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409740
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.014e6000
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401cd8
cmp byte [esi + ebx - 1], 0xa
je 0x401cac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406884], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x4024d8
mov edi, dword [0x406884]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x4023e7
test byte [0x403018], 8
jne 0x402480
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x403028], 8
jne 0x402440
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402389
cmp esi, 3
jbe 0x4023f8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40239a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x404b08]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402389
mov dword [esp], 0x403028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x402360
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x402360
mov dword [esp], 0x403018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40234b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x402353
mov eax, 0xffffffff
jmp 0x4023e7

Function at 0x402550
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_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 al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x85e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x85e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x887074
push ecx
mov edi, eax
call fcn.00872198
mov esi, eax
add esp, 8
test esi, esi
jne 0x85e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0087202e
push esi
call fcn.00871fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret