joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2dc2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x758700]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2e05
cmp word [esi], dx
jne 0x4b2e05
or byte [edi + eax + 0x28], 4
jmp 0x4b2e0a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b2f5d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b2f3d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b2e4c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b2e82
cmp eax, edx
jae 0x4b2e8e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b2e24
jmp 0x4b2f5d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2f39
cmp dword [ebp - 0x14], 0
je 0x4b2f39
mov eax, dword [ebx*4 + 0x758700]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b2f11
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b2eda
mov word [esi], cx
jmp 0x4b2f0d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x758700]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x758700]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x758700]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b2f5d
pop ebx
cmp word [ebp - 4], bx
jne 0x4b2f22
cmp esi, dword [ebp + 0xc]
jne 0x4b2f22
mov word [esi], bx
jmp 0x4b2f5a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401ad7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b2f5d
push 0xd
jmp 0x4b2f56
mov ecx, dword [ebx*4 + 0x758700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2f54
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2f5d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x69222c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x695ea0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x695ea0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x692d98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x69222c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x4a139b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x695ea0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a1536
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a13fd
jmp 0x4a1536
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x695ea0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x695ea0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x695ea0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x695ea0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x695ea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4028c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x40ac70
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e054]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x48]
push 0x40caac
push eax
push edi
mov dword [esp + 0x4c], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x402a3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x402a3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, ebp
je 0x402a3e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402ce0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40295a
mov ecx, dword [esp + 0x20]
sub ecx, eax
jne 0x402963
call fcn.004038da
mov eax, dword [esp + 0x1c]
push esi
push ebx
push eax
call fcn.00405c00
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x14], ebp
jne 0x40297e
xor edi, edi
jmp 0x402984
mov edi, dword [esp + 0x20]
sub edi, eax
shr edi, 1
add edi, 1
lea ebx, [esp + 0x14]
lea esi, [esp + 0x28]
call fcn.004027c0
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x4029ad
mov eax, dword [esp + 0x20]
sub eax, ecx
mov ebp, eax
jne 0x4029b6
call fcn.004038da
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test edi, edi
mov ebx, dword [esp + 0x30]
mov esi, ecx
je 0x4029cc
mov edx, ebx
sub edx, edi
sar edx, 1
jne 0x4029d1
call fcn.004038da
push ebp
push esi
push edi
call fcn.00405c00
add esp, 0xc
test edi, edi
je 0x4029e6
sub ebx, edi
sar ebx, 1
jne 0x4029eb
call fcn.004038da
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029f0
mov esi, dword [esp + 0x4c]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00402250
test edi, edi
je 0x402a17
push edi
call fcn.004038ea
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402a28
push eax
call fcn.004038ea
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x402a4f
push eax
call fcn.004038ea
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x402a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40ac38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e054]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x38]
push 0x40cb60
push eax
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x402b9d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x402b9d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, ebx
je 0x402b9d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402ce0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402b0a
mov ecx, dword [esp + 0x20]
sub ecx, eax
jne 0x402b13
call fcn.004038da
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.00405c00
mov edx, dword [esp + 0x48]
add esp, 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402b9d
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
jne 0x402b4b
xor edi, edi
jmp 0x402b57
mov eax, dword [esp + 0x20]
sub eax, ecx
cmp eax, ebx
mov edi, eax
ja 0x402b60
call fcn.004038da
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402b87
push eax
call fcn.004038ea
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402bae
push eax
call fcn.004038ea
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x403102
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e054]
jne 0x40310c
repz ret
jmp fcn.00404195
Function at 0x408da3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004048bb
xor ebx, ebx
cmp dword [0x40f764], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x408e78
push 0x40b9a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x408de3
xor eax, eax
jmp 0x408f3c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b99c
push edi
call esi
cmp eax, ebx
je 0x408ddc
push eax
call fcn.00404858
mov dword [esp], 0x40b98c
push edi
mov dword [0x40f764], eax
call esi
push eax
call fcn.00404858
mov dword [esp], 0x40b978
push edi
mov dword [0x40f768], eax
call esi
push eax
call fcn.00404858
mov dword [0x40f76c], eax
lea eax, [ebp - 8]
push eax
call fcn.00403323
test eax, eax
pop ecx
pop ecx
je 0x408e46
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004037ba
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x408e78
push 0x40b95c
push edi
call esi
push eax
call fcn.00404858
cmp eax, ebx
pop ecx
mov dword [0x40f774], eax
je 0x408e78
push 0x40b944
push edi
call esi
push eax
call fcn.00404858
pop ecx
mov dword [0x40f770], eax
mov eax, dword [0x40f770]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x408ef1
cmp dword [0x40f774], esi
je 0x408ef1
push eax
call fcn.004048c4
pop ecx
call eax
cmp eax, ebx
je 0x408ebe
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40f774]
call fcn.004048c4
pop ecx
call eax
test eax, eax
je 0x408ebe
test byte [ebp - 0x18], 1
jne 0x408ef1
lea eax, [ebp - 0xc]
push eax
call fcn.0040335a
test eax, eax
pop ecx
je 0x408ed9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004037ba
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x408ee8
or dword [ebp + 0x10], 0x200000
jmp 0x408f22
or dword [ebp + 0x10], 0x40000
jmp 0x408f22
mov eax, dword [0x40f768]
cmp eax, esi
je 0x408f22
push eax
call fcn.004048c4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408f22
mov eax, dword [0x40f76c]
cmp eax, esi
je 0x408f22
push dword [ebp - 4]
push eax
call fcn.004048c4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40f764]
call fcn.004048c4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x8310895
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x31803e37
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406753
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00405a20
push ebx
mov ebx, dword [ebp + 8]
push esi
sub esi, esi
cmp ebx, dword [0x40ae60]
jae 0x406888
push ebx
pop eax
push ebx
pop ecx
sar eax, 5
and ecx, 0x1f
mov eax, dword [eax*4 + 0x40ad60]
test byte [eax + ecx*8 + 4], 1
je 0x406888
push 1
push esi
push ebx
call fcn.004040c7
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406892
push 2
push esi
push ebx
call fcn.004040c7
add esp, 0xc
cmp eax, 0xffffffff
je 0x406892
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
or edi, edi
jle 0x406835
push 0x1000
lea eax, [ebp - 0x1000]
push esi
push eax
call fcn.00405d90
push 0x8000
push ebx
call fcn.00406c31
add esp, 0x14
mov dword [ebp + 0xc], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4067f4
push edi
pop eax
push eax
lea eax, [ebp - 0x1000]
push eax
push ebx
call fcn.00404609
add esp, 0xc
cmp eax, 0xffffffff
je 0x406812
sub edi, eax
test edi, edi
jle 0x406828
jmp 0x4067e9
cmp dword [0x40a968], 5
jne 0x406825
mov dword [0x40a964], 0xd
or esi, 0xffffffff
push dword [ebp + 0xc]
push ebx
call fcn.00406c31
pop ecx
pop ecx
jmp 0x406875
jge 0x406875
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004040c7
push ebx
call fcn.004055cb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push eax
pop esi
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x406875
mov dword [0x40a964], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x40a968], eax
push 0
push dword [ebp + 8]
push ebx
call fcn.004040c7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x406895
mov dword [0x40a964], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x4da25a
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
lea esp, [esp + 0x34]
jmp 0x4da244