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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040daa0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040daa0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c035
push esi
push esi
lea eax, [ebp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
push esi
jne 0x40c016
push str.RunSfxSetup_CreateProcess_FormatMessage_Error._n
call fcn.00409adb
pop ecx
pop ecx
jmp 0x40c030
push dword [ebp + 8]
push ebx
push str.RunSfxSetup_CreateProcess_Cmd_s__Error:__s_n
call fcn.00409adb
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
jmp 0x40c07e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x28]
push ebx
push str.RunSfxSetup_Cmd_s__return_d_n
call fcn.00409adb
add esp, 0xc
cmp dword [ebp - 0x28], 1
ja 0x40c07b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
pop esi
leave
ret 4

Function at 0x40c083
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], ebx
mov ecx, 0x88
lea edi, [ebp - 0x224]
push 8
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40c0da
lea eax, [ebp - 0x228]
push eax
push esi
mov dword [ebp - 0x228], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x40c0de
xor al, al
jmp 0x40c111
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00417c92
test eax, eax
pop ecx
pop ecx
je 0x40c106
lea eax, [ebp - 0x228]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x40c0de
jmp 0x40c108
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00410727
leave
ret
Function at 0x40c11e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x238
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
mov dword [ebp + 0x70], eax
push 0x104
lea eax, [ebp - 0x1bc]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x1c0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1bc]
push 0x5c
push eax
call fcn.00410490
pop ecx
pop ecx
push ebx
push ebx
lea ecx, [ebp - 0xb9]
sub ecx, eax
push ecx
lea esi, [eax + 1]
push esi
push 0xffffffffffffffff
push 0x4259c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x49
pop ecx
push ebx
xor eax, eax
mov dword [ebp - 0xb8], ebx
lea edi, [ebp - 0xb4]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x1c4], eax
je 0x40c1c3
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c4]
mov dword [ebp - 0xb8], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c1ca
xor eax, eax
jmp 0x40c27a
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00417c92
test eax, eax
pop ecx
pop ecx
jne 0x40c24e
push dword [ebp - 0xb0]
lea eax, [ebp - 0x1bc]
push eax
call fcn.0040c083
test al, al
pop ecx
pop ecx
je 0x40c24e
lea eax, [ebp - 0x94]
push eax
push str.KillLavaProcessA:_pe32.szExeFile_S_n
call fcn.00409adb
inc dword [ebp - 0x1c0]
cmp byte [ebp + 0x7c], bl
pop ecx
pop ecx
je 0x40c268
push dword [ebp - 0xb0]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0xb0]
mov edi, eax
push edi
push str.KillLavaProcessA:_hLava0x_x__pe32.th32ProcessID0x_x_n
call fcn.00409adb
add esp, 0xc
cmp edi, ebx
je 0x40c247
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c1ca
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.00410727
add ebp, 0x74
leave
ret 4
Function at 0x40c28c
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x4258f8
mov ebp, 0x4259c0
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c33b
mov edi, str.DianjiRingExit
push ebp
inc ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c31f
push str.CheckLavaRun_DeleteFile
call fcn.0040b052
cmp ebx, 1
pop ecx
jne 0x40c302
push 0
call fcn.004022d0
cmp eax, ebx
jne 0x40c337
push edi
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
push 0
mov esi, eax
push esi
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
push esi
push str.CheckLavaRun__uMsg_d__g_szExitMessage_s_n
call fcn.00409adb
add esp, 0xc
jmp 0x40c30e
cmp ebx, 0x3c
jne 0x40c30e
push 1
call fcn.0040c11e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x5a
jl 0x40c2b1
inc ebx
cmp ebx, 0x5a
jl 0x40c346
push 0
push 0x82
push 0
call fcn.00409edf
push 0xfffffffffffffffd
pop eax
jmp 0x40c348
push 0xfffffffffffffffe
jmp 0x40c334
push str.CheckLavaRun_CopyFile
call fcn.0040b052
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c7f6
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
mov dword [ebp + 0x7bc], eax
push 0x104
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx + 0x5b4]
mov dx, word [eax - 2]
cmp dx, 0x5c
je 0x40c857
cmp dx, 0x2f
je 0x40c857
mov word [eax], 0x5c
lea eax, [ebp + ecx + 0x5b6]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, str.IdleTest.dll
push edi
push eax
call esi
lea eax, [ebp + 0x5b4]
push eax
push str.DoIdleTest:_idletest_to_system_directory:__s_n
call fcn.00409adb
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ecx
pop ecx
push 0
lea eax, [ebp + 0x5b4]
push eax
push 0x41d9b0
call ebx
push 0
lea eax, [ebp + 0x5b4]
push eax
push edi
call ebx
test eax, eax
je 0x40c8ad
push 1
push 0x41d9b0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x104
lea eax, [ebp - 0x64]
push eax
xor edi, edi
push edi
mov dword [ebp - 0x7c], str.mainprog.bin
mov dword [ebp - 0x78], str.RDSS.exe
mov dword [ebp - 0x74], str.RDSS.bin
mov dword [ebp - 0x80], 0x4259c0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.0040f2ff
pop ecx
mov word [eax + 2], di
mov dword [ebp - 0x68], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1a4]
push eax
call esi
mov eax, dword [ebp - 0x68]
push dword [ebp + eax*8 - 0x80]
lea eax, [ebp + 0x1a4]
push eax
call edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x3ac]
push eax
call esi
mov eax, dword [ebp - 0x68]
push dword [ebp + eax*8 - 0x7c]
lea eax, [ebp + 0x3ac]
push eax
call edi
push 1
lea eax, [ebp + 0x1a4]
push eax
lea eax, [ebp + 0x3ac]
push eax
call ebx
lea eax, [ebp + 0x1a4]
push eax
call fcn.0040c7a2
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x3ac]
push eax
mov dword [ebp - 0x6c], edx
call fcn.0040c7a2
cmp dword [ebp - 0x6c], edx
pop ecx
pop ecx
jne 0x40c96b
cmp dword [ebp - 0x70], eax
je 0x40c987
push 0
lea eax, [ebp + 0x3ac]
push eax
lea eax, [ebp + 0x1a4]
push eax
call ebx
test eax, eax
jne 0x40c987
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 2
jb 0x40c8f5
mov ecx, dword [ebp + 0x7bc]
pop edi
pop esi
pop ebx
call fcn.00410727
add ebp, 0x7c0
leave
ret
Function at 0x40c9aa
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4240b8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
push esi
push edi
push 0x4259c0
mov esi, 0x4258f8
push esi
mov dword [esp + 0x220], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
xor edi, edi
lea esi, [edi + 0x41d98c]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..DEL
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
lea eax, [esp + 0x14]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
add edi, 4
cmp edi, 0x24
jb 0x40c9de
call fcn.0040c7f6
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00410727
add esp, 0x20c
ret

Function at 0x40ecea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40ed07
call fcn.00411c8b
mov dword [eax], 0x16
xor eax, eax
jmp 0x40ed71
push esi
push 0x8c
push 1
call fcn.0040db00
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40ed5c
push esi
call fcn.00411f79
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40ed3a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40ec55
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ed70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040dd48
test ebx, ebx
pop ecx
je 0x40ed6e
push ebx
call fcn.00411c9d
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f80d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41b580
call fcn.00410738
push 8
call fcn.004110cc
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x424f1c], esi
jne 0x40f841
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424f18], esi
mov al, byte [ebp + 0x10]
mov byte [0x424f14], al
cmp dword [ebp + 0xc], edi
jne 0x40f88b
cmp dword [0x427930], edi
je 0x40f87b
mov eax, dword [0x42792c]
sub eax, 4
mov dword [0x42792c], eax
cmp eax, dword [0x427930]
jb 0x40f87b
mov eax, dword [eax]
cmp eax, edi
je 0x40f85c
call eax
jmp 0x40f85c
push 0x424040
mov eax, 0x424038
call fcn.0040f78b
pop ecx
push 0x42404c
mov eax, 0x424044
call fcn.0040f78b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f8bc
cmp dword [ebp + 0x10], edi
jne 0x40f8ca
mov dword [0x424f1c], esi
push dword [ebp + 8]
call fcn.0040f749
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f8c9
push 8
call fcn.00411017
pop ecx
ret
call fcn.00410773
ret
Function at 0x410522
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41b610
call fcn.00410738
mov edi, 0x94
mov eax, edi
call fcn.004160f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x424edc], ecx
mov eax, dword [esi + 4]
mov dword [0x424ee8], eax
mov edx, dword [esi + 8]
mov dword [0x424eec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424ee0], esi
cmp ecx, 2
je 0x410582
or esi, 0x8000
mov dword [0x424ee0], esi
shl eax, 8
add eax, edx
mov dword [0x424ee4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4105bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4105bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4105d5
cmp eax, 0x20b
je 0x4105c2
mov dword [ebp - 0x1c], esi
jmp 0x4105e9
cmp dword [ecx + 0x84], 0xe
jbe 0x4105bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4105e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4105bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411117
pop ecx
test eax, eax
jne 0x4105fd
push 0x1c
call fcn.004104fe
pop ecx
call fcn.00412173
test eax, eax
jne 0x41060e
push 0x10
call fcn.004104fe
pop ecx
call fcn.004144fd
mov dword [ebp - 4], esi
call fcn.00415ee8
test eax, eax
jge 0x410627
push 0x1b
call fcn.004104d9
pop ecx
call fcn.00415e49
mov dword [0x427924], eax
call fcn.00415cdf
mov dword [0x424f2c], eax
call fcn.00415c49
test eax, eax
jge 0x41064c
push 8
call fcn.004104d9
pop ecx
call fcn.00415a16
test eax, eax
jge 0x41065d
push 9
call fcn.004104d9
pop ecx
push 1
call fcn.0040f7a3
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410673
push eax
call fcn.004104d9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004159d0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x410694
movzx eax, word [ebp - 0x40]
jmp 0x410697
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407a69
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4106b5
push edi
call fcn.0040f8d0
call fcn.0040f8f2
jmp 0x4106e7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410773
ret
Function at 0x41376d
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x41bdd8
call fcn.00410738
mov eax, dword [0x4240b8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x413811
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004160f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4137fe
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x413811
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41382c
cmp byte [edi + 1], 0x3a
jne 0x41382c
movzx eax, byte [edi]
push eax
call fcn.00417dfb
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41383c
push edi
call fcn.0040dd48
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.00410727
call fcn.00410773
ret
Function at 0x414dbf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4240b8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x414df0
xor eax, eax
jmp 0x414f79
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4265a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x414e2c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00418cc4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x414f07
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x414f45
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x414e90
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414e81
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x414e61
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414ed0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x414ed9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x414e52
jmp 0x414edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x414f74
cmp dword [ebp - 0x6c], edi
je 0x414f45
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x414f3a
call fcn.00411c8b
mov dword [eax], 9
call fcn.00411c94
mov dword [eax], esi
jmp 0x414f6f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414f2f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x414edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x414edb
push dword [ebp - 0x6c]
call fcn.00411c9d
pop ecx
jmp 0x414f6f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x414f5d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x414f5d
xor eax, eax
jmp 0x414f77
call fcn.00411c8b
mov dword [eax], 0x1c
call fcn.00411c94
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x414f77
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00410727
add ebp, 0x3a0
leave
ret
Function at 0x415820
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4240b8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x424a28]
je 0x415855
inc eax
cmp eax, 0x13
jb 0x415846
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x424a28]
jne 0x41597b
mov eax, dword [0x424f30]
cmp eax, 1
je 0x415953
cmp eax, edx
jne 0x415885
cmp dword [0x4240b4], 1
je 0x415953
cmp ecx, 0xfc
je 0x41597b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4158bb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040dc50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040dbc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4158ef
mov eax, edi
push eax
call fcn.0040dbc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c2e8
push edi
call fcn.0040ddc0
add esp, 0x10
push edi
call fcn.0040dbc0
push dword [esi + 0x424a2c]
mov ebx, eax
call fcn.0040dbc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004160f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040dc50
push edi
push ebx
call fcn.0040dc60
push 0x41c2c8
push ebx
call fcn.0040dc60
push dword [esi + 0x424a2c]
push ebx
call fcn.0040dc60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00418dc8
add esp, 0x2c
jmp 0x41597b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x424a2c]
push dword [esi]
call fcn.0040dbc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00410727
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415cdf
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4253a4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x415d28
call ebp
mov esi, eax
cmp esi, ebx
je 0x415d0e
mov dword [0x4253a4], 1
jmp 0x415d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415d23
push 2
pop eax
mov dword [0x4253a4], eax
jmp 0x415d28
mov eax, dword [0x4253a4]
cmp eax, 1
jne 0x415d85
cmp esi, ebx
jne 0x415d40
call ebp
mov esi, eax
cmp esi, ebx
jne 0x415d40
xor eax, eax
jmp 0x415e2c
cmp word [esi], bx
mov eax, esi
je 0x415d55
inc eax
inc eax
cmp word [eax], bx
jne 0x415d47
inc eax
inc eax
cmp word [eax], bx
jne 0x415d47
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040ee1c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x415d78
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x415e2c
push ebp
push esi
push edi
call fcn.0040e3b0
add esp, 0xc
jmp 0x415d6a
cmp eax, 2
je 0x415d8e
cmp eax, ebx
jne 0x415d39
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x415d39
cmp byte [ebp], bl
mov esi, ebp
je 0x415dc4
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x415d39
push esi
add edi, eax
call fcn.0040dbc0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x415da1
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040ee1c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x415e3d
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x415e1e
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x415e33
push edi
call fcn.0040dbc0
push esi
lea edi, [edi + eax + 1]
call fcn.0040e7ed
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x415de4
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040dd48
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x415d39
Function at 0x415e49
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4253a8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x415e89
call esi
test eax, eax
je 0x415e6e
mov dword [0x4253a8], 1
jmp 0x415e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415e85
mov dword [0x4253a8], 2
jmp 0x415e97
xor eax, eax
jmp 0x415ee5
cmp eax, 1
jne 0x415e92
call esi
jmp 0x415ee5
cmp eax, 2
jne 0x415e85
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x415edd
lea eax, [esi + esi]
push eax
call fcn.0040ee1c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x415edd
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x415ee1
push ebp
call fcn.0040dd48
pop ecx
xor eax, eax
jmp 0x415ee3
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret