joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b6d8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429c18
call fcn.0041b910
mov edi, 0x94
mov eax, edi
call fcn.00419fc0
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 [0x430db8], ecx
mov eax, dword [esi + 4]
mov dword [0x430dc4], eax
mov edx, dword [esi + 8]
mov dword [0x430dc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x430dbc], esi
cmp ecx, 2
je 0x41b738
or esi, 0x8000
mov dword [0x430dbc], esi
shl eax, 8
add eax, edx
mov dword [0x430dc0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b773
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b773
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b78b
cmp eax, 0x20b
je 0x41b778
mov dword [ebp - 0x1c], esi
jmp 0x41b79f
cmp dword [ecx + 0x84], 0xe
jbe 0x41b773
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b799
cmp dword [ecx + 0x74], 0xe
jbe 0x41b773
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041bd89
pop ecx
test eax, eax
jne 0x41b7b3
push 0x1c
call fcn.0041b6b4
pop ecx
call fcn.0041da39
test eax, eax
jne 0x41b7c4
push 0x10
call fcn.0041b6b4
pop ecx
call fcn.00420b5a
mov dword [ebp - 4], esi
call fcn.0042095c
test eax, eax
jge 0x41b7dd
push 0x1b
call fcn.0041b68f
pop ecx
call fcn.004208bd
mov dword [0x432574], eax
call fcn.00420753
mov dword [0x430bec], eax
call fcn.004206bd
test eax, eax
jge 0x41b802
push 8
call fcn.0041b68f
pop ecx
call fcn.0042048a
test eax, eax
jge 0x41b813
push 9
call fcn.0041b68f
pop ecx
push 1
call fcn.0041e8fe
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41b829
push eax
call fcn.0041b68f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00420444
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41b84a
movzx eax, word [ebp - 0x40]
jmp 0x41b84d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004051d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41b86b
push edi
call fcn.0041ea2b
call fcn.0041ea4d
jmp 0x41b89d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041b94b
ret
Function at 0x41cd26
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 0x41cd54
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 0x41cd5b
cmp ebx, dword [eax + 4]
jae 0x41cd5b
xor eax, eax
jmp 0x41cf4b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41cd6c
xor eax, eax
inc eax
jmp 0x41cf4a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41cd82
cmp ecx, edx
jae 0x41cec7
cmp dword [eax + 4], 0
je 0x41cd8b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41cd73
cmp dword [ebp + 8], 0
je 0x41cdad
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41cec7
cmp eax, esi
jae 0x41cec7
mov eax, dword [0x430d58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41cdd2
cmp dword [esi*4 + 0x430d60], edi
je 0x41cecb
inc esi
cmp esi, eax
jl 0x41cdc0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cf47
cmp dword [ebp - 8], 0x1000000
jne 0x41cf47
test byte [ebp - 0xc], 0xcc
je 0x41ce50
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41cf47
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41cf47
cmp word [eax + 0x18], 0x10b
jne 0x41cf47
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41cf47
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41ce50
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41ce50
test byte [ecx + 0x27], 0x80
jne 0x41cec7
push 1
push 0x430da0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41cd64
mov ecx, dword [0x430d58]
test ecx, ecx
mov edx, ecx
jle 0x41ce84
lea eax, [ecx*4 + 0x430d5c]
cmp dword [eax], edi
je 0x41ce84
dec edx
sub eax, 4
test edx, edx
jg 0x41ce78
test edx, edx
jne 0x41ceb5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ce91
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41cea9
lea eax, [edx*4 + 0x430d60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ce97
cmp ecx, 0x10
jge 0x41ceb5
inc ecx
mov dword [0x430d58], ecx
push 0
push 0x430da0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41cd64
xor eax, eax
jmp 0x41cf4a
test esi, esi
jle 0x41cd64
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x430da0
call ebx
test eax, eax
jne 0x41cd64
cmp dword [esi*4 + 0x430d60], edi
je 0x41cf21
mov eax, dword [0x430d58]
lea esi, [eax - 1]
test esi, esi
jl 0x41cf0f
cmp dword [esi*4 + 0x430d60], edi
je 0x41cf0b
dec esi
jns 0x41ceff
test esi, esi
jge 0x41cf1f
cmp eax, 0x10
jge 0x41cf1a
inc eax
mov dword [0x430d58], eax
lea esi, [eax - 1]
jmp 0x41cf21
je 0x41cf39
xor ecx, ecx
test esi, esi
jl 0x41cf39
lea eax, [ecx*4 + 0x430d60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41cf27
push 0
push 0x430da0
call ebx
jmp 0x41cd64
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e968
Capabilities:
Terminate process

Disassembly:
push 8
push 0x429f10
call fcn.0041b910
push 8
call fcn.0041bf2d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x430df8], esi
jne 0x41e99c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x430df4], esi
mov al, byte [ebp + 0x10]
mov byte [0x430df0], al
cmp dword [ebp + 0xc], edi
jne 0x41e9e6
cmp dword [0x432548], edi
je 0x41e9d6
mov eax, dword [0x432544]
sub eax, 4
mov dword [0x432544], eax
cmp eax, dword [0x432548]
jb 0x41e9d6
mov eax, dword [eax]
cmp eax, edi
je 0x41e9b7
call eax
jmp 0x41e9b7
push 0x42f048
mov eax, 0x42f040
call fcn.0041e8e6
pop ecx
push 0x42f054
mov eax, 0x42f04c
call fcn.0041e8e6
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41ea17
cmp dword [ebp + 0x10], edi
jne 0x41ea25
mov dword [0x430df8], esi
push dword [ebp + 8]
call fcn.0041e8a4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41ea24
push 8
call fcn.0041be78
pop ecx
ret
call fcn.0041b94b
ret

Function at 0x41fc66
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00419fc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41fd01
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x430db8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41fd01
cmp eax, 1
je 0x41fd22
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41fd01
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41fcce
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41fcfd
xor eax, eax
inc eax
jmp 0x41fd41
cmp edi, eax
jae 0x41fd05
xor eax, eax
jmp 0x41fd41
cmp eax, esi
jae 0x41fd0c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x430db8]
jmp 0x41fd25
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420130
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42f180]
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 + 0x42f718]
je 0x420165
inc eax
cmp eax, 0x13
jb 0x420156
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42f718]
jne 0x42028b
mov eax, dword [0x430bf0]
cmp eax, 1
je 0x420263
cmp eax, edx
jne 0x420195
cmp dword [0x42f324], 1
je 0x420263
cmp ecx, 0xfc
je 0x42028b
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 0x4201cb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041db80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041b980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4201ff
mov eax, edi
push eax
call fcn.0041b980
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x429c6c
push edi
call fcn.00420d80
add esp, 0x10
push edi
call fcn.0041b980
push dword [esi + 0x42f71c]
mov ebx, eax
call fcn.0041b980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00419fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041db80
push edi
push ebx
call fcn.0041db90
push 0x429c68
push ebx
call fcn.0041db90
push dword [esi + 0x42f71c]
push ebx
call fcn.0041db90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00420c7d
add esp, 0x2c
jmp 0x42028b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42f71c]
push dword [esi]
call fcn.0041b980
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.00419d15
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x420753
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x431024]
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 0x42079c
call ebp
mov esi, eax
cmp esi, ebx
je 0x420782
mov dword [0x431024], 1
jmp 0x4207a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x420797
push 2
pop eax
mov dword [0x431024], eax
jmp 0x42079c
mov eax, dword [0x431024]
cmp eax, 1
jne 0x4207f9
cmp esi, ebx
jne 0x4207b4
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4207b4
xor eax, eax
jmp 0x4208a0
cmp word [esi], bx
mov eax, esi
je 0x4207c9
inc eax
inc eax
cmp word [eax], bx
jne 0x4207bb
inc eax
inc eax
cmp word [eax], bx
jne 0x4207bb
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00419cd2
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4207ec
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4208a0
push ebp
push esi
push edi
call fcn.0041ba10
add esp, 0xc
jmp 0x4207de
cmp eax, 2
je 0x420802
cmp eax, ebx
jne 0x4207ad
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4207ad
cmp byte [ebp], bl
mov esi, ebp
je 0x420838
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4207ad
push esi
add edi, eax
call fcn.0041b980
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x420815
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00419cd2
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4208b1
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x420892
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 0x4208a7
push edi
call fcn.0041b980
push esi
lea edi, [edi + eax + 1]
call fcn.0041b05a
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x420858
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.00419bba
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4207ad
Function at 0x4208bd
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x431028]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4208fd
call esi
test eax, eax
je 0x4208e2
mov dword [0x431028], 1
jmp 0x420902
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4208f9
mov dword [0x431028], 2
jmp 0x42090b
xor eax, eax
jmp 0x420959
cmp eax, 1
jne 0x420906
call esi
jmp 0x420959
cmp eax, 2
jne 0x4208f9
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 0x420951
lea eax, [esi + esi]
push eax
call fcn.00419cd2
mov ebp, eax
test ebp, ebp
pop ecx
je 0x420951
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x420955
push ebp
call fcn.00419bba
pop ecx
xor eax, eax
jmp 0x420957
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x420c7d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x431030], ebx
push esi
push edi
jne 0x420cfd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420d38
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x431030], eax
je 0x420d38
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x431034], eax
call esi
cmp dword [0x430db8], 2
mov dword [0x431038], eax
jne 0x420cfd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x431040], eax
je 0x420cfd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43103c], eax
mov eax, dword [0x43103c]
test eax, eax
je 0x420d42
call eax
test eax, eax
je 0x420d29
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x431040]
test eax, eax
je 0x420d29
test byte [ebp - 8], 1
jne 0x420d42
cmp dword [0x430dc4], 4
jb 0x420d3c
or byte [ebp + 0x12], 0x20
jmp 0x420d61
xor eax, eax
jmp 0x420d71
or byte [ebp + 0x12], 4
jmp 0x420d61
mov eax, dword [0x431034]
test eax, eax
je 0x420d61
call eax
mov ebx, eax
test ebx, ebx
je 0x420d61
mov eax, dword [0x431038]
test eax, eax
je 0x420d61
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x431030]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42130b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42f180]
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 0x42133c
xor eax, eax
jmp 0x4214c5
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 + 0x432200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x421378
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042294c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421453
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x421491
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 0x4213dc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4213cd
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 0x4213ad
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 0x42141c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x421425
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42139e
jmp 0x421427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4214c0
cmp dword [ebp - 0x6c], edi
je 0x421491
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x421486
call fcn.0041acd7
mov dword [eax], 9
call fcn.0041ace0
mov dword [eax], esi
jmp 0x4214bb
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 0x42147b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x421427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x421427
push dword [ebp - 0x6c]
call fcn.0041ace9
pop ecx
jmp 0x4214bb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4214a9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4214a9
xor eax, eax
jmp 0x4214c3
call fcn.0041acd7
mov dword [eax], 0x1c
call fcn.0041ace0
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4214c3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00419d15
add ebp, 0x3a0
leave
ret
Function at 0x10002130
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x1008288c], 0
jne 0x1000229c
lea ecx, [ebp - 0x18]
call fcn.10003db0
lea ecx, [ebp - 0x58]
call fcn.10003db0
push 8
lea eax, [ebp - 0x30]
push eax
push 0x1005c448
call fcn.10003750
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0x1005c470
call fcn.10003750
push eax
push 0x10
lea edx, [ebp - 0x40]
push edx
push 0x1005c45c
call fcn.10003750
push eax
push str._S_S__x_S
lea eax, [ebp - 0x18]
push eax
call fcn.100041b0
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.10004250
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x1000228c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea edx, [ebp - 0x28]
push edx
push 0x1005c470
call fcn.10003750
push eax
push 0x10
lea eax, [ebp - 0x40]
push eax
push 0x1005c45c
call fcn.10003750
push eax
push str._S_S__x
lea ecx, [ebp - 0x58]
push ecx
call fcn.100041b0
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.10004250
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x10002278
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov dword [ebp - 0x64], edx
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1008288c], eax
cmp dword [ebp - 0x64], 0
je 0x1000226e
cmp dword [0x1008288c], 0
je 0x1000226e
mov ecx, dword [0x1008288c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x58]
call fcn.10003ef0
lea ecx, [ebp - 0x18]
call fcn.10003ef0
cmp dword [0x1008288c], 0
je 0x100022b8
mov edx, dword [0x1008288c]
push edx
call fcn.100022c0
add esp, 4
jmp 0x100022ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002560
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x1008032c], 0xffffffff
jne 0x100025dc
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.10033470
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x100025c6
cmp dword [ebp - 0x114], 6
jne 0x100025ba
cmp dword [ebp - 0x110], 1
ja 0x100025c6
mov dword [ebp - 0x11c], 0
jmp 0x100025d0
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 0x11c]
mov dword [0x1008032c], edx
xor eax, eax
cmp dword [0x1008032c], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x10003090
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10003b80
test eax, eax
je 0x100030a6
xor eax, eax
jmp 0x10003145
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push closesocket
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x10003142
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10003138
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10003450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074bb0
push 0x10033338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.10003c10
test eax, eax
jne 0x100034c5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x100034c5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x100034c5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x100034f1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100087c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059e00
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10080704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001bee1
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001a35a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret