joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bef3
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.0040d9f0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040d9f0
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 0x40bf8a
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 0x40bf6b
push str.RunSfxSetup_CreateProcess_FormatMessage_Error._n
call fcn.00409a2f
pop ecx
pop ecx
jmp 0x40bf85
push dword [ebp + 8]
push ebx
push str.RunSfxSetup_CreateProcess_Cmd_s__Error:__s_n
call fcn.00409a2f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
jmp 0x40bfd3
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.00409a2f
add esp, 0xc
cmp dword [ebp - 0x28], 1
ja 0x40bfd0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
pop esi
leave
ret 4

Function at 0x40bfd8
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 0x40c02f
lea eax, [ebp - 0x228]
push eax
push esi
mov dword [ebp - 0x228], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x40c033
xor al, al
jmp 0x40c066
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00417bb2
test eax, eax
pop ecx
pop ecx
je 0x40c05b
lea eax, [ebp - 0x228]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x40c033
jmp 0x40c05d
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.00410647
leave
ret
Function at 0x40c073
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.004103b0
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 0x40c118
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x1c4]
mov dword [ebp - 0xb8], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c11f
xor eax, eax
jmp 0x40c1cf
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00417bb2
test eax, eax
pop ecx
pop ecx
jne 0x40c1a3
push dword [ebp - 0xb0]
lea eax, [ebp - 0x1bc]
push eax
call fcn.0040bfd8
test al, al
pop ecx
pop ecx
je 0x40c1a3
lea eax, [ebp - 0x94]
push eax
push str.KillLavaProcessA:_pe32.szExeFile_S_n
call fcn.00409a2f
inc dword [ebp - 0x1c0]
cmp byte [ebp + 0x7c], bl
pop ecx
pop ecx
je 0x40c1bd
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.00409a2f
add esp, 0xc
cmp edi, ebx
je 0x40c19c
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 0x40c11f
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.00410647
add ebp, 0x74
leave
ret 4
Function at 0x40c1e1
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 0x40c290
mov edi, str.DianjiRingExit
push ebp
inc ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c274
push str.CheckLavaRun_DeleteFile
call fcn.0040afa6
cmp ebx, 1
pop ecx
jne 0x40c257
push 0
call fcn.004022d0
cmp eax, ebx
jne 0x40c28c
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.00409a2f
add esp, 0xc
jmp 0x40c263
cmp ebx, 0x3c
jne 0x40c263
push 1
call fcn.0040c073
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x5a
jl 0x40c206
inc ebx
cmp ebx, 0x5a
jl 0x40c29b
push 0
push 0x82
push 0
call fcn.00409e33
push 0xfffffffffffffffd
pop eax
jmp 0x40c29d
push 0xfffffffffffffffe
jmp 0x40c289
push str.CheckLavaRun_CopyFile
call fcn.0040afa6
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c74b
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 0x40c7ac
cmp dx, 0x2f
je 0x40c7ac
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.00409a2f
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 0x40c802
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.0040f24f
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.0040c6f7
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x3ac]
push eax
mov dword [ebp - 0x6c], edx
call fcn.0040c6f7
cmp dword [ebp - 0x6c], edx
pop ecx
pop ecx
jne 0x40c8c0
cmp dword [ebp - 0x70], eax
je 0x40c8dc
push 0
lea eax, [ebp + 0x3ac]
push eax
lea eax, [ebp + 0x1a4]
push eax
call ebx
test eax, eax
jne 0x40c8dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 2
jb 0x40c84a
mov ecx, dword [ebp + 0x7bc]
pop edi
pop esi
pop ebx
call fcn.00410647
add ebp, 0x7c0
leave
ret
Function at 0x40c8ff
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 0x40c933
call fcn.0040c74b
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00410647
add esp, 0x20c
ret

Function at 0x40ec3a
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 0x40ec57
call fcn.00411bab
mov dword [eax], 0x16
xor eax, eax
jmp 0x40ecc1
push esi
push 0x8c
push 1
call fcn.0040da50
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40ecac
push esi
call fcn.00411e99
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 0x40ec8a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40eba5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ecc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040dc98
test ebx, ebx
pop ecx
je 0x40ecbe
push ebx
call fcn.00411bbd
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f3b2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41b570
call fcn.00410658
push 8
call fcn.00410fec
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x424f18], esi
jne 0x40f3e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424f14], esi
mov al, byte [ebp + 0x10]
mov byte [0x424f10], al
cmp dword [ebp + 0xc], edi
jne 0x40f430
cmp dword [0x427930], edi
je 0x40f420
mov eax, dword [0x42792c]
sub eax, 4
mov dword [0x42792c], eax
cmp eax, dword [0x427930]
jb 0x40f420
mov eax, dword [eax]
cmp eax, edi
je 0x40f401
call eax
jmp 0x40f401
push 0x424040
mov eax, 0x424038
call fcn.0040f330
pop ecx
push 0x42404c
mov eax, 0x424044
call fcn.0040f330
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f461
cmp dword [ebp + 0x10], edi
jne 0x40f46f
mov dword [0x424f18], esi
push dword [ebp + 8]
call fcn.0040f2ee
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f46e
push 8
call fcn.00410f37
pop ecx
ret
call fcn.00410693
ret
Function at 0x410442
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41b610
call fcn.00410658
mov edi, 0x94
mov eax, edi
call fcn.00416010
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 [0x424ed8], ecx
mov eax, dword [esi + 4]
mov dword [0x424ee4], eax
mov edx, dword [esi + 8]
mov dword [0x424ee8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424edc], esi
cmp ecx, 2
je 0x4104a2
or esi, 0x8000
mov dword [0x424edc], esi
shl eax, 8
add eax, edx
mov dword [0x424ee0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4104dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4104dd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4104f5
cmp eax, 0x20b
je 0x4104e2
mov dword [ebp - 0x1c], esi
jmp 0x410509
cmp dword [ecx + 0x84], 0xe
jbe 0x4104dd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410503
cmp dword [ecx + 0x74], 0xe
jbe 0x4104dd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411037
pop ecx
test eax, eax
jne 0x41051d
push 0x1c
call fcn.0041041e
pop ecx
call fcn.00412093
test eax, eax
jne 0x41052e
push 0x10
call fcn.0041041e
pop ecx
call fcn.00413b2b
mov dword [ebp - 4], esi
call fcn.00415e08
test eax, eax
jge 0x410547
push 0x1b
call fcn.004103f9
pop ecx
call fcn.00415d69
mov dword [0x427924], eax
call fcn.00415bff
mov dword [0x424f2c], eax
call fcn.00415b69
test eax, eax
jge 0x41056c
push 8
call fcn.004103f9
pop ecx
call fcn.00415936
test eax, eax
jge 0x41057d
push 9
call fcn.004103f9
pop ecx
push 1
call fcn.0040f348
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410593
push eax
call fcn.004103f9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004158f0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4105b4
movzx eax, word [ebp - 0x40]
jmp 0x4105b7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004079bd
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4105d5
push edi
call fcn.0040f475
call fcn.0040f497
jmp 0x410607
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410693
ret
Function at 0x41368d
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x41bdd8
call fcn.00410658
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 0x413731
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00416010
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41371e
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x413731
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41374c
cmp byte [edi + 1], 0x3a
jne 0x41374c
movzx eax, byte [edi]
push eax
call fcn.00417d1b
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41375c
push edi
call fcn.0040dc98
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.00410647
call fcn.00410693
ret
Function at 0x414cdf
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 0x414d10
xor eax, eax
jmp 0x414e99
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 0x414d4c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00418be4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x414e27
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x414e65
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 0x414db0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414da1
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 0x414d81
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 0x414df0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x414df9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x414d72
jmp 0x414dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x414e94
cmp dword [ebp - 0x6c], edi
je 0x414e65
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x414e5a
call fcn.00411bab
mov dword [eax], 9
call fcn.00411bb4
mov dword [eax], esi
jmp 0x414e8f
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 0x414e4f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x414dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x414dfb
push dword [ebp - 0x6c]
call fcn.00411bbd
pop ecx
jmp 0x414e8f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x414e7d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x414e7d
xor eax, eax
jmp 0x414e97
call fcn.00411bab
mov dword [eax], 0x1c
call fcn.00411bb4
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x414e97
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00410647
add ebp, 0x3a0
leave
ret
Function at 0x415740
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 0x415775
inc eax
cmp eax, 0x13
jb 0x415766
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x424a28]
jne 0x41589b
mov eax, dword [0x424f30]
cmp eax, 1
je 0x415873
cmp eax, edx
jne 0x4157a5
cmp dword [0x4240b4], 1
je 0x415873
cmp ecx, 0xfc
je 0x41589b
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 0x4157db
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040dba0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040db10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41580f
mov eax, edi
push eax
call fcn.0040db10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c2e8
push edi
call fcn.0040dd10
add esp, 0x10
push edi
call fcn.0040db10
push dword [esi + 0x424a2c]
mov ebx, eax
call fcn.0040db10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416010
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040dba0
push edi
push ebx
call fcn.0040dbb0
push 0x41c2c8
push ebx
call fcn.0040dbb0
push dword [esi + 0x424a2c]
push ebx
call fcn.0040dbb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00418ce8
add esp, 0x2c
jmp 0x41589b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x424a2c]
push dword [esi]
call fcn.0040db10
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.00410647
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415bff
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 0x415c48
call ebp
mov esi, eax
cmp esi, ebx
je 0x415c2e
mov dword [0x4253a4], 1
jmp 0x415c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415c43
push 2
pop eax
mov dword [0x4253a4], eax
jmp 0x415c48
mov eax, dword [0x4253a4]
cmp eax, 1
jne 0x415ca5
cmp esi, ebx
jne 0x415c60
call ebp
mov esi, eax
cmp esi, ebx
jne 0x415c60
xor eax, eax
jmp 0x415d4c
cmp word [esi], bx
mov eax, esi
je 0x415c75
inc eax
inc eax
cmp word [eax], bx
jne 0x415c67
inc eax
inc eax
cmp word [eax], bx
jne 0x415c67
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040ed6c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x415c98
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x415d4c
push ebp
push esi
push edi
call fcn.0040e300
add esp, 0xc
jmp 0x415c8a
cmp eax, 2
je 0x415cae
cmp eax, ebx
jne 0x415c59
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x415c59
cmp byte [ebp], bl
mov esi, ebp
je 0x415ce4
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x415c59
push esi
add edi, eax
call fcn.0040db10
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x415cc1
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040ed6c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x415d5d
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x415d3e
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 0x415d53
push edi
call fcn.0040db10
push esi
lea edi, [edi + eax + 1]
call fcn.0040e73d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x415d04
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.0040dc98
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x415c59
Function at 0x415d69
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 0x415da9
call esi
test eax, eax
je 0x415d8e
mov dword [0x4253a8], 1
jmp 0x415dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415da5
mov dword [0x4253a8], 2
jmp 0x415db7
xor eax, eax
jmp 0x415e05
cmp eax, 1
jne 0x415db2
call esi
jmp 0x415e05
cmp eax, 2
jne 0x415da5
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 0x415dfd
lea eax, [esi + esi]
push eax
call fcn.0040ed6c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x415dfd
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x415e01
push ebp
call fcn.0040dc98
pop ecx
xor eax, eax
jmp 0x415e03
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret