joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64dff6
Capabilities:
Decompress data using aplib

Disassembly:
lea esp, [esp + 8]
je 0x661ecf
xchg di, cx
sal ch, 2

Function at 0x6610ec
Capabilities:
Decompress data using aplib

Disassembly:
call 0x644ca0
pushal
pushfd
jmp 0x645a01
pushfd
pushal
mov byte [esp + 0x10], 0xa3
lea esp, [esp + 0x24]
jno 0x645894
je 0x6612a0
bts bx, 6
mov bh, ah
not bh
neg bl
mov ebx, eax
sbb dx, dx
mov edx, dword [ebx + 0x3c]
push 0xb56c521c
pushfd
add edx, ebx
push ecx
mov byte [esp], al
pushfd
mov edx, dword [edx + 0x80]
cmc
cmc
cmc
push 0x902e3e82
test edx, edx
pushfd
pushal
mov word [esp], 0x1c7f
lea esp, [esp + 0x38]
je 0x6612a0
btr di, 0xc
call fcn.0064e5ed
push 0xf368d3e1
call fcn.006a0fc6
fidivr dword [esi]
push es
or edi, eax
in eax, 0x9e
xor eax, dword [eax + 9]
out 0x8b, al
pushfd
aam 0xe
push ebp
invalid
mov dword [esp + 0x20], ebx
cmp dh, al
clc
test eax, eax
lea esp, [esp + 0x20]
jae 0x660b0b
push 0x1960821
lea esp, [esp + 4]
je 0x6612a0
inc dh
pushfd
not edx
sal bl, 1
mov ebx, eax
setae dl
pop edx
mov edx, dword [ebx + 0x3c]
pushal
test ax, 0x7b3e
add edx, ebx
mov byte [esp], 4
cmp cx, cx
mov edx, dword [edx + 0x80]
clc
test edx, edx
jmp 0x6454dc
Function at 0x403f9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ab4
test esi, esi
jne 0x403fd2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405bf0
jmp 0x403ff0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403ff0
cmp dword [ebx], 0
je 0x403ff0
dec esi
jmp 0x403fd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44104c], 0
je 0x40589b
cmp word [0x441338], 0xd7b2
jne 0x40585d
cmp dword [0x441340], 0
jbe 0x40585d
mov eax, 0x441334
call dword [0x441350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058c8
call fcn.00405f54
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c022], 0
jne 0x4058b7
push 0
push 0x43c99a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ff4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ab4
cmp si, word [0x43c9d8]
jb 0x40708c
cmp si, word [0x43cbd8]
ja 0x40708c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40708c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x43c9d8]
jae 0x407066
mov edi, ebx
dec edi
jmp 0x407087
cmp si, word [ebx*8 + 0x43c9d8]
jbe 0x407076
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407087
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x43c9dc]
call fcn.00406f14
jmp 0x40708c
cmp edi, dword [ebp - 8]
jae 0x407050
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40713b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40713b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x160]
push 0x407174
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x164]
push 0x407184
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407160
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b14
ret
Function at 0x40730c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40740f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x443b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x443b94]
jne 0x407358
mov eax, esi
mov edx, 0x443b96
mov ecx, 0x55
call fcn.00406090
push 0x443b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4073f9
push 0x443b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ab4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073c7
cmp byte [0x443b78], 0
je 0x40738c
mov edx, esi
mov eax, ebx
call fcn.004071f0
jmp 0x4073c7
mov edx, esi
mov eax, ebx
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073c7
cmp dword [esi], 0
je 0x4073b0
mov eax, esi
mov edx, 0x407428
call fcn.00406168
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406ff4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406168
push 0x443b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x443b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ffc
push eax
push 0x443b96
call sub.kernel32.dll_lstrcpynW
push 0x443b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407416
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x417830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417955
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417638
mov esi, eax
mov eax, dword [0x440410]
cmp byte [eax], 0
je 0x4178fd
mov eax, dword [0x440338]
call fcn.004044b8
call fcn.00403d30
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417800]
call fcn.00406a90
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417970
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417939
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x440314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x443c44]
call fcn.00406b48
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41795c
lea eax, [ebp - 4]
mov edx, dword [0x417800]
call fcn.00406a9c
ret

Function at 0x418a14
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.00405e68
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408170
mov edi, eax
cmp edi, 0x104
jbe 0x4189bb
mov eax, edi
add eax, eax
call fcn.00403bdc
mov esi, eax
jmp 0x4189bd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408170
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4189f8
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 0x4189e2
mov eax, esp
cmp esi, eax
je 0x418a05
mov eax, esi
call fcn.00403bf8
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 0x418a40
cmp bl, 0
je 0x418a3c
cmp bl, 0x41
jl 0x418a37
cmp bl, 0x5a
jg 0x418a37
or bl, 0x20
xor al, bl
inc esi
jmp 0x418a1b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41897c

Function at 0x418c60
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406090
add esp, 0x800
pop ebx
ret
Function at 0x418f4c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405ab4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x418f91
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405bf0
jmp 0x418faa
mov edx, ebx
dec edx
mov eax, esi
call fcn.004060e8
push ebx
mov eax, dword [esi]
call fcn.00405ffc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c1fc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43e20c
test edx, edx
jne 0x41c21b
xor eax, eax
jmp 0x41c339
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c238
push esi
push edx
push eax
call fcn.0041c340
add esp, 0xc
jmp 0x41c339
push esi
push edx
push eax
call fcn.0041c600
add esp, 0xc
jmp 0x41c339
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43780c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x14], edi
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
push eax
push esi
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, ebx
pop ecx
call fcn.00437860
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x437ab4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x437b49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x437b64
push ebx
push 0x437b74
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406248
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404528
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ffc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x437b33
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437b50
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x437b7c
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437d63
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x338]
call fcn.004378c4
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 4]
mov ecx, 0x437d7c
call fcn.004061c0
xor ecx, ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.004043d0
call fcn.00403d30
lea eax, [ebp - 0x2e0]
call fcn.00404090
call fcn.00403d30
mov edx, 0x437da4
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
push 0x437dbc
lea edx, [ebp - 0x340]
xor eax, eax
call fcn.00403f9c
push dword [ebp - 0x340]
push 0x437dd4
lea eax, [ebp - 0x33c]
mov edx, 3
call fcn.00406248
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
push 0x437de4
lea edx, [ebp - 0x348]
xor eax, eax
call fcn.00403f9c
push dword [ebp - 0x348]
push 0x437dd4
push 0x437e08
lea eax, [ebp - 0x344]
mov edx, 4
call fcn.00406248
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
mov edx, 0x437e28
lea eax, [ebp - 0x2e0]
call fcn.00404a84
call fcn.00404b84
call fcn.00403d30
lea eax, [ebp - 0x2e0]
call fcn.004044d0
call fcn.00403d30
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, 0x44
call fcn.00404528
mov dword [ebp - 0x308], 1
mov word [ebp - 0x304], 0
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ffc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x437d3d
mov eax, dword [ebp - 0x2ec]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2f0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437d6a
lea eax, [ebp - 0x348]
mov edx, 5
call fcn.00405b14
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x437fd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x4380c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x445ee8]
call fcn.00405ffc
mov edx, eax
lea eax, [ebp - 8]
call fcn.00406054
mov eax, dword [ebp - 8]
mov edx, 0x40
call fcn.00414e48
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4380a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, ecx
sub eax, 0x13f
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00414f5c
mov edx, 0x445f00
mov ecx, 0x13f
mov eax, dword [ebp - 4]
call fcn.00414f04
cmp byte [0x44603c], 0
je 0x43807f
lea edx, [ebp - 0xc]
mov eax, dword [0x445ee8]
call fcn.004152b8
mov edx, dword [ebp - 0xc]
mov eax, 0x445ef4
mov ecx, 0x4380e0
call fcn.004061c0
jmp 0x43808f
mov eax, 0x445ef4
mov edx, dword [0x445ee8]
call fcn.00405d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4380ad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x12dd745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x12dd90a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x12dd908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x12dd7b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.012d5f12
add esp, 0xc
test ebx, ebx
je 0x12dd8b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x12dd899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x12dd7f5
movzx ebx, ax
jmp 0x12dd7fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x12dd871
cmp dword [0x12e45f0], 1
jne 0x12dd871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.012d5f12
lea eax, [esp + 0x34]
push eax
call fcn.012dd9ee
lea eax, [esp + 0x38]
push 0x12d4fa4
push eax
call fcn.012d5f40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.012d5f40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.012d5f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x12e4590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x12dd7ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x12dd777
jmp 0x12dd906
lea eax, [esp + 0x28]
push eax
call fcn.012dd9ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x12d4f88
push eax
call fcn.012d5f40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.012d5f40
add esp, 0x10
cmp dword [0x12e45f0], 1
jne 0x12dd906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.012d5f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x12e4590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x12dd940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.012dd9bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x12e4460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x12e4460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x12e4464], eax
push 0
push 0
push 0
push 4
push dword [0x12e4464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x12e45f8]
leave
ret
Function at 0x12dda44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x12dda57
xor eax, eax
jmp 0x12ddbdb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x12dda95
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x12ddaae
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x12ddaae
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x12ddabb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x12ddaf4
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x12ddab4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x12ddb94
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x12ddb24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x12ddb83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x12ddb3c
jmp 0x12ddb1d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x12ddb74
jmp 0x12ddb81
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x12ddb1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x12ddaf4
and dword [ebp - 0x14], 0
jmp 0x12ddba1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x12ddbd9
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x12ddb9a
xor eax, eax
leave
ret
Function at 0x12ddd7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.012ddd41
push esi
call fcn.012ddf2c
push dword [esp + 0x80]
mov esi, eax
call fcn.012ddf2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.012d5f12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.012ddc5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x12ddf13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.012ddf61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x12ddf13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x12ddef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x12ddedb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x12dde47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.012ddcfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x12ddea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.012ddcfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x12ddea7
mov eax, edx
push eax
push esi
call fcn.012ddcfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x12ddf07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x12ddf13
push 1
push edi
call fcn.012de055
pop ecx
pop ecx
xor edi, edi
push 0x12e446c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret