joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f58c
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 + 0x4eaad8]
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 0x46f5cf
cmp word [esi], dx
jne 0x46f5cf
or byte [edi + eax + 0x28], 4
jmp 0x46f5d4
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 0x46f727
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 0x46f707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46f616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f64c
cmp eax, edx
jae 0x46f658
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 0x46f5ee
jmp 0x46f727
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 0x46f703
cmp dword [ebp - 0x14], 0
je 0x46f703
mov eax, dword [ebx*4 + 0x4eaad8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46f6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46f6a4
mov word [esi], cx
jmp 0x46f6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4eaad8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4eaad8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4eaad8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46f727
pop ebx
cmp word [ebp - 4], bx
jne 0x46f6ec
cmp esi, dword [ebp + 0xc]
jne 0x46f6ec
mov word [esi], bx
jmp 0x46f724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46f727
push 0xd
jmp 0x46f720
mov ecx, dword [ebx*4 + 0x4eaad8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f727
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 0x4878b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0042c39e
mov cl, byte [0x491c7c]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
xor esi, esi
mov byte [esp + 0x20], cl
xor edi, edi
mov byte [esp + 0x21], 0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
nop dword [eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x491de0]
movss dword [esp + 0x14], xmm0
cmp esi, edi
je 0x487926
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x48793d
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00408170
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 0xa
jl 0x487900
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub esi, eax
xor ecx, ecx
mov edx, esi
xor ebp, ebp
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
je 0x4879cd
cmp edx, 0x3fffffff
ja 0x487ada
lea ebp, [edx*4]
cmp ebp, 0x1000
jb 0x4879a2
lea eax, [ebp + 0x23]
cmp eax, ebp
jbe 0x487adf
push eax
call fcn.0042c39e
add esp, 4
test eax, eax
je 0x487ae4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
test ebp, ebp
je 0x4879b7
push ebp
call fcn.0042c39e
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
xor ebx, ebx
push esi
push eax
push ebx
add ebp, ebx
call fcn.0042e280
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + eax*4]
sub ecx, ebx
sar ecx, 2
test ecx, ecx
je 0x487a5b
xor esi, esi
nop dword [eax]
movzx eax, byte [esi + 0x4e8100]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e8100], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e8100]
add esp, 4
add al, 0x4e
mov edx, str.Earth
xor al, 0xdc
mov byte [esi + 0x4e8100], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e8100]
add esp, 4
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x491cdc
mov byte [esi + 0x4e8100], al
call fcn.0045676a
xor byte [esi + 0x4e8100], al
add esp, 4
inc esi
cmp esi, 0x4ac
jb 0x4879e0
test ebx, ebx
je 0x487a88
sub ebp, ebx
mov eax, ebx
and ebp, 0xfffffffc
cmp ebp, 0x1000
jb 0x487a7e
mov ebx, dword [eax - 4]
add ebp, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push ebp
push ebx
call fcn.0042c3ce
add esp, 8
push 1
push dword [esp + 0x1c]
call fcn.0042c3ce
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x487ac7
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x487abd
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push edi
push ecx
call fcn.0042c3ce
add esp, 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c38b
add esp, 0x2c
ret
call fcn.004079e0
call fcn.00401520
call fcn.00456c11
int3
Function at 0x407701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x407710
pop dword [ebp - 0x50]
mov eax, 0xedae118e
add eax, 0x12926582
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd05917b8
sub dword [ebp - 0x60], 0x8206d26d
mov dword [ebp - 0x5c], 0x244827ef
add dword [ebp - 0x5c], 0xdeb2456
mov dword [ebp - 0x58], 0x40cdfebf
sub dword [ebp - 0x58], 0xf481ba91
mov dword [ebp - 0x54], 0x653f9ce1
sub dword [ebp - 0x54], 0x653f9ce1
lea eax, [ebp - 0x60]
push eax
mov eax, 0xe9079d14
sub eax, 0xe8c71d00
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb76f823f
sub dword [ebp - 0x60], 0x42fd18e9
mov dword [ebp - 0x5c], 0xcd483206
add dword [ebp - 0x5c], 0x74242f6f
mov dword [ebp - 0x58], 0x8a99d94b
sub dword [ebp - 0x58], 0x272a6cdf
mov dword [ebp - 0x54], 0xdd6ea46d
sub dword [ebp - 0x54], 0xdd6ea46d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x8ea62051
sub eax, 0x8e65a041
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a90c
push 0
call eax
mov ecx, 0x4cb9261b
sub ecx, 0x4cb8d07d
mov esi, eax
mov edi, 0x45a34797
add edi, 0xba9da469
add edi, dword [ebp - 0x50]
mov edx, 0xa9a066ab
add edx, 0x81ad8991
add dword [ebp - 0x34], 0xc5424c42
mov ebx, dword [edi]
sub dword [ebp - 0x24], eax
sub ebx, edx
xor dword [ebp - 0x48], 0x682fcd07
mov dword [esi], ebx
sub dword [ebp - 4], eax
add esi, 0x4638feb3
add esi, 0xb9c70151
add edi, 0x7019674
add edi, 0xf8fe6990
loop 0x407832
add eax, 0x1494b
mov ebx, eax
add eax, 0xd7c45589
add eax, 0x283baa7c
mov ecx, 0xbfc8227
add ecx, 0xf4437dd9
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x431fda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431fd0
mov eax, 1
add ebx, ebx
jne 0x431ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431fe8
jne 0x432004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431fe8
xor ecx, ecx
sub eax, 3
jb 0x432018
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43208a
mov ebp, eax
add ebx, ebx
jne 0x432023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x432054
inc ecx
add ebx, ebx
jne 0x432040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x432035
jne 0x432051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432035
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x432074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x432065
jmp 0x431fd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x432074
add edi, ecx
jmp 0x431fd6
pop esi
mov edi, esi
mov ecx, 0xa75
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x432092
cmp byte [edi], 0x12
jne 0x432092
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 0x432097
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x43210f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a808]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a8e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4320c4
mov ecx, edi
jns 0x4320f3
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 + 0x3a8f0]
or eax, eax
je 0x432109
mov dword [ebx], eax
add ebx, 4
jmp 0x4320e1
call dword [esi + 0x3a8ec]
mov ebp, dword [esi + 0x3a8f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x432143
sub esp, 0xffffff80
jmp 0x41bc3f
Function at 0x401710
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40174f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40174f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40174f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40174f
cmp dword [ecx + 0x74], 0xe
jbe 0x40174f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10008880
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.100e4e40
test eax, eax
jne 0x100089e6
cmp byte [0x101170fc], al
jne 0x100088a4
xor edi, edi
jmp 0x100088bf
push 5
call dword [0x10117140]
mov edi, eax
add esp, 4
test edi, edi
je 0x100088bf
push edi
call dword [0x10117148]
add esp, 4
mov edx, dword [ebp + 8]
test edx, edx
jle 0x100089ce
test esi, esi
je 0x100089ce
cmp dword [0x10119650], 0
jne 0x1000895a
push 0
call fcn.100e4e40
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x10119650], xmm0
test eax, eax
jne 0x10008906
push 0x2c
push eax
push 0x10119660
call sub.VCRUNTIME140.dll_memset
jmp 0x10008936
cmp dword [0x1011720c], 0
je 0x10008929
push 0x2c
push 0
push 0x10119660
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1011720c]
mov dword [0x10119660], eax
jmp 0x10008936
push 0x10119660
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10119680]
add esp, 0xc
mov edx, dword [ebp + 8]
xor cl, cl
mov dword [0x1011968c], eax
mov dword [0x10119680], 0
mov byte [0x101196d0], cl
jmp 0x10008960
mov cl, byte [0x101196d0]
movzx eax, cl
cmp edx, eax
jle 0x100089ae
test cl, cl
je 0x10008989
movzx eax, cl
push eax
push 0x10119690
push esi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x101196d0]
add esp, 0xc
sub dword [ebp + 8], eax
add esi, eax
inc dword [0x10119680]
mov edx, 0x10119650
mov ecx, 0x10119690
call fcn.100e4e40
mov edx, dword [ebp + 8]
mov cl, 0x40
mov byte [0x101196d0], cl
cmp edx, 0x40
jg 0x10008967
movzx eax, cl
sub eax, edx
push edx
add eax, 0x10119690
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
sub byte [0x101196d0], al
jmp 0x100089d8
mov dword [0x10119650], 0
test edi, edi
je 0x100089e6
push edi
call dword [0x10117150]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100e4e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x100e4e4f
pop dword [ebp - 0x50]
mov eax, 0x100e4e4f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xfd68171b
add dword [ebp - 0x60], 0x50ea2e30
mov dword [ebp - 0x5c], 0x51e6db14
sub dword [ebp - 0x5c], 0x1fb38ecf
mov dword [ebp - 0x58], 0xe76b29d8
add dword [ebp - 0x58], 0x64e11a56
mov dword [ebp - 0x54], 0x657d275d
add dword [ebp - 0x54], 0x9a82d8a3
lea eax, [ebp - 0x60]
push eax
mov eax, 0xf5ff42f2
add eax, 0x1a10cda2
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb617296f
sub dword [ebp - 0x60], 0x41a4c019
mov dword [ebp - 0x5c], 0x83bbb907
add dword [ebp - 0x5c], 0xbdb0a86e
mov dword [ebp - 0x58], 0xaf20384f
sub dword [ebp - 0x58], 0x4bb0cbe3
mov dword [ebp - 0x54], 0xbe1ea33d
sub dword [ebp - 0x54], 0xbe1ea33d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x6618b
push 0
call eax
mov ecx, 0x648914f8
add ecx, 0x9b772558
xor ebx, ebx
add ebx, eax
mov esi, 0x784a8e50
sub esi, 0x68385050
add esi, dword [ebp - 0x50]
mov edx, 0xbb8177db
sub edx, 0x1aa1bb83
xor dword [ebp - 0x4c], 0xec1aea25
mov edi, dword [esi]
sub dword [ebp - 0x48], edi
sub edi, edx
sub dword [ebp - 0x10], edi
mov dword [ebx], edi
add dword [ebp - 0xc], 0x91613c29
add ebx, 4
add esi, 4
loop 0x100e4f69
add eax, 0xdc13
xor ebx, ebx
add ebx, eax
add eax, 0xf9fa9783
add eax, 0x6056882
mov ecx, 0xc23dd658
add ecx, 0x4dc229a8
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6c2c4557
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x32f862f3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402edc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f18
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f38
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405d24
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4031fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ab4
test esi, esi
jne 0x403232
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405ba4
jmp 0x403250
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004030a0
mov edi, eax
test esi, esi
je 0x403250
cmp dword [ebx], 0
je 0x403250
dec esi
jmp 0x403239
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4dc008], 0x8088405
inc edx
mov dword [ebx + 0x4dc008], edx
mul edx
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4dc008], 0x8088405
inc edx
mov dword [ebx + 0x4dc008], edx
fld qword [ebx + 0x4dc758]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403ff8
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404016
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x404020
jmp fcn.00402e30
mov eax, 0x67
jmp fcn.00402e20
ret

Function at 0x404a88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4dc024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404b20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b00
xor eax, eax
push ebp
push 0x404af9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404b3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4dc024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4dc024], ax
mov esp, ebp
pop ebp
ret
Function at 0x405934
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e4048], 0
je 0x405995
cmp word [0x4e421c], 0xd7b2
jne 0x40595d
cmp dword [0x4e4224], 0
jbe 0x40595d
mov eax, 0x4e4218
call dword [0x4e4234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4059bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4dc030], 0
jne 0x4059b1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407198
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4073c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40721b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4073c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40721b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4073e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4072a4
xor eax, eax
push ebp
push 0x40729d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406fd4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407282
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407404
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407282
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4073be
cmp byte [ebp - 0xd], 0
jne 0x4072eb
cmp byte [ebp - 0x12], 0
je 0x4073be
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407304
dec ebx
cmp byte [ebx], 0x2e
je 0x407313
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407303
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4073be
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407350
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4073be
cmp byte [ebp - 0xd], 0
je 0x4073be
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4073be
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret