joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6119da
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x425f72
call fcn.006280af
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00606aef
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00611a34
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x6119e5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x425f72
call fcn.006280af
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00606aef
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00611a34
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x611a86
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x425fbd
call fcn.006280af
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.006138e3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0060557a
push dword [esi + 0x24]
call fcn.006071fd
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0060586d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00611f94
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x611a91
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x425fbd
call fcn.006280af
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.006138e3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0060557a
push dword [esi + 0x24]
call fcn.006071fd
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0060586d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00611f94
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x624751
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x6247ba
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x6247fb
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x6247e0
mov ecx, ebx
call fcn.0062443f
add ebx, 0x28
dec ebp
jne 0x6247d4
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x6247f6
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.0062436f
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.0062489f
mov ebx, eax
cmp ebx, edi
jne 0x62485e
lea ecx, [ebp + 0x20]
call fcn.00626f0f
mov ebx, eax
cmp ebx, edi
jne 0x62485e
lea ecx, [ebp + 0x1c]
call fcn.00626f0f
mov ebx, eax
cmp ebx, edi
jne 0x62485e
push ebp
call fcn.006248ef
mov ebx, eax
cmp ebx, edi
je 0x624873
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.006248cf
cmp ebx, edi
jle 0x62486e
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x624873
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x624885
cmp dword [esi + 0x40], edi
jne 0x624885
cmp dword [esi + 0x3c], edi
jne 0x624885
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x6268cf
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x626dcf
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], pe_nt_image_headers32
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x626e04
jmp 0x626def
and edi, 0x3f
jne 0x626dfa
push esi
call fcn.0062690f
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x626def
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0062690f
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x626e26
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x10041b20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10041ced
pushal
mov esi, section.UPX1
lea edi, [esi - 0x30000]
push edi
or ebp, 0xffffffff
jmp 0x10041b4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10041b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10041b40
mov eax, 1
add ebx, ebx
jne 0x10041b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10041b58
jne 0x10041b74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10041b58
xor ecx, ecx
sub eax, 3
jb 0x10041b88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10041bfa
mov ebp, eax
add ebx, ebx
jne 0x10041b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10041ba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10041bc4
inc ecx
add ebx, ebx
jne 0x10041bb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10041ba5
jne 0x10041bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10041ba5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10041be4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10041bd5
jmp 0x10041b46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10041be4
add edi, ecx
jmp 0x10041b46
pop esi
mov edi, esi
mov ecx, 0xe31
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10041c02
cmp byte [edi], 7
jne 0x10041c02
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 al, bl
loop 0x10041c07
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x10041c7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4108c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10041c34
mov ecx, edi
jns 0x10041c63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x41090]
or eax, eax
je 0x10041c79
mov dword [ebx], eax
add ebx, 4
jmp 0x10041c51
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10041cb0
cmp al, 0xef
ja 0x10041ca3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10041c85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10041c92
mov ebp, dword [esi + 0x41094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10041ce4
sub esp, 0xffffff80
jmp 0x10016be2
Function at 0x4015c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x4c], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.00401d6c
mov edx, eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edx
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x4016c1
mov dword [esp + 4], str.Failed_to_run_executable:
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
call fcn.00401ce4
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00401cdc
mov dword [esp], 0x401cec
mov ecx, eax
call fcn.00401d44
sub esp, 4
jmp 0x4016f9
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret

Function at 0x4016fc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x150]
mov dword [esp + 4], eax
mov dword [esp], str..md
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401737
mov eax, 0
jmp 0x401777
add dword [ebp - 0xc], 1
lea eax, [ebp - 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401760
jmp 0x401737
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
cmp dword [ebp - 0xc], 6
setg al
leave
ret
Function at 0x401779
Capabilities:
Delete file
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1d4
mov dword [ebp - 0x64], 0x5c3a41
mov byte [ebp - 9], 0x41
cmp byte [ebp - 9], 0x5a
jg 0x401992
movzx eax, byte [ebp - 9]
mov byte [ebp - 0x64], al
lea eax, [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call eax
sub esp, 4
cmp eax, 3
sete al
test al, al
je 0x401917
lea eax, [ebp - 0x2d]
mov ecx, eax
call fcn.00401d5c
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x2d]
mov dword [esp + 4], edx
mov dword [esp], 0x427065
mov ecx, eax
call fcn.00401d0c
sub esp, 8
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x48]
mov dword [esp + 8], edx
lea edx, [ebp - 0x64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402e4c
lea eax, [ebp - 0x60]
mov ecx, eax
call fcn.00401d6c
mov edx, eax
lea eax, [ebp - 0x1bc]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x60]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x48]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x2d]
mov ecx, eax
call fcn.00401d54
cmp dword [ebp - 0x10], 0xffffffff
je 0x401917
mov eax, dword [ebp - 0x1bc]
and eax, 0x10
test eax, eax
jne 0x4018df
mov eax, dword [ebp - 0x1bc]
and eax, 4
test eax, eax
jne 0x4018df
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.00401d5c
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x11]
mov dword [esp + 4], edx
lea edx, [ebp - 0x64]
mov dword [esp], edx
mov ecx, eax
call fcn.00401d0c
sub esp, 8
lea eax, [ebp - 0x7c]
lea edx, [ebp - 0x1bc]
add edx, 0x2c
mov dword [esp + 8], edx
lea edx, [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402e18
lea eax, [ebp - 0x2c]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.00401d54
lea eax, [ebp - 0x7c]
mov ecx, eax
call fcn.00401d6c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
lea eax, [ebp - 0x7c]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x1bc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401907
jmp 0x401849
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
movzx eax, byte [ebp - 9]
add eax, 1
mov byte [ebp - 9], al
jmp 0x40178e
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401a63
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x190
call fcn.00401e10
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0x163
jg 0x401ab5
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
shl dword [ebp - 0x10], 1
sub dword [ebp - 0x14], 1
add dword [ebp - 0x18], 1
jmp 0x401a99
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call eax
sub esp, 8
lea eax, [ebp - 0x35]
mov ecx, eax
call fcn.00401d5c
lea eax, [ebp - 0x50]
lea edx, [ebp - 0x35]
mov dword [esp + 4], edx
lea edx, [ebp - 0x154]
mov dword [esp], edx
mov ecx, eax
call fcn.00401d0c
sub esp, 8
lea eax, [ebp - 0x16c]
mov dword [esp + 8], str.tmp1.exe
lea edx, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402e18
lea eax, [ebp - 0x50]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x35]
mov ecx, eax
call fcn.00401d54
lea eax, [ebp - 0x19]
mov ecx, eax
call fcn.00401d5c
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x19]
mov dword [esp + 4], edx
lea edx, [ebp - 0x154]
mov dword [esp], edx
mov ecx, eax
call fcn.00401d0c
sub esp, 8
lea eax, [ebp - 0x184]
mov dword [esp + 8], str.tmp2.exe
lea edx, [ebp - 0x34]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402e18
lea eax, [ebp - 0x34]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x19]
mov ecx, eax
call fcn.00401d54
mov dword [esp + 8], 0
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
lea eax, [ebp - 0x16c]
mov dword [esp], eax
call fcn.00401998
mov dword [esp + 8], 0
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
lea eax, [ebp - 0x184]
mov dword [esp], eax
call fcn.00401998
call fcn.004016fc
test al, al
je 0x401bc8
call fcn.00401779
lea eax, [ebp - 0x16c]
mov dword [esp], eax
call fcn.004015c0
lea eax, [ebp - 0x184]
mov dword [esp], eax
call fcn.004015c0
mov ebx, 0
lea eax, [ebp - 0x184]
mov ecx, eax
call fcn.00401d04
lea eax, [ebp - 0x16c]
mov ecx, eax
call fcn.00401d04
mov eax, ebx
jmp 0x401c6d
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402190
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4293a0]
test esi, esi
jle 0x4022a0
mov edi, dword [0x4293a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4021c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402245
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4021b0
mov dword [esp], eax
mov ebx, eax
call fcn.00402a80
test eax, eax
mov edi, eax
je 0x4022c7
mov eax, dword [0x4293a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402b80
add eax, dword [edi + 0xc]
mov edx, dword [0x4293a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4022a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40223e
sub eax, 4
and eax, 0xfffffffb
jne 0x402250
add dword [0x4293a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4293a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40223e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402e88
lea esi, [esi]
xor esi, esi
jmp 0x4021ce
mov eax, dword [0x4293a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402e88
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402e88
mov esi, esi
lea edi, [edi]

Function at 0x402700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4293b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4293b0]
sub esp, 4
test ebx, ebx
je 0x402755
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40274e
test esi, esi
je 0x40274e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402730
mov dword [esp], 0x4293b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e88
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402de0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402de0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp fcn.004014e0

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x11a21655
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x49dd3d09
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219