joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512975
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x512997
cmp dword [edi + 0x3c], 0
jne 0x512997
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0051d6af
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005129c4
pop edi
pop esi
pop ebx
ret 8

Function at 0x512a12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0051d6af
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x512a43
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00512a56
pop edi
pop esi
pop ebx
ret 8

Function at 0x5140b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5140ee
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00511fc4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00511f9c
jmp 0x5140fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x515a7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x515abe
call fcn.0051d6af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x515abe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x515ab5
xor eax, eax
jmp 0x515ac6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00515acc
pop edi
pop esi
pop ebx
ret 4

Function at 0x51dbdf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51dc0d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51dc2b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051db45
jmp 0x51dc2b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51dc2b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051db45
test edi, edi
mov eax, edi
jne 0x51dc15
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..rsrc
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
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 + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x503778
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x70
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x57
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x93
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xa8
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x96
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x9b
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x12
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xec
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x9c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x8e
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x85
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xa
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x4d
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x62
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

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

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x501358]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x503860
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x4024e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.004024d0
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.0040b0a0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.004196c0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004024d0
mov esp, ebp
pop ebp
ret

Function at 0x402590
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
mov edx, 0x4c6640
lea eax, [ebp - 0x18]
call fcn.0040fd90
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00402570
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, str.Parametr
call fcn.0040a6b0
mov edx, dword [0x4d8710]
lea eax, [ebp - 0x14]
call fcn.0040a6b0
lea eax, [ebp - 0x10]
mov edx, str.Parametr
call fcn.0040a6b0
mov edx, dword [0x4d8714]
lea eax, [ebp - 0xc]
call fcn.0040a6b0
mov byte [ebp - 8], 0
add byte [ebp - 8], 1
mov edx, 1
mov eax, 0x4ce650
call fcn.00436e20
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00402560
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.00436de0
mov al, byte [ebp - 8]
cmp al, 1
jl 0x402664
sub al, 1
je 0x402640
sub al, 1
je 0x402654
jmp 0x402664
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00437050
jmp 0x402664
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.00437050
nop
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00437230
mov eax, dword [ebp - 0x1c]
movzx edx, byte [ebp - 8]
mov edx, dword [ebp + edx*8 - 0x1c]
call fcn.0040b220
test eax, eax
je 0x4026a4
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp + eax*8 - 0x1c]
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
call fcn.004373f0
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402560
cmp byte [ebp - 8], 2
jl 0x4025f8
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402570
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
mov dword [ebp - 4], eax
call fcn.0040a680
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00402b60
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00415c40
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402c05
mov ebx, dword [ebx - 4]
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00415c40
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004197f0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402c24
mov eax, dword [eax - 4]
sub ebx, eax
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00415c40
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, ebx
call fcn.0040b480
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00415c40
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.00402150
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov edx, dword [0x4d86f4]
mov ecx, 0x452370
mov eax, 0x45254c
call fcn.00401bb0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ecx, 1
call fcn.0040b530
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [0x4d86f4]
mov ecx, 0x452370
mov eax, 0x45254c
call fcn.00401bb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402ca6
mov eax, dword [eax - 4]
lea edx, [ebx + eax]
mov eax, dword [ebp - 8]
mov ecx, 0x7fffffff
call fcn.0040b480
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040a6b0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00402070
lea eax, [ebp - 0x1c]
call fcn.00405be0
mov eax, dword [ebp - 0xc]
mov edx, 6
call fcn.00419d80
push 1
push 0
mov eax, 0x452568
push eax
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
call fcn.00437b20
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x402d05
mov eax, 0x4d9a70
push eax
mov eax, str.open
push eax
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, 5
call fcn.00401db0
mov eax, dword [ebp - 0x10]
call fcn.0041a490
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00402b60
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x258]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x138], 0
xor eax, eax
push fcn.00403d10
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x4d8020]
cmp ebx, 1
jl 0x403db8
mov dword [ebp - 0x134], 0
lea esi, [esi]
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
lea eax, [eax*4 + 0x4d601c]
xor edx, edx
call fcn.0040a6b0
mov eax, dword [ebp - 0x134]
mov dword [eax*4 + 0x4d701c], 0
cmp ebx, dword [ebp - 0x134]
jg 0x403d80
mov esi, esi
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040a6b0
mov dword [0x4d8020], 1
mov dword [ebp - 0x130], 0x128
push 0
push 2
call fcn.0043bd80
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0043bd90
test eax, eax
je 0x403f24
jmp 0x403f0b
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10c]
xor cx, cx
mov edx, 0x103
call fcn.0040b0a0
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
lea eax, [eax*4 + 0x4d601c]
call fcn.0040a6b0
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x128]
mov dword [eax*4 + 0x4d701c], edx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x4d601c]
mov dword [ebp - 0x148], eax
mov eax, 0x4527c4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x4d701c]
xor edx, edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
mov ecx, 0xff
lea edx, [ebp - 0x258]
mov eax, 0xffffffff
call fcn.00406cc0
lea ecx, [ebp - 0x150]
xor dx, dx
lea eax, [ebp - 0x258]
call fcn.0040af30
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x150]
call fcn.0040bc40
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov eax, 0x4526e4
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, 4
call fcn.0040aa40
add dword [ebp - 0x134], 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0043bda0
test eax, eax
jne 0x403e08
mov esi, esi
mov eax, dword [ebp - 0x134]
mov dword [0x4d8020], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00403d10
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov dword [0x4d9bf0], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x4d9bec]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x4d9bf0], edx
cmp eax, 0x26f
jl 0x4104a8
mov dword [0x44fe50], 0x270
ret
Function at 0x4104e0
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 + 0x4d9bf4]
mov ebx, dword [eax*4 + 0x4d9bf0]
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 + 0x4da224]
mov dword [eax*4 + 0x4d9bf0], edx
cmp eax, 0xe2
jl 0x4104e8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4d9bf4]
mov ebx, dword [eax*4 + 0x4d9bf0]
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 + 0x4d9864]
mov dword [eax*4 + 0x4d9bf0], edx
cmp eax, 0x26e
jl 0x410538
mov edx, dword [0x4d9bf0]
mov ecx, dword [0x4da5ac]
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 [0x4da220]
mov dword [0x4da5ac], eax
mov dword [0x44fe50], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x44fe50]
add dword [0x44fe50], 1
mov eax, dword [0x4d8790]
cmp eax, dword [0x44f5a0]
jne 0x4105e3
cmp ebx, 0x271
jb 0x410604
mov eax, dword [0x4d8790]
call fcn.004104a0
not dword [0x4d8790]
mov eax, dword [0x4d8790]
mov dword [0x44f5a0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x410620
call fcn.004104e0
xor ebx, ebx
mov dword [0x44fe50], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x4d9bf0]
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 0x4120f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x44f2f0]
cmp ax, 0xcb
je 0x4121fc
cmp ax, 0xcc
je 0x4121fc
lea esi, [esi]
mov edx, dword [0x4da7f0]
test edx, edx
je 0x412125
mov eax, dword [0x4da6a0]
call edx
mov ebx, eax
jmp 0x41212a
mov ebx, 0x4da6a4
cmp word [0x4da690], 0
jle 0x412150
mov eax, 0x4da670
call fcn.004123b0
mov eax, ebx
call fcn.00411cb0
mov eax, ebx
call fcn.00411d20
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x412172
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x41216d
mov edx, edi
mov eax, ebx
call fcn.00411120
jmp 0x412170
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x412158
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4da690], 0
jle 0x4121fc
mov edx, 0x4da5b0
mov eax, ebx
call fcn.00411260
mov edi, eax
test edi, edi
je 0x4121cc
mov eax, dword [0x4da644]
mov dword [edi + 0xc], eax
cmp dword [0x4da644], 0
je 0x4121c0
mov eax, dword [0x4da644]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4da644], eax
nop
sub word [0x4da690], 1
cmp word [0x4da690], 0
sete bl
mov eax, 0x4da670
call fcn.004123d0
test bl, bl
je 0x4121fc
mov eax, 0x4da670
call fcn.004123a0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x414160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00414140
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41428a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040cfb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x4141ef
mov edx, 0x4d9a70
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x414241
call sub.kernel32.dll_GetLastError
call fcn.00406190
lea eax, [ebp - 0x10]
call fcn.0040bdc0
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040c260
mov edx, dword [ebp - 0x14]
mov ecx, 0x4c690c
lea eax, [ebp - 0x10]
call fcn.0040c0f0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040c9a0
jmp 0x4142d8
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x41425a
cmp eax, ecx
je 0x414264
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040cfb0
cmp byte [0x44f570], 0
jne 0x4142d8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040d500
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040c9e0
lea esi, [esi]
jmp 0x4142d8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040cfb0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x4142ae
mov eax, 0x4d9a70
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x44f570], 0
jne 0x4142d8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040d500
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040c9e0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00414140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4146b0
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 [0x4d99d0], 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.00414890
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4d99d0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00405730
call sub.kernel32.dll_GetCommandLineA
mov dword [0x44f370], eax
mov ebx, eax
jmp 0x414853
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x414738
cmp byte [ebx], 0
je 0x41485c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4147b3
mov al, byte [ebx]
cmp al, 1
jb 0x4147a8
sub al, 0x20
jbe 0x414778
sub al, 2
je 0x41478c
jmp 0x4147a8
mov al, byte [ebp - 0x114]
test al, al
je 0x4147b8
add dword [ebp - 0x110], 1
jmp 0x4147b0
cmp byte [ebx + 1], 0x22
je 0x4147a3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4147b0
add ebx, 1
jmp 0x4147b0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414768
test dword [ebp - 0x10c], 0xffffffff
je 0x41484c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00414890
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4d99d0]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414843
mov al, byte [ebx]
cmp al, 1
jb 0x414838
sub al, 0x20
jbe 0x414808
sub al, 2
je 0x41481c
jmp 0x414838
mov al, byte [ebp - 0x114]
test al, al
je 0x414848
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414840
cmp byte [ebx + 1], 0x22
je 0x414833
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414840
add ebx, 1
jmp 0x414840
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4147f8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41473b
mov ebx, dword [ebp - 0x10c]
mov dword [0x4d99c0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4d99d0
call fcn.00411f30
mov eax, dword [0x4d99d0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret