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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5da998]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x561cbf
cmp word [ebx], dx
jne 0x561cbf
or byte [eax + edi + 0x28], 4
jmp 0x561cc4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x561e27
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x561e07
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x561d05
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x561d3b
cmp eax, edx
jae 0x561d49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x561ce0
jmp 0x561e27
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x561e02
cmp dword [ebp - 0x18], 0
je 0x561e02
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5da998]
test byte [eax + edi + 0x28], 0x48
je 0x561dd8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x561d9c
mov word [esi], cx
jmp 0x561dd3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5da998]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5da998]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5da998]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x561e27
pop eax
cmp word [ebp - 4], ax
jne 0x561de8
cmp esi, ebx
jne 0x561de8
mov word [esi], ax
jmp 0x561e24
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005544b7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x561e27
push 0xd
pop eax
jmp 0x561de3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5da998]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x561e21
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x561e27
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x564d3b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5cc6c0]
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 0x564d86
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00564ed6
test al, al
jne 0x564d80
sub edx, 2
cmp edx, edi
jne 0x564d66
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x564da8
lea eax, [edi + 2]
cmp edx, eax
je 0x564da8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00564c87
add esp, 0x10
jmp 0x564ea2
push esi
lea ecx, [ebp - 0x255]
call fcn.00564ed6
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 0x564deb
push dword [ebp - 0x25c]
jmp 0x564d98
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 0x564e28
cmp word [ebp - 0x226], 0
je 0x564e49
cmp word [ebp - 0x226], ax
jne 0x564e28
cmp word [ebp - 0x224], 0
je 0x564e49
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00564c87
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x564e95
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x564e02
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x564e7d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x564ea2
push 0x564ab7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00569f70
add esp, 0x10
jmp 0x564e72
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.004fa0d4
leave
ret

Function at 0x5657b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5657c9
pop esi
ret
push ebx
push edi
push esi
call fcn.00565781
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0055c393
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5657f1
push ebx
push esi
push edi
call fcn.0053e5a0
add esp, 0xc
push 0
call fcn.0055c359
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x565bc1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00565806
Function at 0x567c45
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0055c06e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x567cb4
cmp esi, dword [ebp - 4]
je 0x567caf
cmp dword [ebp + 0xc], 0
je 0x567caf
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x567c8c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00567797
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x567cb6
xor eax, eax
inc eax
jmp 0x567cb6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x567d1b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5cc6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0055c06e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0055c06e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x567d92
cmp word [ecx], dx
je 0x567d92
mov eax, dword [0x5a87cc]
push edi
dec eax
push eax
push 0x5a86b8
call fcn.00567cba
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x567e05
cmp word [eax], dx
je 0x567e05
mov eax, dword [edi]
test eax, eax
je 0x567db6
cmp word [eax], dx
je 0x567db6
lea eax, [ebp - 0x10]
push eax
call fcn.0056769d
jmp 0x567dbf
lea eax, [ebp - 0x10]
push eax
call fcn.00567738
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x567e2f
mov eax, dword [0x5a86b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5a83a8
call fcn.00567cba
add esp, 0xc
test al, al
je 0x567e2f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x567dfa
cmp word [eax], di
je 0x567dfa
lea eax, [ebp - 0x10]
push eax
call fcn.0056769d
pop ecx
jmp 0x567e31
lea eax, [ebp - 0x10]
push eax
call fcn.00567738
jmp 0x567df7
mov eax, dword [edi]
test eax, eax
je 0x567e1c
cmp word [eax], dx
je 0x567e1c
lea eax, [ebp - 0x10]
push eax
call fcn.00567652
pop ecx
jmp 0x567e2f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x567efa
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00567b3f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x567efa
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x567efa
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x567efa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x567e87
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0055e32f
test ebx, ebx
je 0x567ef5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0055e32f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x567efa
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x567efa
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00557229
add esp, 0x10
xor eax, eax
inc eax
jmp 0x567efc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa0d4
leave
ret
Function at 0x411498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.004217e0
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0041a32b
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00416f8c
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.004214a0
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x4114f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x411531
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x41151b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4134b4
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x458d98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x4134e3
push edi
movzx edx, byte [ecx + 0x458d98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x4134cd
pop edi
mov eax, esi
pop esi
ret

Function at 0x419cd3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x419ce7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419d74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x419d9c
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x419e94
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x419e94
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x419e73
pop ebx
leave
ret
Function at 0x41b08d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x41b1a7
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41b0cb
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x41b1a5
lea eax, [edi - 1]
cmp esi, eax
je 0x41b0fc
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x41b12c
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x41b10e
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x41b160
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x41b19c
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x41b16d
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x41b13c
inc esi
cmp esi, edi
jl 0x41b0e4
pop esi
pop ebx
pop edi
leave
ret
Function at 0x422713
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b820
call fcn.00421f0c
mov edi, 0x94
mov eax, edi
call fcn.00421970
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x463a78], ecx
mov eax, dword [esi + 4]
mov dword [0x463a84], eax
mov edx, dword [esi + 8]
mov dword [0x463a88], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x463a7c], esi
cmp ecx, 2
je 0x422773
or esi, 0x8000
mov dword [0x463a7c], esi
shl eax, 8
add eax, edx
mov dword [0x463a80], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4227ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4227ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4227c6
cmp eax, 0x20b
je 0x4227b3
mov dword [ebp - 0x1c], esi
jmp 0x4227da
cmp dword [ecx + 0x84], 0xe
jbe 0x4227ae
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4227d4
cmp dword [ecx + 0x74], 0xe
jbe 0x4227ae
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0042571f
pop ecx
test eax, eax
jne 0x422806
cmp dword [0x463a58], 1
jne 0x4227f3
call fcn.00424ed4
push 0x1c
call fcn.00424d5d
push 0xff
call fcn.004238dc
pop ecx
pop ecx
call fcn.0042567d
mov dword [ebp - 4], esi
call fcn.004254d2
test eax, eax
jge 0x42281f
push 0x1b
call fcn.004226ee
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x465050], eax
call fcn.004253b0
mov dword [0x463a50], eax
call fcn.0042530e
test eax, eax
jge 0x422845
push 8
call fcn.004226ee
pop ecx
call fcn.004250db
test eax, eax
jge 0x422856
push 9
call fcn.004226ee
pop ecx
push 1
call fcn.0042390c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42286c
push eax
call fcn.004226ee
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042507e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42288d
movzx eax, word [ebp - 0x40]
jmp 0x422890
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d8fd
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4228ae
push edi
call fcn.00423a37
call fcn.00423a59
jmp 0x4228e0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421f47
ret
Function at 0x423dc6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x423df4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x423dfb
cmp ebx, dword [eax + 4]
jae 0x423dfb
xor eax, eax
jmp 0x423feb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x423e0c
xor eax, eax
inc eax
jmp 0x423fea
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x423e22
cmp ecx, edx
jae 0x423f67
cmp dword [eax + 4], 0
je 0x423e2b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x423e13
cmp dword [ebp + 8], 0
je 0x423e4d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x423f67
cmp eax, esi
jae 0x423f67
mov eax, dword [0x463ac0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x423e72
cmp dword [esi*4 + 0x463ac8], edi
je 0x423f6b
inc esi
cmp esi, eax
jl 0x423e60
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x423fe7
cmp dword [ebp - 8], 0x1000000
jne 0x423fe7
test byte [ebp - 0xc], 0xcc
je 0x423ef0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x423fe7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x423fe7
cmp word [eax + 0x18], 0x10b
jne 0x423fe7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x423fe7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x423ef0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x423ef0
test byte [ecx + 0x27], 0x80
jne 0x423f67
push 1
push 0x463b08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x423e04
mov ecx, dword [0x463ac0]
test ecx, ecx
mov edx, ecx
jle 0x423f24
lea eax, [ecx*4 + 0x463ac4]
cmp dword [eax], edi
je 0x423f24
dec edx
sub eax, 4
test edx, edx
jg 0x423f18
test edx, edx
jne 0x423f55
push 0xf
pop ebx
cmp ecx, ebx
jg 0x423f31
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x423f49
lea eax, [edx*4 + 0x463ac8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x423f37
cmp ecx, 0x10
jge 0x423f55
inc ecx
mov dword [0x463ac0], ecx
push 0
push 0x463b08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x423e04
xor eax, eax
jmp 0x423fea
test esi, esi
jle 0x423e04
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x463b08
call ebx
test eax, eax
jne 0x423e04
cmp dword [esi*4 + 0x463ac8], edi
je 0x423fc1
mov eax, dword [0x463ac0]
lea esi, [eax - 1]
test esi, esi
jl 0x423faf
cmp dword [esi*4 + 0x463ac8], edi
je 0x423fab
dec esi
jns 0x423f9f
test esi, esi
jge 0x423fbf
cmp eax, 0x10
jge 0x423fba
inc eax
mov dword [0x463ac0], eax
lea esi, [eax - 1]
jmp 0x423fc1
je 0x423fd9
xor ecx, ecx
test esi, esi
jl 0x423fd9
lea eax, [ecx*4 + 0x463ac8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x423fc7
push 0
push 0x463b08
call ebx
jmp 0x423e04
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x4bb23230
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x77032f29
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
nop
mov ecx, 0x702d4c0b
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x5a779a1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x22935f81
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x25d3247c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219