joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f980
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 8], 0
xor eax, eax
cmp dword [edi], 0x4550
jne 0x40fa5e
push 0x44
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041d248
mov eax, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 4
push 1
push 0
push 0
push eax
push ecx
call dword [0x63b710]
test eax, eax
je 0x40fb19
push ebx
push 4
push 0x1000
push 4
push 0
call dword [0x63b7cc]
mov ebx, eax
mov dword [ebx], 0x10007
mov edx, dword [ebp - 0x18]
push ebx
push edx
mov dword [ebp - 0xc], ebx
call dword [0x63b868]
test eax, eax
je 0x40fa5b
mov ecx, dword [ebx + 0xa4]
mov edx, dword [ebp - 0x1c]
push 0
push 4
lea eax, [ebp - 8]
push eax
add ecx, 8
push ecx
push edx
call dword [0x63b86c]
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov edx, dword [ebp - 0x1c]
push 0x40
push 0x3000
push eax
push ecx
push edx
call dword [0x63b6b8]
mov ebx, eax
test ebx, ebx
jne 0x40fa64
mov eax, dword [ebp - 0x18]
push eax
call dword [0x63b880]
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x54]
mov edx, dword [ebp - 0x1c]
push 0
push ecx
push esi
push ebx
push edx
call dword [0x63b6c8]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
cmp cx, word [edi + 6]
jae 0x40fad0
mov dword [ebp + 0xc], eax
jmp 0x40fa90
mov edx, dword [esi + 0x3c]
add edx, dword [ebp + 0xc]
mov ecx, dword [edx + esi + 0x108]
lea eax, [edx + esi + 0xf8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push 0
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, esi
push edx
add eax, ebx
push eax
push ecx
call dword [0x63b6c8]
mov eax, dword [ebp - 4]
movzx edx, word [edi + 6]
add dword [ebp + 0xc], 0x28
inc eax
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x40fa90
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push ecx
call dword [0x63b6c8]
mov edx, dword [edi + 0x28]
add edx, ebx
mov dword [esi + 0xb0], edx
mov eax, dword [ebp - 0x18]
push esi
push eax
call dword [0x63b69c]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x63b880]
mov eax, dword [ebp - 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41a73e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x41a81d
mov esi, edx
shr esi, 3
push edi
jmp 0x41a760
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.aK___]
add ecx, 8
sub edx, 8
dec esi
jne 0x41a760
pop edi
test edx, edx
je 0x41a83a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + str.aK___]
inc ecx
dec edx
jne 0x41a821
not eax
pop esi
pop ebp
ret

Function at 0x41a840
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.aK___]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + str.aK___]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x41a990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x420080]
test eax, eax
jne 0x41a9b3
mov eax, 0x200
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
push ebx
push edi
mov edx, eax
xor edi, edi
and edx, 1
je 0x41a9cb
mov dword [ebp - 8], 1
mov edi, dword [ebp - 8]
test al, 2
je 0x41a9d2
or edi, 2
test al, 4
je 0x41a9d9
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x41a9e3
or edi, 0x10
test al, 0x20
je 0x41a9ea
or edi, 0x20
test ecx, ecx
je 0x41a9f6
or edi, 0x40000000
jmp 0x41a9fc
or edi, 0x80000000
or edi, 0x1000000
mov dword [ebp - 8], edi
test edx, edx
jne 0x41aa12
or edi, 0x800000
mov dword [ebp - 8], edi
push 0
push esi
call dword [0x42007c]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x41aab9
mov edi, dword [0x420078]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [0x420074]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x41aab6
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x41aab6
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x41aaaf
cmp eax, 0x454e
je 0x41aaaf
cmp eax, 0x454c
je 0x41aaaf
cmp eax, 0x4550
jne 0x41aab6
or dword [ebp - 8], 0x400000
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41aac2
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aace
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test esi, esi
je 0x41ab48
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.0041d480
mov dword [esi + 4], edx
push 0
mov ecx, ebx
sub ecx, 0xd53e8000
mov edx, edi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi], eax
call fcn.0041d480
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x48]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [esi + 0xc], edx
call fcn.0041d480
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x41ab70
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.0041a930
movzx ecx, word [ebp - 4]
movzx edx, word [ebp - 8]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ad30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x41ae1b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41ad67
cmp dword [esi + 0x40], edi
jae 0x41ad67
push eax
call fcn.004120b0
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x41ad7f
lea eax, [edi + edi]
push eax
call fcn.00411670
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0041d254
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x41ae18
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + str.aK___]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + str.aK___]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x41ad97
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x41ae5a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41ae3f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0041d254
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41ae7c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x420094]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401b1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc8b8
call fcn.00403040
sub esp, eax
mov dword [esp + 4], 0x40c064
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401b58
mov dword [esp], str.Unable_to_open_file_for_hashing
call sym._perror
jmp 0x401c1d
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._sha256_init
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc800
mov dword [esp + 4], 1
lea eax, [ebp - 0xc888]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc888]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._sha256_update
lea eax, [ebp - 0xc8a8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._sha256_final
mov dword [ebp - 0xc], 0
jmp 0x401c03
lea edx, [ebp - 0xc8a8]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, edx
mov edx, dword [ebp + 0xc]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._02x
mov dword [esp], edx
call sym._sprintf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1f
jle 0x401bce
mov eax, dword [ebp + 0xc]
add eax, 0x40
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
leave
ret
Function at 0x401c55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
mov eax, esp
mov ebx, eax
mov dword [esp + 4], 0x40c064
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401c93
mov dword [esp], str.Unable_to_open_file_for_partial_hashing
call sym._perror
nop
mov esp, ebx
jmp 0x401d88
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._sha256_init
mov eax, dword [ebp + 0x10]
mov edx, eax
sub edx, 1
mov dword [ebp - 0x14], edx
mov edx, 0x10
sub edx, 1
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.00403040
sub esp, eax
lea eax, [esp + 0x10]
add eax, 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._sha256_update
lea eax, [ebp - 0xb0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._sha256_final
mov dword [ebp - 0xc], 0
jmp 0x401d6c
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0xc]
add edx, edx
mov ecx, edx
mov edx, dword [ebp + 0xc]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._02x
mov dword [esp], edx
call sym._sprintf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1f
jle 0x401d37
mov eax, dword [ebp + 0xc]
add eax, 0x40
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov esp, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40219d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.___mingw_opendir
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4022fc
mov dword [esp], str.Unable_to_open_directory_for_monitoring
call sym._perror
jmp 0x40232b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4022fc
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [esp + 4], str..crdownload
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4022fc
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s__s
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x424]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x465]
mov dword [esp + 4], eax
lea eax, [ebp - 0x424]
mov dword [esp], eax
call sym._sha256_hash
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x4022a0
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 6
add edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea eax, [ebp - 0x465]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x40229c
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x424]
mov dword [esp + 4], eax
mov dword [esp], str.Now_duplicate_file_is_being_downloaded__nFile:__s_n
call sym._printf
jmp 0x4022aa
add dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jg 0x402258
cmp dword [ebp - 0xc], 0
jne 0x4022ee
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 0x3e7
jg 0x4022ee
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, edx
shl eax, 6
add edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea eax, [ebp - 0x465]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
lea eax, [ebp - 0x424]
mov dword [esp], eax
call sym._remove
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.___mingw_readdir
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4021d5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym.___mingw_closedir
leave
ret
Function at 0x402b00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x518e64
call sym._EnterCriticalSection_4
mov ebx, dword [0x518e5c]
sub esp, 4
test ebx, ebx
je 0x402b4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402b44
test esi, esi
je 0x402b44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402b20
mov dword [esp], 0x518e64
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402e58
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402dbe
cmp eax, 4
jne 0x402de0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402dce
cmp edx, 4
je 0x402dce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402d30
Function at 0x4102e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x410302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4102f8
mov eax, 1
add ebx, ebx
jne 0x41031b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410310
jne 0x41032c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410310
xor ecx, ecx
sub eax, 3
jb 0x410340
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4103b2
mov ebp, eax
add ebx, ebx
jne 0x41034b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41037c
inc ecx
add ebx, ebx
jne 0x410368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41035d
jne 0x410379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41035d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41039c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41038d
jmp 0x4102fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41039c
add edi, ecx
jmp 0x4102fe
pop esi
mov edi, esi
mov ecx, 0x274
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4103ba
cmp byte [edi], 1
jne 0x4103ba
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 0x4103bf
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410437
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10eb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4103ec
mov ecx, edi
jns 0x41041b
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 + 0x10ebc]
or eax, eax
je 0x410431
mov dword [ebx], eax
add ebx, 4
jmp 0x410409
call dword [esi + 0x10ec0]
popal
jmp 0x405950
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

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