joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407cc8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00405c34
mov eax, dword [ebp - 0x21c]
call fcn.00405c34
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x407e67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00405c4c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00405cd8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x407d68
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x407d7a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x407d65
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x407e33
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x407da3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00407818
cmp dword [ebp - 0x220], 0
je 0x407ddb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00407bbc
pop ecx
mov ebx, eax
jmp 0x407e33
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004074d4
mov eax, dword [ebp - 0x224]
call fcn.00407bbc
pop ecx
mov ebx, eax
test bl, bl
jne 0x407e26
cmp byte [0x427b40], 0
jne 0x407e26
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004074d4
mov eax, dword [ebp - 0x228]
call fcn.00407bbc
pop ecx
mov ebx, eax
test bl, bl
jne 0x407e33
push ebp
call fcn.00407c6c
pop ecx
mov ebx, eax
test bl, bl
je 0x407e49
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00405e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e6e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00405c44
ret

Function at 0x4082d8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4093b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4093e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405d88
jmp 0x4093f2
mov eax, ebx
mov edx, esi
call fcn.00405c4c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4093fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x40941e
movzx eax, word [esp]
jmp 0x409420
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40a5b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405514
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x40a55e
mov eax, edi
add eax, eax
call fcn.004039b8
mov esi, eax
jmp 0x40a560
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40a599
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40a583
mov eax, esp
cmp esi, eax
je 0x40a5a6
mov eax, esi
call fcn.004039d4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40a5e0
cmp bl, 0
je 0x40a5dc
cmp bl, 0x41
jl 0x40a5d7
cmp bl, 0x5a
jg 0x40a5d7
or bl, 0x20
xor al, bl
inc esi
jmp 0x40a5bb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a520

Function at 0x40c43c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40c4dc
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004059e4
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.0040592c
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40c466
cmp byte [esp], 0
je 0x40c4ab
mov eax, edi
call fcn.0040592c
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40c4e8
mov eax, edi
call fcn.0040592c
push eax
mov eax, edi
call fcn.0040592c
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403ab0
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004059e4
jmp 0x40c4e8
mov eax, edi
mov edx, 0x40c4fc
call fcn.00405200
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ccb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405200
mov eax, ebx
call fcn.00405924
mov eax, dword [ebx]
call fcn.00405508
test eax, eax
jle 0x40cce1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40ccd6
pop esi
pop ebx
ret

Function at 0x40d3e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40d430
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0040e36c
test al, al
jne 0x40d426
cmp word [edi], 0x5a4d
jne 0x40d426
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40d426
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d43c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d5e8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x423d80], 0
jne 0x40d6c9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40d63b
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x40d66c
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x40d6c9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40d697
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40d6a9
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40d6c3
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x411474
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x4114f0
cmp dword [esp + 0x10], 0x1000
jne 0x4114f0
cmp dword [esp + 4], 0
je 0x4114f0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA
test eax, eax
je 0x4114f0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x4114f0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x4114f0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x413404
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, dword [0x4246e0]
mov esi, dword [0x4246e8]
xor eax, eax
mov dword [0x4246e0], eax
xor eax, eax
mov dword [0x4246e8], eax
test ebx, ebx
je 0x413449
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x413449
mov eax, dword [0x4246e4]
mov dword [ebx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x413471
push esp
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x413471
mov eax, dword [0x4246ec]
mov dword [esi], eax
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov byte [0x4246f0], 0
pop edx
pop esi
pop ebx
ret
Function at 0x416434
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4164f4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x4248c0]
call fcn.0040ccb0
push dword [ebp - 0xc]
push 0x416510
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx]
movzx ecx, byte [ebp - 5]
mov eax, dword [0x4248c4]
call fcn.0041631c
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004056f4
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004058b4
push eax
call fcn.00416138
mov esi, eax
test esi, esi
je 0x4164d1
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x4164cb
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4164fb
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 4]
call fcn.004051ac
ret

Function at 0x41674c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, eax
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x41676c
push 0x40
push 0x1000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc
pop ebx
ret
push 0
push ebx
call fcn.004127f8
pop ebx
ret

Function at 0x416898
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x4168f7
xor ebx, ebx
jmp 0x4168f0
cmp edi, dword [ebp - 4]
jne 0x4168ef
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4168f7
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + ebx*4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4168f7
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4168b9
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416904
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x416a1f
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x416981
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x416977
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x416977
cmp word [eax + 0x18], 0x20b
jne 0x41696e
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x416977
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41698b
cmp dword [ebp - 0x14], 0
je 0x416a15
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x416a15
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x416a11
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00416898
test al, al
je 0x416a15
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x416a01
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x416a15
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00416898
jmp 0x416a15
inc ebx
dec eax
jne 0x4169a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416a29
movzx eax, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416b5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.0040d3e4
mov edi, eax
test edi, edi
je 0x416bf3
cmp dword [edi + 0x80], 0
je 0x416bf3
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x416bf3
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x416bf3
jmp 0x416bdf
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x416bd7
cmp ebp, dword [ebx]
jne 0x416bd4
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x416bd4
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x416ba5
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x416bf3
cmp dword [esi + 0x10], 0
je 0x416bf3
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x416b9d
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416c84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
call fcn.004111b8
mov ebp, eax
mov eax, ebp
call fcn.0040d3e4
xor ebx, ebx
test eax, eax
je 0x416cc5
lea esi, [eax + 0x28]
push esp
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x416cc5
sub edi, ebp
mov dword [esi], edi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41af34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41b139
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x42481c]
call fcn.004112e4
mov dword [0x429ef0], eax
xor edx, edx
mov eax, dword [0x424820]
call fcn.004112e4
mov dword [0x429ef4], eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 5
call fcn.004059e4
lea eax, [ebp - 4]
call fcn.0040592c
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.0040592c
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.0040592c
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.0040592c
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.0040592c
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x4248a8]
call fcn.0040ccb0
push dword [ebp - 0x10]
push 0x41b158
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040c93c
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 4
call fcn.004056f4
mov eax, dword [ebp - 4]
call fcn.004058b4
push eax
push 0
push 0
call fcn.00408c5c
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x41b116
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x429ee4], edi
mov eax, dword [ebp - 8]
mov dword [0x429ee8], eax
cmp dword [0x429ef0], 0
je 0x41b05f
cmp dword [0x429ef4], 0
jne 0x41b0e5
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.004113f0
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x41b0fa
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x41b0fa
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x41b0fa
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x41b0fa
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x41b0fa
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41b0fa
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x429eec], edx
mov edx, 0x41aee4
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x41b0fa
push 0x41ae90
push 0xffffffffffffffff
call dword [0x429ef0]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x41b116
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b140
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 4]
call fcn.004051ac
ret
Function at 0x41b15c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x429ef0], 0
je 0x41b174
cmp dword [0x429ef4], 0
jne 0x41b1b5
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.004113f0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41b1bc
mov eax, dword [0x429eec]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x41b1bc
push eax
call dword [0x429ef4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41dbe8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x41dcd3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
call fcn.004170f4
xor eax, eax
push ebp
push 0x41dcb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040d2d8
test al, al
je 0x41dca3
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004196a4
test al, al
je 0x41dca3
cmp dword [ebp - 0x14], 0
jne 0x41dc49
cmp dword [ebp - 0x18], 0
je 0x41dca3
call fcn.00412988
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 8
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41dca3
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x18]
mov ecx, 8
mov edx, ebx
call fcn.00415578
test al, al
jne 0x41dc87
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.0041ae48
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 8
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dcbd
call fcn.00417334
ret
Function at 0x41e390
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41e51e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x41e4e8
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x4248f4]
call fcn.0040ccb0
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
mov ecx, 0
call fcn.00405464
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 4]
pop edx
call fcn.00405604
mov eax, dword [ebp - 4]
call fcn.004058b4
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x41e4d9
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41e4d3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x41e466
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41e4ca
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x41e4ca
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0x4e
mov edx, dword [ebp - 0x14]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x41e4ab
mov bl, 1
jmp 0x41e4ca
lea eax, [ebp - 0x288]
push eax
call sub.kernel32.dll_GetModuleHandleA
cmp eax, dword [ebp - 8]
jne 0x41e4c2
mov byte [ebp - 0xd], 1
jmp 0x41e4ca
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x41e482
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle
or bl, byte [ebp - 0xd]
jne 0x41e4e8
inc edi
cmp edi, 0xa
jne 0x41e3d7
cmp byte [ebp - 0xd], 0
jne 0x41e4f8
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041e240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e525
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 4]
call fcn.004051ac
ret
Function at 0x402090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494310
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov dword [edi], vtable.CESPItemBase.0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov al, byte [esi + 0x10]
mov byte [edi + 0x10], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.00402590
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
lea ecx, [edi + 0x60]
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
lea eax, [esi + 0x60]
movups xmm0, xmmword [esi + 0x40]
push eax
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x50]
movups xmmword [edi + 0x50], xmm0
call fcn.00402140
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 4