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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c0720]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10090372
cmp byte [ebx], 0xa
jne 0x10090372
or byte [edi + eax + 0x28], 4
jmp 0x10090377
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10090476
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10090459
inc eax
cmp dl, 0xd
je 0x100903a3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100903c9
cmp eax, ecx
jae 0x100903d7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1009038b
jmp 0x10090476
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10090454
cmp dword [ebp - 0x10], 0
je 0x10090454
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c0720]
test byte [eax + edi + 0x28], 0x48
je 0x1009042e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10090419
mov byte [esi], dl
jmp 0x1009042a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c0720]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10090476
cmp byte [ebp - 1], 0xa
jne 0x1009043d
cmp esi, ebx
jne 0x1009043d
mov byte [esi], 0xa
jmp 0x10090475
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1008f91d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10090476
mov byte [esi], 0xd
jmp 0x10090475
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c0720]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10090473
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10090476
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009047f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c0720]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100904c5
cmp word [ebx], dx
jne 0x100904c5
or byte [eax + edi + 0x28], 4
jmp 0x100904ca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1009062d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1009060d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1009050b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10090541
cmp eax, edx
jae 0x1009054f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100904e6
jmp 0x1009062d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10090608
cmp dword [ebp - 0x18], 0
je 0x10090608
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c0720]
test byte [eax + edi + 0x28], 0x48
je 0x100905de
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100905a2
mov word [esi], cx
jmp 0x100905d9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c0720]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c0720]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c0720]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1009062d
pop eax
cmp word [ebp - 4], ax
jne 0x100905ee
cmp esi, ebx
jne 0x100905ee
mov word [esi], ax
jmp 0x1009062a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1008f91d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1009062d
push 0xd
pop eax
jmp 0x100905e9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c0720]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10090627
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1009062d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10095265
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 0x10095302
push ebx
push esi
call fcn.1009522e
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.100940f6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100952af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10095301
push edi
push eax
call fcn.10090ea8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100952cf
call fcn.1008e081
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10095300
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100940f6
add esp, 0x20
test eax, eax
jne 0x100952ee
push edi
call fcn.1008e081
jmp 0x100952f6
push ebx
call fcn.1008e081
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 0x10097439
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1008c25c
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 0x100974a8
cmp esi, dword [ebp - 4]
je 0x100974a3
cmp dword [ebp + 0xc], 0
je 0x100974a3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10097480
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10096f8b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100974aa
xor eax, eax
inc eax
jmp 0x100974aa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1009750f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bd080]
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.1008c25c
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.1008c25c
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 0x10097586
cmp word [ecx], dx
je 0x10097586
mov eax, dword [0x100a9eac]
push edi
dec eax
push eax
push 0x100a9d98
call fcn.100974ae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100975f9
cmp word [eax], dx
je 0x100975f9
mov eax, dword [edi]
test eax, eax
je 0x100975aa
cmp word [eax], dx
je 0x100975aa
lea eax, [ebp - 0x10]
push eax
call fcn.10096e91
jmp 0x100975b3
lea eax, [ebp - 0x10]
push eax
call fcn.10096f2c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10097623
mov eax, dword [0x100a9d94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a9a88
call fcn.100974ae
add esp, 0xc
test al, al
je 0x10097623
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100975ee
cmp word [eax], di
je 0x100975ee
lea eax, [ebp - 0x10]
push eax
call fcn.10096e91
pop ecx
jmp 0x10097625
lea eax, [ebp - 0x10]
push eax
call fcn.10096f2c
jmp 0x100975eb
mov eax, dword [edi]
test eax, eax
je 0x10097610
cmp word [eax], dx
je 0x10097610
lea eax, [ebp - 0x10]
push eax
call fcn.10096e46
pop ecx
jmp 0x10097623
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 0x100976ee
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10097333
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100976ee
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100976ee
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100976ee
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009767b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1008e695
test ebx, ebx
je 0x100976e9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1008e695
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100976ee
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 0x100976ee
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1009b0b1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100976f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f9b5
leave
ret
Function at 0x1009b2d1
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.1009b24d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009b440
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009b440
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009b3f5
jg 0x1009b32d
test eax, eax
je 0x1009b3eb
push 1
push 0x1000
call fcn.1008e024
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009b350
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009b3e2
push 0x8000
push ebx
call fcn.1009b17e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009b379
jg 0x1009b374
cmp ecx, 0x1000
jb 0x1009b379
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008f4fb
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009b3be
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 0x1009b374
jl 0x1009b3a5
test ecx, ecx
jne 0x1009b366
push dword [ebp - 0xc]
push ebx
call fcn.1009b17e
push esi
call fcn.1008e081
add esp, 0xc
xor ebx, ebx
jmp 0x1009b44e
cmp byte [edi + 0x24], 0
je 0x1009b3d5
cmp dword [edi + 0x20], 5
jne 0x1009b3d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009b3e0
mov ebx, dword [edi + 0x18]
jmp 0x1009b3e2
xor ebx, ebx
push esi
call fcn.1008e081
pop ecx
jmp 0x1009b44e
test ecx, ecx
jg 0x1009b3b7
jl 0x1009b3f5
test eax, eax
jae 0x1009b3b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008f91d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009b415
cmp byte [edi + 0x1c], 0
je 0x1009b3b7
jmp 0x1009b446
push ebx
call fcn.10098837
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009b3b7
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 0x1009b44e
cmp byte [edi + 0x1c], 0
je 0x1009b44b
mov ebx, dword [edi + 0x18]
jmp 0x1009b44e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1008f91d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009edd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009edfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009edfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x401750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
insd dword es:[edi], dx
inc ebp
or byte [edi], al
push ebx
adc eax, edx
inc eax
add byte [eax - 0x71], dl
sar dword [ebx + 0x68], 0x74
rol byte [eax], cl
push ecx
push dword [ecx]
add cl, 0x40
add byte [ecx + 0x4102ac], ah
or esp, eax
or al, 0x85
sal byte [edi + ecx - 0x4d], 0x68
push esp
rol byte [eax], cl
call dword [0x40c364]
add esp, 8
push 0xffffffffffffffdd
xor byte [edx], dl
Function at 0x1000a0f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10035490], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x1003548c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0x26f
jl 0x1000a0f8
mov dword [0x10029970], 0x270
ret

Function at 0x1000a130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x10035494]
mov ebx, dword [eax*4 + 0x10035490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x10035ac4]
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0xe2
jl 0x1000a138
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x10035494]
mov ebx, dword [eax*4 + 0x10035490]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x10035104]
mov dword [eax*4 + 0x10035490], edx
cmp eax, 0x26e
jl 0x1000a188
mov edx, dword [0x10035490]
mov ecx, dword [0x10035e4c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10035ac0]
mov dword [0x10035e4c], eax
mov dword [0x10029970], 0
pop ebx
ret

Function at 0x1000a210
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x10029970]
add dword [0x10029970], 1
mov eax, dword [0x10034020]
cmp eax, dword [0x10029490]
jne 0x1000a233
cmp ebx, 0x271
jb 0x1000a254
mov eax, dword [0x10034020]
call fcn.1000a0f0
not dword [0x10034020]
mov eax, dword [0x10034020]
mov dword [0x10029490], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x1000a270
call fcn.1000a130
xor ebx, ebx
mov dword [0x10029970], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x10035490]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x1000bd00
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x100291d0]
cmp ax, 0xcb
je 0x1000be0c
cmp ax, 0xcc
je 0x1000be0c
lea esi, [esi]
mov edx, dword [0x10036090]
test edx, edx
je 0x1000bd35
mov eax, dword [0x10035f40]
call edx
mov ebx, eax
jmp 0x1000bd3a
mov ebx, 0x10035f44
cmp word [0x10035f30], 0
jle 0x1000bd60
mov eax, 0x10035f10
call fcn.1000bf70
mov eax, ebx
call fcn.1000b8c0
mov eax, ebx
call fcn.1000b930
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x1000bd82
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x1000bd7d
mov edx, edi
mov eax, ebx
call fcn.1000ad30
jmp 0x1000bd80
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x1000bd68
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x10035f30], 0
jle 0x1000be0c
mov edx, 0x10035e50
mov eax, ebx
call fcn.1000ae70
mov edi, eax
test edi, edi
je 0x1000bddc
mov eax, dword [0x10035ee4]
mov dword [edi + 0xc], eax
cmp dword [0x10035ee4], 0
je 0x1000bdd0
mov eax, dword [0x10035ee4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x10035ee4], eax
nop
sub word [0x10035f30], 1
cmp word [0x10035f30], 0
sete bl
mov eax, 0x10035f10
call fcn.1000bf90
test bl, bl
je 0x1000be0c
mov eax, 0x10035f10
call fcn.1000bf60
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x1000dcf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x10035260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.1000ded0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x10035260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.10002330
call sub.kernel32.dll_GetCommandLineA
mov dword [0x10029250], eax
mov ebx, eax
jmp 0x1000de93
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x1000dd78
cmp byte [ebx], 0
je 0x1000de9c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x1000ddf3
mov al, byte [ebx]
cmp al, 1
jb 0x1000dde8
sub al, 0x20
jbe 0x1000ddb8
sub al, 2
je 0x1000ddcc
jmp 0x1000dde8
mov al, byte [ebp - 0x114]
test al, al
je 0x1000ddf8
add dword [ebp - 0x110], 1
jmp 0x1000ddf0
cmp byte [ebx + 1], 0x22
je 0x1000dde3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x1000ddf0
add ebx, 1
jmp 0x1000ddf0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x1000dda8
test dword [ebp - 0x10c], 0xffffffff
je 0x1000de8c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.1000ded0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x10035260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x1000de83
mov al, byte [ebx]
cmp al, 1
jb 0x1000de78
sub al, 0x20
jbe 0x1000de48
sub al, 2
je 0x1000de5c
jmp 0x1000de78
mov al, byte [ebp - 0x114]
test al, al
je 0x1000de88
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x1000de80
cmp byte [ebx + 1], 0x22
je 0x1000de73
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x1000de80
add ebx, 1
jmp 0x1000de80
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x1000de38
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x1000dd7b
mov ebx, dword [ebp - 0x10c]
mov dword [0x10035250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x10035260
call fcn.1000bb40
mov eax, dword [0x10035260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret