joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d7294
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 0x100d7331
push ebx
push esi
call fcn.100d725d
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.100d4442
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d72de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d7330
push edi
push eax
call fcn.100cd470
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d72fe
call fcn.100cd436
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d732f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d4442
add esp, 0x20
test eax, eax
jne 0x100d731d
push edi
call fcn.100cd436
jmp 0x100d7325
push ebx
call fcn.100cd436
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 0x100d7334
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d7345
pop esi
ret
push ebx
push edi
push esi
call fcn.100d725d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100cd470
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d736d
push ebx
push esi
push edi
call fcn.100b7730
add esp, 0xc
push 0
call fcn.100cd436
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d773d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d7382

Function at 0x100d9ce3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100cb82c
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 0x100d9d52
cmp esi, dword [ebp - 4]
je 0x100d9d4d
cmp dword [ebp + 0xc], 0
je 0x100d9d4d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100d9d2a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100d9835
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100d9d54
xor eax, eax
inc eax
jmp 0x100d9d54
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100d9db9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10122094]
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.100cb82c
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.100cb82c
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 0x100d9e30
cmp word [ecx], dx
je 0x100d9e30
mov eax, dword [0x100fc114]
push edi
dec eax
push eax
push 0x100fc000
call fcn.100d9d58
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100d9ea3
cmp word [eax], dx
je 0x100d9ea3
mov eax, dword [edi]
test eax, eax
je 0x100d9e54
cmp word [eax], dx
je 0x100d9e54
lea eax, [ebp - 0x10]
push eax
call fcn.100d973b
jmp 0x100d9e5d
lea eax, [ebp - 0x10]
push eax
call fcn.100d97d6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100d9ecd
mov eax, dword [0x100fbffc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100fbcf0
call fcn.100d9d58
add esp, 0xc
test al, al
je 0x100d9ecd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100d9e98
cmp word [eax], di
je 0x100d9e98
lea eax, [ebp - 0x10]
push eax
call fcn.100d973b
pop ecx
jmp 0x100d9ecf
lea eax, [ebp - 0x10]
push eax
call fcn.100d97d6
jmp 0x100d9e95
mov eax, dword [edi]
test eax, eax
je 0x100d9eba
cmp word [eax], dx
je 0x100d9eba
lea eax, [ebp - 0x10]
push eax
call fcn.100d96f0
pop ecx
jmp 0x100d9ecd
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 0x100d9f98
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100d9bdd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100d9f98
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100d9f98
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100d9f98
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d9f25
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100d1271
test ebx, ebx
je 0x100d9f93
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100d1271
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100d9f98
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 0x100d9f98
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100c6269
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100d9f9a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4e9c
leave
ret
Function at 0x100de3a1
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.100de31d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100de510
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100de510
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100de4c5
jg 0x100de3fd
test eax, eax
je 0x100de4bb
push 1
push 0x1000
call fcn.100cd1dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100de420
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100de4b2
push 0x8000
push ebx
call fcn.100de24e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100de449
jg 0x100de444
cmp ecx, 0x1000
jb 0x100de449
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100d0152
add esp, 0x10
cmp eax, 0xffffffff
je 0x100de48e
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 0x100de444
jl 0x100de475
test ecx, ecx
jne 0x100de436
push dword [ebp - 0xc]
push ebx
call fcn.100de24e
push esi
call fcn.100cd436
add esp, 0xc
xor ebx, ebx
jmp 0x100de51e
cmp byte [edi + 0x24], 0
je 0x100de4a5
cmp dword [edi + 0x20], 5
jne 0x100de4a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100de4b0
mov ebx, dword [edi + 0x18]
jmp 0x100de4b2
xor ebx, ebx
push esi
call fcn.100cd436
pop ecx
jmp 0x100de51e
test ecx, ecx
jg 0x100de487
jl 0x100de4c5
test eax, eax
jae 0x100de487
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d2800
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100de4e5
cmp byte [edi + 0x1c], 0
je 0x100de487
jmp 0x100de516
push ebx
call fcn.100dc331
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100de487
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 0x100de51e
cmp byte [edi + 0x1c], 0
je 0x100de51b
mov ebx, dword [edi + 0x18]
jmp 0x100de51e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100d2800
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x853c23
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3f51c14
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x49b6b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b914
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49b717
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049b17c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d8e0
cmp al, 1
jne 0x49b717
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049b494
test al, al
je 0x49b8a3
cmp dword [ebp - 8], 0
jge 0x49b735
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049b17c
mov eax, dword [ebp - 0x210]
call fcn.004047f4
cmp ebx, eax
jge 0x49b77f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049b17c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4bde08]
and eax, 0xff
bt dword [edx], eax
jae 0x49b77f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49b793
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049b690
cmp ebx, dword [ebp - 8]
je 0x49b895
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49b7bf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403890
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bd740]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49b882
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403890
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bd740]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00451d14
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403890
and eax, 0x7f
movzx eax, word [eax*2 + 0x4bd740]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00451d14
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b889
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49b8f6
cmp dword [ebp - 8], 0
jge 0x49b8ae
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049b17c
mov eax, dword [ebp - 0x218]
call fcn.004047f4
cmp eax, dword [ebp - 8]
jg 0x49b8e8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049b17c
mov eax, dword [ebp - 0x21c]
call fcn.004047f4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049b690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b91b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404558
ret
Function at 0x4b98a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
mov eax, dword fs:[0x30]
nop
mov eax, dword [eax + 0xc]
nop
nop
mov eax, dword [eax + 0x14]
nop
nop
nop
mov eax, dword [eax]
nop
mov eax, dword [eax]
nop
nop
mov eax, dword [eax + 0x10]
nop
nop
nop
mov dword [ebp - 4], eax
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4b99a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov eax, dword [eax + 0x3c]
mov edx, edi
add eax, edx
add eax, 0x78
mov eax, dword [eax]
add eax, edx
mov ecx, dword [eax + 0x20]
add ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
add ecx, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edx
mov dword [ebp - 0x14], ecx
mov esi, dword [eax + 0x18]
dec esi
test esi, esi
jl 0x4b998d
inc esi
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp - 0x18]
shl ebx, 2
add ebx, dword [ebp - 0xc]
push 4
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4b9987
lea eax, [ebp - 0x1c]
mov edx, dword [ebx]
add edx, edi
call fcn.0040472c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.0040472c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.00404940
jne 0x4b9987
mov eax, dword [ebp - 0x18]
add eax, eax
add eax, dword [ebp - 0x10]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 8], eax
jmp 0x4b998d
inc dword [ebp - 0x18]
dec esi
jne 0x4b9934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b99af
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404558
ret
Function at 0x10012980
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10012b35
pushal
mov esi, 0x1000e015
lea edi, [esi - 0xd015]
push edi
jmp 0x100129aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100129b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100129a0
mov eax, 1
add ebx, ebx
jne 0x100129c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100129b8
jne 0x100129d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100129b8
xor ecx, ecx
sub eax, 3
jb 0x100129e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10012a5a
mov ebp, eax
add ebx, ebx
jne 0x100129f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10012a00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10012a24
inc ecx
add ebx, ebx
jne 0x10012a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10012a05
jne 0x10012a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10012a05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10012a44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10012a35
jmp 0x100129a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10012a44
add edi, ecx
jmp 0x100129a6
pop esi
mov edi, esi
mov ecx, 0x7047
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x10012a7f
cmp byte [edi], 1
jne 0x10012a64
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x10012a62
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x10012ac7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12364]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x123ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10012a85
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x123f0]
or eax, eax
je 0x10012ac1
mov dword [ebx], eax
add ebx, 4
jmp 0x10012aa2
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10012af8
cmp al, 0xef
ja 0x10012aeb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10012acd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10012ada
mov ebp, dword [esi + 0x123f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x10012b2c
sub esp, 0xffffff80
jmp 0x10005aa0
Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.00406a9c
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.00406a9c
push edi
push esi
call fcn.00406b34
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x40f6e4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd98
mov eax, esi
mov edx, 8
test al, 1
je 0x40f700
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f702
shr eax, 1
dec edx
jne 0x40f6f3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f6ec
pop esi
ret

Function at 0x40f72f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd94], 0
jne 0x40f73b
call fcn.0040f6e4
push 1
push 0x41cd94
call fcn.00406948
mov eax, edi
test esi, esi
je 0x40f766
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f741
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x438ca7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov edx, edx
add edx, esi
call fcn.00438cdb
or edx, edx
xor dword [ebx], eax
sub edx, 0x731b7bfd
or esi, edx
sub esi, 0xefc1febb
inc ebx
mov edx, 0x9ca3550f
inc edx
cmp ebx, ecx
jne fcn.00438ca7
and edx, edx
inc esi
add esi, edx
ret
Function at 0x100049a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae fcn.100049a0
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10004991
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000474c
xchg edi, eax
mov edx, 0x458d8b3a
test al, 0x50
call fcn.1000475c
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10004711
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10004a3a
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000474c
inc eax
and eax, 0x458df5bc
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x10011f50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x1c]
sub esp, 8
inc ecx
push ebx
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x2c]
push esi
mov dword [esp + 0xc], 0
push edi
push ebp
mov ebp, dword [esp + 0x2c]
add ebp, ecx
cmp dword [esp + 0x3c], 1
jle 0x10011fdf
fld dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x10], eax
lea esi, [ebp + 1]
mov eax, esi
sub eax, dword [esp + 0x24]
cmp dword [esp + 0x40], 1
jle 0x10011fd1
xor ebx, ebx
mov edi, dword [esp + 0x40]
mov bl, byte [eax]
dec edi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov dl, byte [esi - 1]
mov eax, ecx
inc esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, ecx
fild dword [esp + 0x14]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
dec edi
mov dword [esp + 0x14], eax
fiadd dword [esp + 0x14]
faddp st(1)
jne 0x10011fa0
add ebp, dword [esp + 0x24]
dec dword [esp + 0x10]
jne 0x10011f87
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
imul eax, dword [esp + 0x40]
lea ecx, [eax*2]
mov eax, dword [esp + 0x44]
fld dword [eax]
fadd dword [esp + 0x14]
fstp dword [eax]
fld dword [esp + 0x14]
add dword [edx], ecx
mov dword [esp + 0x14], ecx
pushfd
cmp dword [0x100539f0], 0
jne 0x10012019
fidiv dword [esp + 0x18]
jmp 0x10012022
push dword [esp + 0x18]
call fcn.10012bf8
popfd
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x1001348b
Capabilities:
Terminate process

Disassembly:
mov dword [0x10053c64], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x10053c60], bl
jne 0x100134e7
cmp dword [0x1003b3d4], 0
je 0x100134d5
mov esi, dword [0x1003b3d0]
sub esi, 4
cmp dword [0x1003b3d4], esi
ja 0x100134d5
mov eax, dword [esi]
test eax, eax
je 0x100134ca
call eax
sub esi, 4
cmp dword [0x1003b3d4], esi
jbe 0x100134c2
push 0x100547ac
push 0x100547a8
call fcn.1001350a
add esp, 8
push 0x100547b4
push 0x100547b0
call fcn.1001350a
add esp, 8
test ebx, ebx
jne 0x10013507
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret

Function at 0x10013ca7
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor eax, eax
mov ecx, 0x10054220
push edi
cmp dword [ecx], edx
je 0x10013cc6
add ecx, 8
inc eax
cmp ecx, 0x10054298
jb 0x10013cb6
shl eax, 3
cmp dword [eax + 0x10054220], edx
jne 0x10013cfa
mov edx, dword [eax + 0x10054224]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x10053ef8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret