joyce8/EMBER2024-capa huggingface dataset:
Function at 0x506160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x50641a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x526e6c]
mov eax, dword [eax]
mov edx, 0x506434
call fcn.00483a28
push 5
mov eax, dword [0x526e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x5063e1
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e83d4
lea eax, [ebp - 0x10]
call fcn.00487240
mov eax, dword [ebp - 0x10]
call fcn.00415708
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00486d9c
mov edx, dword [ebp - 0x14]
mov eax, 0x52e168
call fcn.00406448
call fcn.005044ec
lea ecx, [ebp - 0x18]
mov edx, 0x506454
mov eax, dword [0x52e168]
call fcn.00485e80
mov edx, dword [ebp - 0x18]
mov eax, 0x52e16c
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x50646c
mov eax, dword [0x52e168]
call fcn.00485e80
mov edx, dword [ebp - 0x1c]
mov eax, 0x52e170
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x52e168]
mov dl, 1
mov eax, dword [0x488ca0]
call fcn.00488fe0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5062b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.00488fa0
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00488f78
cmp dword [ebp - 0xc], 0x67734d49
je 0x506293
mov cl, 1
xor edx, edx
mov eax, dword [0x52e170]
call fcn.0048a264
jmp 0x5062a2
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x52e168]
call fcn.0048a264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5062bf
mov eax, dword [ebp - 4]
call fcn.00404098
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
xor edi, edi
cmp dword [0x2b04b04], 0x594
mov dword [ebp - 8], eax
jne 0x4010b2
push edi
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x42c078]
mov dword [ebp - 0x20], eax
mov eax, dword [0x42c07c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00401077
mov eax, dword [0x42c080]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42c084]
add esi, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2b04b04], 0xc
mov dword [ebp - 4], eax
jne 0x40112d
push edi
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2b04b04]
cmp eax, 0xfa9
jne 0x401149
mov dword [0x2b04b00], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401164
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2b044b4], edi
mov ecx, dword [ebp - 0xc]
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [0x2b04afc], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010ed
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x404b6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb24]
jne 0x404b74
repz ret
jmp fcn.00407822

Function at 0x407250
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402d49
and dword [ebp - 4], 0
cmp dword [0x4303bc], 0
mov ebx, eax
jne 0x407301
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4073b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4073b2
push eax
call fcn.00402cd7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4303bc], eax
call esi
push eax
call fcn.00402cd7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4303c0], eax
call esi
push eax
call fcn.00402cd7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4303c4], eax
call esi
push eax
call fcn.00402cd7
pop ecx
mov dword [0x4303cc], eax
test eax, eax
je 0x407301
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402cd7
pop ecx
mov dword [0x4303c8], eax
mov eax, dword [0x4303c8]
cmp eax, ebx
je 0x407359
cmp dword [0x4303cc], ebx
je 0x407359
push eax
call fcn.00402d52
push dword [0x4303cc]
mov esi, eax
call fcn.00402d52
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407359
test edi, edi
je 0x407359
call esi
test eax, eax
je 0x407350
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407350
test byte [ebp - 0xc], 1
jne 0x407359
or dword [ebp + 0x10], 0x200000
jmp 0x407392
mov eax, dword [0x4303c0]
cmp eax, ebx
je 0x407392
push eax
call fcn.00402d52
pop ecx
test eax, eax
je 0x407392
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407392
mov eax, dword [0x4303c4]
cmp eax, ebx
je 0x407392
push eax
call fcn.00402d52
pop ecx
test eax, eax
je 0x407392
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4303bc]
call fcn.00402d52
pop ecx
test eax, eax
je 0x4073b2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4073b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
or ebp, 0xffffffff
jmp 0x435422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435418
mov eax, 1
add ebx, ebx
jne 0x43543b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435430
jne 0x43544c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435430
xor ecx, ecx
sub eax, 3
jb 0x435460
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4354d2
mov ebp, eax
add ebx, ebx
jne 0x43546b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435478
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43549c
inc ecx
add ebx, ebx
jne 0x435488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43547d
jne 0x435499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43547d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4354bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4354ad
jmp 0x43541e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4354bc
add edi, ecx
jmp 0x43541e
pop esi
mov edi, esi
mov ecx, 0x85e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4354da
cmp byte [edi], 0
jne 0x4354da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4354df
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x43554e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36238]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x362ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43550c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x362f0]
or eax, eax
je 0x435548
mov dword [ebx], eax
add ebx, 4
jmp 0x435529
call dword [esi + 0x362f4]
popal
jmp 0x4170d8
Function at 0x438cab
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub esp, 4
mov dword [esp], 0xe2328e0a
pop esi
add esi, esi
call fcn.00438ce9
sub esi, 1
xor dword [ecx], edx
mov eax, esi
or esi, eax
inc ecx
and eax, eax
cmp ecx, edi
jne fcn.00438cab
mov eax, eax
sub esi, 0x822d8606
ret
Function at 0x8e12e4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e12ea
pop ebp
sub ebp, 6
sub ebp, 0x4e12e4
jmp 0x8e1348
jmp 0x8e1351
mov eax, 0x4e12e4
add eax, ebp
add eax, 0x93
mov ecx, 0x61d
mov edx, 0xb6e55cd4
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1368
jmp 0x8e137b
mov esi, 0xc4d4bc94
aam 0xd4
mov esp, 0xd4f818d4
push ebp
and al, 0x2e
shl dword [ebx], cl
pop ss
push ebp
and al, 0x2e
shl dword [ebx], cl
pop ss
out 0x14, eax
test byte [ebx], ch
inc ecx
call 0x8562a422
pop edi
sbb dword [edi + 0x5d], ebx
call 0x5662e87a
adc eax, 0xd4d4d42c
xlatb
sbb dword [edx + edx*8 - 0x2c], ebp
aam 0xd4
outsb dx, byte [esi]
cld
aam 0xd4
aam 0x23
xlatb
sbb al, 0x5f
push ebp
fcom st(4)
aam 0xd4
xlatb
adc dword [esp + edi*4 - 0x2b2213d0], eax
mov esp, 0xd4900d2b
aad 0xf8
invalid
Function at 0x401024
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401070
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40106c
cmp edi, eax
jae 0x401070
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40105e
cmp edi, eax
jb 0x401074
xor eax, eax
jmp 0x40107e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4010f5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40113c
xor al, al
jmp 0x40115c
cmp dword [ebp - 0x7c], 5
jb 0x401138
jbe 0x401148
mov al, 1
jmp 0x40115c
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x40115c
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004047a0
add ebp, 0xa0
leave
ret

Function at 0x40171d
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x20
mov esi, edi
mov ebx, 0x104
push ebx
mov dword [ebp - 0xc], esi
call fcn.004023be
push eax
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xc]
call fcn.00402160
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40176f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017ac
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
add eax, 0x1c
push ebx
mov esi, eax
mov dword [ebp - 0xc], eax
call fcn.004023be
mov edi, dword [edi]
push eax
push 0
push 0x40640c
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0xc]
inc bl
call fcn.00402160
test bl, bl
je 0x4017b1
or eax, 0xffffffff
jmp 0x4017c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4017cc
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x21c
mov eax, 0x405d89
call fcn.00405aff
or dword [ebp - 0x21c], 0xffffffff
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push ebx
push 0x406414
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40190f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00401ec3
lea eax, [ebp - 0x220]
push eax
add esi, 0x10
mov dword [ebp - 4], ebx
call fcn.004020b3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00401081
push 0x406390
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40190f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40190f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x40190f
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x21c], eax
je 0x40190f
push dword [ebp - 0x21c]
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
push esi
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x220]
push eax
call fcn.00401afe
test eax, eax
pop ecx
pop ecx
jne 0x4018fc
push ebx
push ebx
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40190f
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x21c], 0xffffffff
mov eax, dword [ebp - 0x21c]
call fcn.00405b49
ret
Function at 0x402692
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x4026b5
test esi, esi
jl 0x4026c9
cmp esi, dword [edi + 0x10]
jge 0x4026c9
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x40269a
lea esi, [edi + 0xc]
call fcn.0040212b
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.00401081
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4029a4
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x405c04
call fcn.00405acc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00402482
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x34], 0x81
mov word [ebp - 0x30], 1
cmp dword [esi - 4], 1
jle 0x402a0c
push dword [esi - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00402532
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.00401081
mov al, bl
call fcn.00405b35
ret
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0xc], ebx
mov byte [ebp + 0xb], 1
je 0x402a6b
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp + 0xb]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
mov bl, byte [ebp + 0xb]
jmp 0x402a35

Function at 0x402aac
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.00402b45
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x402b3d
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x402b38
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, edi
mov dword [esi + 0xc], edx
je 0x402b2f
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402b2f
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x402b3f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402b45
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402b9d
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402ba4
xor al, al
ret
cmp word [ecx], 0x5a4d
jne 0x402ba1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402ba1
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402bc7
lea edx, [eax + ecx]
jmp 0x402bc9
xor edx, edx
test edx, edx
je 0x402ba1
lea eax, [edx + 8]
test eax, eax
je 0x402ba1
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402bf8
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402bf8
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402bfa
xor eax, eax
test eax, eax
je 0x402ba1
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x404ea1
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x406460
call fcn.004051f8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x408750
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x404c59
cmp eax, esi
jne 0x404c4c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x404c5c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404c33
xor esi, esi
inc esi
mov eax, dword [0x40874c]
cmp eax, esi
jne 0x404c6f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404c9e
mov eax, dword [0x40874c]
test eax, eax
jne 0x404c98
mov dword [0x40874c], esi
push 0x4061c8
push 0x4061bc
call fcn.00404ba2
pop ecx
pop ecx
test eax, eax
je 0x404c9e
jmp 0x404dc6
mov dword [0x408344], esi
mov eax, dword [0x40874c]
cmp eax, esi
jne 0x404cc2
push 0x4061b8
push 0x4061a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40874c], 2
test ebx, ebx
jne 0x404cce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408754], 0
je 0x404cf2
push 0x408754
call fcn.004050e6
pop ecx
test eax, eax
je 0x404cf2
push 0
push 2
push 0
call dword [0x408754]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x404d4e
test al, al
je 0x404d0c
cmp dword [ebp - 0x1c], 0
jne 0x404d4e
mov al, byte [esi]
test al, al
je 0x404d1c
cmp al, 0x20
ja 0x404d1c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x404d0c
test byte [ebp - 0x3c], 1
je 0x404d28
movzx eax, word [ebp - 0x38]
jmp 0x404d2b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x408340], eax
cmp dword [0x408334], 0
jne 0x404da2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x404d5d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x404d70
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x404cf9
cmp dword [0x408344], 0
jne 0x404db1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x408340]
jmp 0x404dd2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040523d
ret
call fcn.004053c0
jmp 0x404bf9
Function at 0x405070
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x405083
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40507f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4050a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4050df
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4050d5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4050e1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4050c5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4056d7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0040562c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40574a
cmp dword [ebp - 0x94], 5
jb 0x40576b
jmp 0x405767
cmp dword [ebp - 0x88], 1
jne 0x40576b
cmp dword [ebp - 0x94], 4
ja 0x405767
jne 0x40576b
cmp dword [ebp - 0x90], 0
jbe 0x40576b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x406294
call fcn.004054c2
test eax, eax
jge 0x40578c
mov byte [0x40873c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004047a0
leave
ret