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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x437c60]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41cf69
push 0xa
pop esi
cmp word [ebx], si
jne 0x41cf69
or byte [eax + edi + 0x28], 4
jmp 0x41cf6e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x41d0d9
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x41d0b1
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41cfbb
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41cfe5
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41d004
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41cfd2
push ebx
add eax, 4
pop edx
jmp 0x41cfda
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x41cf80
jmp 0x41d0d9
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 0x41d0ac
cmp dword [ebp - 0x14], 0
je 0x41d0ac
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x437c60]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41d088
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41d050
mov word [esi], ax
jmp 0x41d0d6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x437c60]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x437c60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x437c60]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41d0d6
cmp word [ebp - 4], ax
jne 0x41d092
cmp esi, ebx
je 0x41d048
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d964
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41d0d9
push 0xd
pop eax
jmp 0x41d048
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x437c60]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41d0d3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41d0d9
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420487
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420524
push ebx
push esi
call fcn.00420450
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041f0ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4204d1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420523
push edi
push eax
call fcn.00419f60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4204f1
call fcn.00419b70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420522
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041f0ec
add esp, 0x20
test eax, eax
jne 0x420510
push edi
call fcn.00419b70
jmp 0x420518
push ebx
call fcn.00419b70
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x422936
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418b71
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 0x4229a5
cmp esi, dword [ebp - 4]
je 0x4229a0
cmp dword [ebp + 0xc], 0
je 0x4229a0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42297d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042248b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4229a7
xor eax, eax
inc eax
jmp 0x4229a7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x422a12
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x436080]
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.00418b71
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.00418b71
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 0x422a89
cmp word [ecx], dx
je 0x422a89
mov eax, dword [0x42e67c]
push edi
dec eax
push eax
push 0x42e568
call fcn.004229ab
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x422afc
cmp word [eax], dx
je 0x422afc
mov eax, dword [edi]
test eax, eax
je 0x422aad
cmp word [eax], dx
je 0x422aad
lea eax, [ebp - 0x10]
push eax
call fcn.00422391
jmp 0x422ab6
lea eax, [ebp - 0x10]
push eax
call fcn.0042242c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x422b26
mov eax, dword [0x42e564]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42e258
call fcn.004229ab
add esp, 0xc
test al, al
je 0x422b26
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x422af1
cmp word [eax], di
je 0x422af1
lea eax, [ebp - 0x10]
push eax
call fcn.00422391
pop ecx
jmp 0x422b28
lea eax, [ebp - 0x10]
push eax
call fcn.0042242c
jmp 0x422aee
mov eax, dword [edi]
test eax, eax
je 0x422b13
cmp word [eax], dx
je 0x422b13
lea eax, [ebp - 0x10]
push eax
call fcn.00422346
pop ecx
jmp 0x422b26
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 0x422bf1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00422830
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422bf1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x422bf1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x422bf1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x422b7e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041ba84
test ebx, ebx
je 0x422bec
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041ba84
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422bf1
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 0x422bf1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004267b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x422bf3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b7ac
leave
ret
Function at 0x426ea8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00426e21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x427017
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x427017
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x426fcc
jg 0x426f04
test eax, eax
je 0x426fc2
push 1
push 0x1000
call fcn.00418ee0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x426f27
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426fb9
push 0x8000
push ebx
call fcn.00415ff6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x426f50
jg 0x426f4b
cmp ecx, 0x1000
jb 0x426f50
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041994d
add esp, 0x10
cmp eax, 0xffffffff
je 0x426f95
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x426f4b
jl 0x426f7c
test ecx, ecx
jne 0x426f3d
push dword [ebp - 0xc]
push ebx
call fcn.00415ff6
push esi
call fcn.00419b70
add esp, 0xc
xor ebx, ebx
jmp 0x427025
cmp byte [edi + 0x24], 0
je 0x426fac
cmp dword [edi + 0x20], 5
jne 0x426fac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x426fb7
mov ebx, dword [edi + 0x18]
jmp 0x426fb9
xor ebx, ebx
push esi
call fcn.00419b70
pop ecx
jmp 0x427025
test ecx, ecx
jg 0x426f8e
jl 0x426fcc
test eax, eax
jae 0x426f8e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d964
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426fec
cmp byte [edi + 0x1c], 0
je 0x426f8e
jmp 0x42701d
push ebx
call fcn.0042093d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x426f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x427025
cmp byte [edi + 0x1c], 0
je 0x427022
mov ebx, dword [edi + 0x18]
jmp 0x427025
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d964
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x428270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42829d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42829d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4077b0
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edx
mov edi, dword [edi]
mov edx, dword [eax]
mov dword [ebp - 0x118], ecx
xor ecx, ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x40], ecx
test ebx, 0x800
je 0x40875e
mov dword [ebp - 0x24], 1
test ebx, 0x200
jne 0x408766
xor eax, eax
mov dword [ebp - 0xa0], eax
xor eax, 1
mov dword [ebp - 0xe4], eax
movsx eax, bl
and eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 0xfffffffe
mov dword [ebp - 0x74], 0xfffffffe
mov dword [ebp - 0x58], 0xfffffffe
mov dword [ebp - 0x30], 0xfffffffe
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x24], ecx
jmp 0x40783f
mov eax, 1
jmp 0x40784d

Function at 0x408922
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ecx]
push ebx
movzx eax, byte [eax + 0x49e560]
push esi
push edi
mov edi, edx
xor edx, edx
lea ecx, [ecx + eax*2]
inc edx
mov dword [ebp - 4], edi
call fcn.00408b14
mov esi, eax
cmp esi, edi
jae case.0x408a2d.119
push 0x77
pop ebx
Function at 0x40fe30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4c221c]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
test al, 1
je 0x4113cf
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x60], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
and al, 0x2c
mov word [esp + 0x30], 1
call fcn.0041f4ea
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x41150c
or eax, 1
push 0x471aaf
mov dword [0x4c221c], eax
mov dword [0x4c2220], 0
mov dword [0x4c2228], 0
mov dword [0x4c222c], 1
call fcn.00420f0a
add esp, 4
jmp 0x40fe50
xor ebx, ebx
mov dword [esp + 0x34], ebx
jmp 0x40fe95

Function at 0x41f52a
Capabilities:
Encrypt data using speck

Disassembly:
or dword [edx + 0x46178816], ecx
js 0x41f59f
push ss
sub esp, 0x10
jmp 0x41f53f
mov ebx, esi
call 0x59864b2e
jmp 0x41f4e2
cmp ah, byte [edi]
add byte [eax], al
Function at 0x421c9d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx ecx, word [edi]
cmp di, word [esi - 0x1247bf1]
add dword [edi + ecx - 0x49], esi
or al, 0x38
movzx eax, word [edi]
sub ecx, eax
adc eax, 0x4d48d14c
clc
jne 0x421cb7
add edi, esi
cmp word [eax + edi], cx
jne 0x421c8d
jmp 0x421cb7
cmp word [edi], cx
xor byte [esp + esi*4 - 0x7bf00002], al
jnp 0x421ccf
add edx, esi
add eax, esi
movzx ecx, word [edx]
jmp 0x3ba85cf4
mov esi, 0xc033bb75

Function at 0x421d84
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x89e80828
inc dword [ecx]
je 0x421de6
pop ecx
pop ebp
inc edi
push 0xc
push 0x4b6ac8
call 0x78416b00
invalid
lea eax, [ebp + 0xc]
push eax
or al, 0x50
dec eax
add byte [esi + 0x64e80828], bh
xor byte [eax], al
mov eax, 0x5020c08b
call 0x3f0e8ff0
add byte [eax], al
add byte [ecx + 0x7d], bl
invalid
call 0xb8424e56
mov eax, eax
and byte [eax + 0x56], dl

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x34f5650a
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1e2664b4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40f650
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x402486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401db8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404e78
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00404ed8
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x40f805
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x40f726
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f28
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x40f805
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x40498c
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.00404f88
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x40f805
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x40f7a3
mov dword [ebp - 0x8c], 0
jmp 0x40f7af
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x40f7e6
mov dword [ebp - 0x90], 0
jmp 0x40f7f2
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x40f6f4
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404cf8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x40f82d
jmp 0x40f82c
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403650
Capabilities:
Accept command line arguments
Inspect load icon resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconA]
push dword [ebp + 0x14]
mov dword [0x50c358], eax
push dword [ebp + 8]
push 0x4669fc
call fcn.00403bc7
and byte [0x509b18], 0
mov esi, 0xf0
mov edi, 0x140
push esi
push edi
mov dword [0x509b1c], 0x4669dc
call fcn.00403c30
push esi
call fcn.00403d89
push 0x40394e
push 0x403915
push 0x4038df
push 0x4038de
push 0x4038c1
call fcn.00405bd7
push 0
push 0xac44
call fcn.00405664
add esp, 0x34
test al, al
jne 0x4036d6
xor eax, eax
jmp 0x4038ba
push ebx
push 0
push 0x41cf3c
call fcn.004057fb
push eax
mov dword [0x509adc], eax
call fcn.00405924
mov ebx, 0x4b000
push ebx
call sub.MSVCRT.dll_malloc
push ebx
mov dword [0x509ae4], eax
call sub.MSVCRT.dll_malloc
push 0x7d20
mov dword [0x509ad8], eax
call sub.MSVCRT.dll_malloc
push esi
push edi
push 0x40a010
mov dword [0x509ad0], eax
push dword [0x509ae4]
call fcn.004031ee
push esi
push edi
push 0x466a00
push dword [0x509ad8]
call fcn.004031ee
push 0xb
push 0x2d8
push 0x46447c
push dword [0x509ad0]
call fcn.004031ee
add esp, 0x48
push dword [0x4666f0]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [0x509ae0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x4669d8
push eax
call sub.MSVCRT.dll_strstr
pop ecx
test eax, eax
pop ecx
je 0x403785
mov byte [0x509ae9], 1
mov esi, 0x82
push dword [0x509adc]
call fcn.00405bba
push dword [0x509adc]
mov dword [ebp + 8], eax
call fcn.00405b9c
pop ecx
mov edi, eax
pop ecx
xor eax, eax
mov ecx, dword [0x509ae4]
mov edx, dword [0x50a34c]
mov ecx, dword [eax + ecx]
mov dword [eax + edx], ecx
add eax, 4
cmp eax, ebx
jl 0x4037a9
fild dword [ebp + 8]
push ecx
push ecx
fst dword [ebp + 0x14]
fmul dword [0x409178]
fstp qword [esp]
call sub.MSVCRT.dll_sin
fadd qword [0x409170]
fmul qword [0x409168]
call sub.MSVCRT.dll__ftol
push dword [0x50a34c]
mov dword [ebp - 4], eax
mov eax, edi
push 4
cdq
pop ecx
idiv ecx
push 3
pop ecx
cdq
idiv ecx
push edx
push esi
push dword [ebp - 4]
call fcn.004030f6
fld dword [ebp + 0x14]
fmul dword [0x409160]
add esp, 0x10
fstp qword [esp]
call sub.MSVCRT.dll_cos
fadd qword [0x409170]
fmul qword [0x409168]
call sub.MSVCRT.dll__ftol
push dword [0x50a34c]
mov ecx, eax
lea eax, [edi + 8]
push 4
cdq
pop edi
idiv edi
push 3
pop edi
cdq
idiv edi
mov eax, 0xdc
sub eax, ecx
push edx
push esi
push eax
call section..text
push dword [ebp + 8]
push dword [0x50a34c]
call fcn.00403416
push dword [ebp + 8]
push dword [0x50a34c]
call fcn.004034b4
push dword [0x50a34c]
call fcn.00403dcb
add esp, 0x2c
cmp byte [0x509ae8], 0
je 0x40378a
cmp byte [0x509ae9], 0
jne 0x40378a
push dword [0x509adc]
call fcn.00405853
pop ecx
call fcn.00405793
call fcn.00403bb5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
leave
ret 0x10
Function at 0x405924
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50deec]
push ebx
cdq
idiv dword [0x50dee8]
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov edi, eax
jne 0x405948
xor al, al
jmp 0x405ad9
push esi
call fcn.00405ade
movzx eax, byte [esi + 0x126]
or dword [esi + 0x148], 0xffffffff
or dword [esi + 0x144], 0xffffffff
mov dword [esi + 0x127], eax
pop ecx
movsx eax, word [esi + 0x22]
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x150]
cmp eax, ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x14c], ebx
je 0x4059a3
push esi
call eax
pop ecx
movsx eax, word [esi + 0x24]
push eax
push esi
call fcn.004057c6
movsx eax, word [esi + 0x14]
imul eax, eax, 0xa4
push eax
push ebx
push 0x50c8a0
call sub.MSVCRT.dll_memset
add esp, 0x14
cmp word [esi + 0x14], bx
mov dword [ebp + 8], ebx
jle 0x4059f6
mov ecx, 0x50df20
mov eax, 0x50c8ab
mov edx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [eax - 8], ecx
mov dword [eax], edx
movsx edx, word [esi + 0x14]
add eax, 0xa4
add ecx, 0x4a
cmp dword [ebp + 8], edx
jl 0x4059da
lea eax, [edi + edi*2]
push 1
add eax, eax
mov dword [0x50c380], esi
push eax
call sub.MSVCRT.dll_calloc
mov dword [0x50de74], eax
mov eax, dword [0x50deec]
mov esi, eax
push 1
shl esi, 2
push esi
call sub.MSVCRT.dll_calloc
add esp, 0x10
or dword [0x50ded4], 0xffffffff
mov dword [0x50dec4], esi
mov esi, 0x50dec0
push 0x20
push esi
push dword [0x50df00]
mov dword [0x50dee0], eax
mov dword [0x50ded0], 0xc
mov dword [0x50dec0], eax
mov dword [0x50dec8], ebx
mov dword [0x50decc], ebx
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov eax, dword [0x50deec]
push 1
lea eax, [eax*8 + 0x100]
push eax
call sub.MSVCRT.dll_calloc
mov dword [0x50def4], eax
add eax, 0xf
pop ecx
and al, 0xf0
pop ecx
mov dword [0x50deb0], eax
mov dword [0x50c804], ebx
call fcn.00407f37
cmp dword [0x50c804], ebx
jne 0x405a8f
push 0x20
push esi
push dword [0x50df00]
call dword [sym.imp.WINMM.dll_waveOutWrite]
lea eax, [ebp + 8]
mov byte [0x50c400], bl
push eax
push ebx
push ebx
push 0x4080af
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xf
mov dword [0x50c800], eax
push dword [0x50c800]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret