joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c39
Capabilities:
Terminate process

Disassembly:
test byte [ebx + 4], 4
jne 0x407c44
jmp fcn.00407b0f
mov dword ds:[ebp - 0x68], esi
mov dword ds:[ebp - 0x64], edi
pop dword ds:[ebp - 0x6c]
pop eax
pop ax
xor ah, ah
pop cx
cmp cl, byte [ebx + 6]
call fcn.00407d60
pop edx
cmp edx, dword [ebx + 0x14]
call fcn.00407d60
movzx ecx, ch
mov esi, ecx
shl esi, 1
add esi, ecx
shl esi, 2
lea edi, [ebx + esi + 0x10]
pop dword ds:[ebp - 0x60]
push dword [edi]
pop edx
cmp edx, dword [ebx + esi + 0x10]
call fcn.00407d60
pop edx
cmp edx, dword [ebx + esi + 0xc]
call fcn.00407d60
sub esi, 0xc
jne 0x407c7e
or ah, ah
jne 0x407d4d
cmp cl, byte [ebx + 7]
jne 0x407d4d
mov edx, dword ds:[ebp - 0x60]
cmp edx, dword [edi - 4]
jl 0x407d4d
mov byte [ebx + 4], al
mov ecx, dword [edi]
sub ecx, edx
jle 0x407ce3
cmp byte [ebx + 7], 1
je 0x407cc8
imul ecx, dword [edi - 8]
push edi
mov al, byte [ebx + 6]
mov esi, ecx
mov edi, dword [ebx]
push dword [ebx + 8]
sub dword [esp], ecx
pop ecx
imul ecx, dword [ebx + 0x14]
add edi, ecx
call fcn.00407e51
pop edi
push dword [ebx + 8]
push dword [ebx + 0xc]
movzx ecx, byte [ebx + 7]
xor esi, esi
mov dword [edi], edx
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
inc eax
dec ecx
je 0x407d16
add esi, 0xc
mov dword [ebx + esi + 0x14], eax
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
inc eax
mul dword [ebx + esi + 0x14]
dec ecx
ja 0x407cfd
jb 0x407d43
mov dword [ebx + 8], eax
mul dword [ebx + 0x14]
jb 0x407d43
mov ecx, eax
xchg dword [ebx + 0xc], eax
mov edx, eax
mov eax, dword [ebx]
call fcn.00407d65
jb 0x407d45
add esp, 8
mov dword [ebx], eax
or byte [ebx + 4], 4
mov esi, dword ds:[ebp - 0x68]
mov edi, dword ds:[ebp - 0x64]
notrack jmp dword ds:[ebp - 0x6c]
mov al, 9
pop dword [ebx + 0xc]
pop dword [ebx + 8]
mov dx, 0x9b0
mov al, 9
mov esi, dword ds:[ebp - 0x68]
mov edi, dword ds:[ebp - 0x64]
push dword ds:[ebp - 0x6c]
jmp fcn.0040770c

Function at 0x407dd9
Capabilities:
Terminate process

Disassembly:
call fcn.00407de6
jb 0x407de1
ret
jmp fcn.0040770c

Function at 0x408a41
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edx, ecx
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00408be2
test eax, eax
jns 0x408a5a
add eax, ecx
test edx, edx
je 0x408a9a
jns 0x408a65
add edx, ecx
js 0x408a9a
inc edx
dec edx
add esi, edx
sub ecx, edx
jae 0x408a6e
xor ecx, ecx
cmp ecx, eax
jb 0x408a74
mov ecx, eax
call fcn.00408b86
jb 0x408a9e
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00408c56
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
ret
xor edx, edx
jmp 0x408a88
pop edi
pop esi
jmp fcn.0040770c
Function at 0x408aa5
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00408be2
test eax, eax
jns 0x408abd
add eax, ecx
cmp eax, ecx
jae 0x408ae9
xchg ecx, eax
call fcn.00408b86
jb 0x408aed
sub eax, ecx
add esi, eax
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00408c56
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
pop ecx
ret
pop edi
pop esi
pop ecx
jmp fcn.0040770c

Function at 0x408b04
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
mov ecx, eax
call fcn.00408b86
jb 0x408b27
mov eax, 0x20202020
cld
shr ecx, 1
rep stosw word es:[edi], ax
adc cl, 0
rep stosb byte es:[edi], al
call fcn.00409599
pop edi
pop ecx
ret
pop edi
pop ecx
call fcn.00409597
jmp fcn.0040770c

Function at 0x408dd8
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x408df8
and esi, 0xfffffffe
jne 0x408e02
xchg dword [ebx], esi
call fcn.00408bba
pop edi
pop esi
ret
call fcn.00408be2
mov edi, dword [ebx]
or edi, edi
je 0x408e12
cmp ecx, dword [edi - 4]
je 0x408e32
call fcn.00408b86
jb 0x408e42
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.00408bba
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.00408bba
pop edi
pop esi
jmp fcn.0040770c

Function at 0x408f47
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + edi - 0x6c]
call fcn.00408be2
mov ebx, ecx
push esi
mov esi, dword [ebp + edi - 0x68]
call fcn.00408be2
add ebx, ecx
xchg ecx, ebx
call fcn.00408b86
jb 0x408fb7
xchg ecx, ebx
sub ebx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x88]
mov esi, edx
xchg dword [ebp + edi - 0x68], esi
call fcn.00408bba
mov esi, dword [ebp + edi - 0x6c]
call fcn.00408bba
add dword [ebp - 0x88], 4
pop edi
pop esi
pop ecx
pop ebx
ret
pop esi
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040770c
Function at 0x40947f
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xa
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x4094ac
je 0x4094a8
shr esi, 1
jae 0x4094cd
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.00408bba
jmp 0x40948b
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x4094de
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.00407de6
pop ebx
jae 0x40948b
pop esi
pop edx
pop eax
jmp fcn.0040770c
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x40948b
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x40948b
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x40948b
Function at 0x5ef7f9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ef814
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b4a39]
pop edx
test eax, eax
je 0x5ef8e6
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5ef8d5
test dword [ebp - 0x2a8], 1
jne 0x5ef8d5
and dword [ebp - 0x2a8], 0x100
jne 0x5ef8d5
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2b9c]
pop edx
pop esi
test eax, eax
je 0x5ef878
jmp 0x5ef8d5
cmp word [esi], 0x5a4d
jne 0x5ef8d5
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5ef8d5
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2cbc]
pop edx
test eax, eax
je 0x5ef8d5
lea eax, [ebp - 0x28c]
push eax
call fcn.005ef755
test eax, eax
jne 0x5ef8ce
jmp 0x5ef8d5
mov eax, esi
jmp 0x5ef8e6
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5ef814
pop esi
leave
ret 4
Function at 0x486a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
lea eax, [edi + 0x77660]
push dword [eax]
mov dword [eax], 0xf92be0d3
push eax
push edi
or ebp, 0xffffffff
jmp 0x486ab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486aa8
mov eax, 1
add ebx, ebx
jne 0x486acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x486adc
jne 0x486afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486afb
dec eax
add ebx, ebx
jne 0x486ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x486ac0
add ebx, ebx
jne 0x486af7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x486b4d
xor ecx, ecx
sub eax, 3
jb 0x486b13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x486b82
sar eax, 1
mov ebp, eax
jmp 0x486b1e
add ebx, ebx
jne 0x486b1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486aec
inc ecx
add ebx, ebx
jne 0x486b2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486aec
add ebx, ebx
jne 0x486b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x486b2e
jne 0x486b4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x486b2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x486b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x486b5e
jmp 0x486aae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x486b6c
add edi, ecx
jmp 0x486aae
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x1c9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x486b8e
cmp byte [edi], 0x11
jne 0x486b8e
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 0x486b93
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x486c02
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x87684]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x876d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x486bc0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x876dc]
or eax, eax
je 0x486bfc
mov dword [ebx], eax
add ebx, 4
jmp 0x486bdd
call dword [esi + 0x876d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x486c33
cmp al, 0xef
ja 0x486c26
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x486c08
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x486c15
mov ebp, dword [esi + 0x876e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x486c67
sub esp, 0xffffff80
jmp 0x431789
Function at 0x1058175c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x105e11f0]
jne 0x10581766
repz ret
jmp fcn.10581a0d

Function at 0x10581dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.10581dc0]
mov dword [ebp - 8], eax
mov dword [0x105e11d0], 0x1ba8
jmp 0x10581e13
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
sete dl
mov byte [ebp - 9], dl
mov al, byte [ebp - 9]
test al, 1
jne 0x10581e02
jmp 0x10581e22
mov al, 1
test al, 1
jne 0x10581e13
jmp 0x10581e0a
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10581e40
mov dword [ebp - 4], 0
jmp 0x10581e40
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10581ddb
jmp 0x10581e24
jmp 0x10581e24
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x105e11d0], 0x183d
jmp 0x10581dfa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
Function at 0x10582060
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [0x105e11d0], 0x2200
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1058210f
mov eax, dword [0x105e11d0]
add eax, 0x2185
mov dword [0x105e11cc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x1058216e
jmp 0x105821ec
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1058210f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x105821b5
jmp 0x105821e3
jmp 0x105821ec
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x10582193
jmp 0x105821e7
jmp 0x105821e3
cmp dword [ebp - 0x10], 0x104
setl al
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x11]
test al, 1
jne 0x10582136
jmp 0x10582153
mov eax, dword [0x105e11cc]
add eax, 0x1cd3
mov dword [0x105e11cc], eax
jmp 0x105820c2
mov dword [0x105e11cc], 0x1793
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10582125
jmp 0x10582153
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10582098
jmp 0x105821ee
mov dword [0x105e11cc], 0x2ac
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x105820ef
jmp 0x105820ea
mov dword [0x105e11cc], 0xf8f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x105820cf
jmp 0x105821e5
mov eax, dword [0x105e11d0]
add eax, 0x156
mov dword [0x105e11cc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x1058210a
mov dword [ebp - 4], 1
jmp 0x105821f5
jmp 0x105821e5
jmp 0x105821e7
jmp 0x105820ea
jmp 0x105821ee
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebp
ret
Function at 0x105826b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [0x105e11cc], 0x228b
mov dword [0x105e11d4], 0
mov dword [0x105e11d8], 0
mov dword [0x105e11e4], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [0x105e11cc]
sub ecx, 0x273
mov dword [0x105e11d0], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x10582850
mov eax, 0x100
mov dword [0x105e11cc], 0x64
mov ecx, dword [0x105e11cc]
sub ecx, 0x109d
mov dword [0x105e11cc], ecx
mov ecx, dword [0x105e11d4]
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x105e11d4], edx
mov dword [0x105e11cc], 0x7c8
mov edx, dword [0x105e11d8]
mov esi, dword [0x105e11d4]
mov edi, dword [ebp - 0x10]
movzx esi, byte [edi + esi]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x105e11d8], edx
mov edx, dword [0x105e11d4]
mov esi, dword [ebp - 0x10]
mov bl, byte [esi + edx]
mov byte [0x105e11dc], bl
mov edx, dword [0x105e11d8]
mov esi, dword [ebp - 0x10]
mov bl, byte [esi + edx]
mov edx, dword [0x105e11d4]
mov esi, dword [ebp - 0x10]
mov byte [esi + edx], bl
mov edx, dword [0x105e11cc]
sub edx, 0x1f08
mov dword [0x105e11d0], edx
mov edx, dword [0x105e11d0]
sub edx, 0x1479
mov dword [0x105e11cc], edx
mov bl, byte [0x105e11dc]
mov edx, dword [0x105e11d8]
mov esi, dword [ebp - 0x10]
mov byte [esi + edx], bl
mov dword [0x105e11d0], 0x1fab
mov edx, dword [0x105e11d4]
mov esi, dword [ebp - 0x10]
movzx edx, byte [esi + edx]
mov esi, dword [0x105e11d8]
mov edi, dword [ebp - 0x10]
movzx esi, byte [edi + esi]
add edx, esi
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
mov eax, edx
cdq
idiv ecx
mov dword [0x105e11e4], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
mov esi, dword [0x105e11e4]
mov edi, dword [ebp - 0x10]
movzx esi, byte [edi + esi]
xor edx, esi
mov bl, dl
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
jmp 0x1058285e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jb 0x1058272b
jmp 0x1058286b
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x10582850
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402a0c
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.00404024
test esi, esi
jne 0x402a42
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.00404114
jmp 0x402a60
call sub.KERNEL32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402920
mov edi, eax
test esi, esi
je 0x402a60
cmp dword [ebx], 0
je 0x402a60
dec esi
jmp 0x402a49
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40314c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4cc024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031e4
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031c4
xor eax, eax
push ebp
push 0x4031bd
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 0x403200
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 0x4031c4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x4cc024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4cc024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ea8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf048], 0
je 0x403f09
cmp word [0x4cf21c], 0xd7b2
jne 0x403ed1
cmp dword [0x4cf224], 0
jbe 0x403ed1
mov eax, 0x4cf218
call dword [fcn.004cf234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cc070
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 0x403f30
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc034], 0
jne 0x403f25
push 0
push 0x4cc068
push 0x4cc070
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4052b4
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 0x4054e4
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e4
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x405337
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405500
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053c0
xor eax, eax
push ebp
push 0x4053b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050fc
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 0x40539e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405520
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x40539e
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 0x4053c0
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 0x4054da
cmp byte [ebp - 0xd], 0
jne 0x405407
cmp byte [ebp - 0x12], 0
je 0x4054da
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405420
dec ebx
cmp byte [ebx], 0x2e
je 0x40542f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40541f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40546c
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 0x4054da
cmp byte [ebp - 0xd], 0
je 0x4054da
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 0x4054da
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