joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407178
cmp byte [esi + ebx - 1], 0xa
je 0x40714c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4082bc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x407ce0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x410ee0
Capabilities:
Get common file path

Disassembly:
push edi
push esi
push ebx
sub esp, 0x108
push 0x105
push 0x6608e0
push 0
call dword [0x57725c]
mov eax, 0x6608e0
call fcn.00464e94
lea edx, [esp + 4]
xor eax, eax
push eax
push eax
push edx
push 0x660c40
push 0x6608e0
call fcn.0046fdd7
add esp, 0x14
mov edi, 0x660c40
lea edx, [esp + 4]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x410f33
mov eax, 0x660c40
call fcn.00464e94
mov edx, 0x660c40
movsx eax, byte [edx]
test eax, eax
je 0x410f7a
movzx esi, al
movzx ecx, byte [esi + 0x59b0a0]
inc ecx
movsx edi, cl
cmp edi, 2
je 0x4110b6
cmp eax, 0x2f
jne 0x410f72
mov byte [edx], 0x5c
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x410f53
mov edi, 0x660c40
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x410f91
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x410f89
mov ecx, eax
test ecx, ecx
jle 0x410fc5
xor edx, edx
lea eax, [ecx - 1]
movzx esi, byte [edx + 0x660c40]
movzx ebx, byte [esi + 0x59b0a0]
inc ebx
movsx edi, bl
add edx, edi
cmp edx, eax
jne 0x410fc1
cmp byte [edx + 0x660c40], 0x5c
je 0x41109f
cmp edx, ecx
jl 0x410f9c
xor eax, eax
test eax, eax
jne 0x410fe9
mov edi, 0x660c40
mov edx, 0x878338
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x410fdf
mov esi, 0x660a00
mov edi, 0x6608e0
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x410ff3
mov edx, 0x660a00
movsx eax, byte [edx]
test eax, eax
je 0x411030
movzx esi, al
movzx ecx, byte [esi + 0x59b0a0]
inc ecx
movsx edi, cl
cmp edi, 2
je 0x4110ae
cmp eax, 0x5c
jne 0x411028
mov byte [edx], 0x3a
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x411009
mov esi, 0x660b20
mov edi, 0x660c40
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x41103a
mov edx, 0x660b20
movsx eax, byte [edx]
test eax, eax
je 0x411073
movzx esi, al
movzx ecx, byte [esi + 0x59b0a0]
inc ecx
movsx edi, cl
cmp edi, 2
je 0x4110a9
cmp eax, 0x5c
jne 0x41106b
mov byte [edx], 0x3a
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x411050
xor eax, eax
push eax
push 0x1a
push 0x660e80
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor eax, eax
push eax
push 5
push 0x660fa0
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0x108
pop ebx
pop esi
pop edi
ret
mov eax, 1
jmp 0x410fc7
add edx, 2
jmp 0x41106c
add edx, 2
jmp 0x411029
add edx, 2
jmp 0x410f73
Function at 0x4114b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
sub esp, 0x38
mov dword [esp], 0x3003
mov dword [esp + 4], 0x41c350
mov ecx, dword [0x872260]
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0x20], edx
mov eax, dword [0x59b7ac]
mov dword [esp + 0x24], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
push 0x2711
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x41152b
mov eax, 1
add esp, 0x38
pop ebp
ret
lea eax, [esp + 0x28]
push eax
push dword [0x87298c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
movsx eax, dx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
movsx ebp, cx
mov edx, dword [0x59b7ac]
xor ecx, ecx
push ecx
push dword [0x872260]
push ecx
push dword [0x87298c]
push ebp
push eax
push ecx
push ecx
push 0x56000000
push edx
push edx
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x872988], eax
test eax, eax
je 0x411521
xor eax, eax
add esp, 0x38
pop ebp
ret

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

Disassembly:
mov eax, dword [0x59b6f0]
cmp eax, 0x270
jl 0x416fde
xor edx, edx
mov eax, dword [edx*4 + 0x5ce680]
and eax, 0x80000000
mov ecx, dword [edx*4 + 0x5ce684]
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
shr ecx, 1
and eax, 1
xor ecx, dword [edx*4 + 0x5cecb4]
xor ecx, dword [eax*4 + 0x577538]
mov dword [edx*4 + 0x5ce680], ecx
inc edx
cmp edx, 0xe3
jl 0x416f22
cmp edx, 0x26f
jge 0x416faa
mov eax, dword [edx*4 + 0x5ce680]
and eax, 0x80000000
mov ecx, dword [edx*4 + 0x5ce684]
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
shr ecx, 1
and eax, 1
xor ecx, dword [edx*4 + 0x5ce2f4]
xor ecx, dword [eax*4 + 0x577538]
mov dword [edx*4 + 0x5ce680], ecx
inc edx
cmp edx, 0x26f
jl 0x416f6a
mov edx, dword [0x5cf03c]
and edx, 0x80000000
mov eax, dword [0x5ce680]
and eax, 0x7fffffff
or edx, eax
mov ecx, edx
shr ecx, 1
xor ecx, dword [0x5cecb0]
and edx, 1
xor ecx, dword [edx*4 + 0x577538]
mov dword [0x5cf03c], ecx
xor eax, eax
lea edx, [eax + 1]
mov dword [0x59b6f0], edx
mov eax, dword [eax*4 + 0x5ce680]
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
ret
Function at 0x417ce4
Capabilities:
Get file version info

Disassembly:
push edi
push ebp
push ebx
sub esp, 0xc
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x417d85
test edi, edi
je 0x417d85
lea ecx, [esp + 8]
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jbe 0x417d79
mov dword [esp + 4], eax
push eax
call fcn.0047076f
pop ecx
mov ebx, eax
test ebx, ebx
je 0x417d91
push ebx
push dword [esp + 8]
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x417d72
mov dword [esp], 0
lea ebp, [esp]
lea ecx, [esp + 4]
push ecx
push ebp
push 0x878338
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x417d72
mov ecx, dword [esp]
test ecx, ecx
je 0x417d72
mov ecx, dword [ecx + 8]
mov dword [edi + 4], ecx
mov ebp, dword [esp]
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
push ebx
call fcn.0047077d
xor eax, eax
add esp, 0x10
pop ebx
pop ebp
pop edi
ret
push ebx
call fcn.0047077d
pop ecx
mov eax, 0x80004005
add esp, 0xc
pop ebx
pop ebp
pop edi
ret
mov eax, 0x80070057
add esp, 0xc
pop ebx
pop ebp
pop edi
ret
mov eax, 0x8007000e
add esp, 0xc
pop ebx
pop ebp
pop edi
ret

Function at 0x41c148
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
push esi
mov ecx, edx
mov edx, eax
mov esi, ecx
shr esi, 2
and ecx, 3
test esi, esi
je 0x41c1cf
je 0x41c1fe
mov eax, 0xffffffff
xor ebx, ebx
mov dword [esp], edi
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x59b1a0]
movzx edi, byte [edx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x59b1a0]
movzx edi, byte [edx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x59b1a0]
movzx edi, byte [edx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x59b1a0]
add edx, 4
inc ebx
cmp ebx, esi
jb 0x41c16b
mov edi, dword [esp]
jmp 0x41c1d4
mov eax, 0xffffffff
test ecx, ecx
je 0x41c1f8
je 0x41c1f8
xor ebx, ebx
inc edx
movzx esi, byte [edx - 1]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x59b1a0]
inc ebx
cmp ebx, ecx
jb 0x41c1dc
not eax
pop ecx
pop ebx
pop esi
ret
mov eax, 0xffffffff
jmp 0x41c1d4
Function at 0x41ea40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push ebp
sub esp, 0x40
mov edi, eax
cmp dword [edi + 0x168], 0
je 0x41ea5b
mov eax, 0xfffffc0e
add esp, 0x40
pop ebp
pop edi
ret
mov edx, dword [esp + 0x50]
lea ecx, [edx - 0x3b9ac9ff]
or ecx, dword [esp + 0x54]
je 0x41eaad
mov byte [esp + 0xc], 1
lea eax, [esp + 0x10]
mov edx, edi
xor ecx, ecx
call fcn.0040bcdd
test eax, eax
jne 0x41eaa2
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x168], ecx
mov ebp, dword [esp + 0x10]
mov dword [edi + 0x1a8], ebp
mov eax, edi
call fcn.0041cd78
add esp, 0x40
pop ebp
pop edi
ret
mov eax, 0xfffffc04
add esp, 0x40
pop ebp
pop edi
ret
push 0xfcc
call fcn.00403564
pop ecx
mov ebp, eax
test ebp, ebp
je 0x41eb44
lea ecx, [ebp + 0x2c]
push 0x80
push 0xfa0
push ecx
call dword [0x5b8564]
add esp, 0xc
mov dword [ebp], 0x46464952
mov dword [ebp + 4], 0xfc4
mov dword [ebp + 8], 0x45564157
mov dword [ebp + 0xc], 0x20746d66
mov dword [ebp + 0x10], 0x10
mov eax, 1
mov word [ebp + 0x14], ax
mov word [ebp + 0x16], ax
mov ecx, 0x1f40
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], ecx
mov word [ebp + 0x20], ax
mov ecx, 8
mov word [ebp + 0x22], cx
mov dword [ebp + 0x24], 0x61746164
mov dword [ebp + 0x28], 0xfa0
mov dword [edi + 0x1a8], 0xfcc
mov dword [edi + 0x168], ebp
jmp 0x41ea95
xor ebp, ebp
jmp 0x41eb39

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

Disassembly:
push esi
push ebx
sub esp, 0x28
mov ebx, eax
test ebx, ebx
je 0x42603d
movsx edx, byte [0x59b6f4]
test edx, edx
je 0x425f99
mov eax, ebx
call fcn.0042604c
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x42603d
mov edx, dword [eax + 0x30]
mov ecx, dword [eax + 0x34]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov esi, ebx
mov ebx, eax
mov eax, esi
lea edx, [esp + 8]
call fcn.004106e4
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
add dword [esp + 8], edx
adc dword [esp + 0xc], ecx
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
add dword [esp + 0x10], edx
adc dword [esp + 0x14], ecx
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
add dword [esp + 0x18], edx
adc dword [esp + 0x1c], ecx
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
add dword [esp + 0x20], edx
adc dword [esp + 0x24], ecx
mov esi, dword [esi + 0x10]
cmp esi, dword [0x8723c4]
je 0x426035
mov ebx, dword [esi + 0x44]
test ebx, ebx
jne 0x425fe0
xor eax, eax
add esp, 0x28
pop ebx
pop esi
ret
mov eax, 0xffffffff
add esp, 0x28
pop ebx
pop esi
ret
Function at 0x45c024
Capabilities:
Read file on windows

Disassembly:
push esi
lea edx, [esp]
push 4
push edx
push dword [eax]
call fcn.00470b8e
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x4645d8
Capabilities:
Read file on windows

Disassembly:
push edi
push ebx
sub esp, 0x24
mov edi, eax
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4645f1
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4645e9
mov ebx, eax
inc ebx
push ebx
call fcn.0046ef5c
pop ecx
mov ecx, dword [0x872560]
mov edx, dword [0x87255c]
mov dword [edx + ecx*4], eax
mov edx, dword [0x87255c]
mov ecx, dword [0x872560]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x46474d
push ebx
push edi
push edx
call dword [0x5b856c]
add esp, 0xc
mov ebx, dword [0x872560]
mov ecx, dword [0x87255c]
lea eax, [esp + 8]
mov edx, dword [ecx + ebx*4]
call fcn.004647c0
movsx eax, byte [esp + 0x10]
test eax, eax
je 0x464728
lea eax, [esp + 0x20]
push 4
push eax
push dword [esp + 0x10]
call fcn.00470b8e
add esp, 0xc
lea eax, [esp + 8]
call fcn.0045c024
mov edi, eax
lea eax, [esp + 8]
call fcn.0045c024
mov ebx, eax
lea eax, [esp + 8]
call fcn.00464850
mov edx, dword [esp + 0x20]
cmp edx, 0x465059
jne 0x4646c6
cmp edi, 0x22b
je 0x4646a0
cmp edi, 0xea
jl 0x464703
mov edx, dword [0x872564]
add edx, ebx
mov dword [0x872564], edx
cmp edx, 0x30d40
jge 0x4646e7
mov eax, dword [0x872560]
inc eax
mov dword [0x872560], eax
cmp eax, 0x64
jge 0x4646ce
xor eax, eax
add esp, 0x24
pop ebx
pop edi
ret
push 0x64
push 1
push 0x196c2
call fcn.0046bfe0
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
push 0x30d40
push 1
push 0x196cc
call fcn.0046bfe0
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x872560]
mov eax, dword [0x87255c]
push dword [eax + edx*4]
push 1
push 0x196b8
call fcn.0046bfe0
mov eax, 0xffffffff
add esp, 0x30
pop ebx
pop edi
ret
mov edx, dword [0x872560]
mov eax, dword [0x87255c]
push dword [eax + edx*4]
push 1
push 0xdbfb0
call fcn.0046bfe0
mov eax, 0xfffffffe
add esp, 0x30
pop ebx
pop edi
ret
push 1
push 0x186aa
call fcn.0046c03c
mov eax, 0xffffffff
add esp, 0x2c
pop ebx
pop edi
ret

Function at 0x46483c
Capabilities:
Read file on windows

Disassembly:
push ecx
push edx
push dword [eax]
call fcn.00470b8e
add esp, 0xc
ret

Function at 0x464f98
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x41c578
call fcn.00472086
add esp, 0xc
test eax, eax
je 0x464fbe
movsx edx, byte [0x59b714]
dec edx
push edx
push eax
call dword [0x5770bc]
ret
push 0x878dc0
push 0
call fcn.00409114
add esp, 8
ret
Function at 0x4652c5
Capabilities:
Create process on windows

Disassembly:
push esi
push ebx
sub esp, 0x3c
mov ebx, ecx
movsx esi, byte [eax]
test esi, esi
je 0x4653ac
mov esi, dword [0x579e88]
mov dword [esp + 0xc], esi
mov esi, dword [0x579e94]
mov dword [esp + 0x18], esi
mov esi, dword [0x579e9c]
mov dword [esp + 0x20], esi
mov esi, dword [0x579ea0]
mov dword [esp + 0x24], esi
mov esi, dword [0x579ea4]
mov dword [esp + 0x28], esi
mov esi, dword [0x579ea8]
mov dword [esp + 0x2c], esi
mov esi, dword [0x579eac]
mov dword [esp + 0x30], esi
mov esi, dword [0x579eb0]
mov dword [esp + 0x34], esi
mov esi, dword [0x579eb4]
mov dword [esp + 0x38], esi
mov dword [esp], 0x3c
mov dword [esp + 8], 0
mov ecx, dword [0x87274c]
test ecx, ecx
je 0x46536a
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 4], esi
mov esi, dword [ecx + 0x2a4]
test esi, esi
je 0x46536a
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 4], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4653ac
mov eax, dword [esp + 0x20]
cmp eax, 0x20
jle 0x4653ac
movsx eax, bl
test eax, eax
je 0x4653ac
push 0xffffffffffffffff
push dword [esp + 0x3c]
call dword [0x577270]
mov eax, 0xffffffff
add esp, 0x3c
pop ebx
pop esi
ret
Function at 0x46a4ec
Capabilities:
Create thread

Disassembly:
movsx eax, byte [0x8722c4]
test eax, eax
je 0x46a508
xor eax, eax
push eax
push eax
push 0x420adc
call fcn.00472086
add esp, 0xc
ret

Function at 0x46a50c
Capabilities:
Create thread

Disassembly:
push edi
push esi
push ebx
push esi
movsx edx, byte [0x59b710]
test edx, edx
jle 0x46a5a7
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, eax
mov ebx, edx
mov esi, ecx
xor eax, eax
push eax
push eax
push eax
push eax
call dword [0x5770dc]
mov dword [esi*4 + 0x7db640], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [0x5770dc]
mov dword [ebx + 0x7db740], eax
xor eax, eax
push eax
push 1
push eax
push eax
call dword [0x5770dc]
mov dword [ebx + 0x7db840], eax
cmp dword [esi*4 + 0x7db640], 0
je 0x46a66d
cmp dword [esi*4 + 0x7db740], 0
je 0x46a65d
cmp dword [esi*4 + 0x7db840], 0
je 0x46a64d
add ebx, 4
inc esi
movsx edx, byte [0x59b710]
cmp esi, edx
jl 0x46a52b
mov eax, edi
cmp eax, 1
je 0x46a635
test edx, edx
jle 0x46a631
xor eax, eax
xor ecx, ecx
xor edx, edx
mov ebx, eax
mov esi, edx
mov edi, ecx
mov dword [esi + 0x7d9d40], edi
xor ecx, ecx
lea edx, [esi + 0x7d9d40]
lea eax, [esp]
push eax
push ecx
push edx
push 0x41f634
push ecx
push ecx
call fcn.00472325
add esp, 0x18
mov dword [edi*4 + 0x7d9c40], eax
push edi
push eax
call dword [0x5770bc]
cmp dword [edi*4 + 0x7d9c40], 0
jne 0x46a5fc
mov ebx, 1
add esi, 0x64
inc edi
movsx eax, byte [0x59b710]
cmp edi, eax
jl 0x46a5bb
mov eax, ebx
cmp eax, 1
je 0x46a619
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
ret
push 0x8792a4
push 0
call fcn.00409114
mov eax, 0xffffffff
add esp, 0xc
pop ebx
pop esi
pop edi
ret
xor eax, eax
jmp 0x46a60d
push 0x879278
push 0
call fcn.00409114
mov eax, 0xffffffff
add esp, 0xc
pop ebx
pop esi
pop edi
ret
call dword [0x577290]
mov edi, 1
jmp 0x46a58d
call dword [0x577290]
mov edi, 1
jmp 0x46a57f
call dword [0x577290]
mov edi, 1
jmp 0x46a571

Function at 0x46b978
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push eax
push eax
call dword [0x5770dc]
mov dword [0x8727dc], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [0x5770dc]
mov dword [0x8727e0], eax
xor eax, eax
push eax
push 1
push eax
push eax
call dword [0x5770dc]
mov dword [0x8727e4], eax
xor edx, edx
lea eax, [esp]
push eax
push edx
push 0x7d1800
push 0x41b774
push edx
push edx
call fcn.00472325
add esp, 0x18
mov dword [0x8727d8], eax
pop ecx
ret

Function at 0x46b9e8
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push 1
push eax
call dword [0x5770dc]
mov dword [0x8727a4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [0x5770dc]
mov dword [0x8727a8], eax
xor edx, edx
mov eax, 1
push edx
push eax
push eax
push edx
call dword [0x5770dc]
mov dword [0x8727ac], eax
xor edx, edx
lea eax, [esp]
push eax
push edx
push 0x7ce100
push 0x4187bc
push edx
push edx
call fcn.00472325
add esp, 0x18
mov dword [0x8727a0], eax
pop ecx
ret

Function at 0x46ba48
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x417e5c
call fcn.00472086
add esp, 0xc
call fcn.0046b9d0
ret
Function at 0x46bd7c
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
call dword [sym.imp.WINMM.dll_joyGetNumDevs]
test eax, eax
jg 0x46bd90
mov dword [0x871f98], eax
xor eax, eax
pop ecx
ret
mov edx, 0x10
cmp eax, 0x10
jl 0x46bd9c
mov eax, edx
mov dword [0x871f98], eax
xor eax, eax
mov dword [esp], ebx
mov ebx, eax
lea edx, [ebx + 0x78ac40]
push 0x34
push edx
call dword [0x5b8560]
add esp, 8
mov dword [ebx + 0x78ac40], 0x34
mov dword [ebx + 0x78ac44], 0x83
add ebx, 0x34
cmp ebx, 0x340
jl 0x46bda8
mov ebx, dword [esp]
mov dword [0x78af80], 1
mov dword [0x78af84], 2
mov dword [0x78af88], 4
mov dword [0x78af8c], 8
mov dword [0x78af90], 0x10
mov dword [0x78af94], 0x20
mov dword [0x78af98], 0x40
mov dword [0x78af9c], 0x80
mov dword [0x78afa0], 0x100
mov dword [0x78afa4], 0x200
mov dword [0x78afa8], 0x400
mov dword [0x78afac], 0x800
mov dword [0x78afb0], 0x1000
mov dword [0x78afb4], 0x2000
mov dword [0x78afb8], 0x4000
mov dword [0x78afbc], 0x8000
mov dword [0x78afc0], 0x10000
mov dword [0x78afc4], 0x20000
mov dword [0x78afc8], 0x40000
mov dword [0x78afcc], 0x80000
mov dword [0x78afd0], 0x100000
mov dword [0x78afd4], 0x200000
mov dword [0x78afd8], 0x400000
mov dword [0x78afdc], 0x800000
mov dword [0x78afe0], 0x1000000
mov dword [0x78afe4], 0x2000000
mov dword [0x78afe8], 0x4000000
mov dword [0x78afec], 0x8000000
mov dword [0x78aff0], 0x10000000
mov dword [0x78aff4], 0x20000000
mov dword [0x78aff8], 0x40000000
mov dword [0x78affc], 0x80000000
mov eax, 1
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x5ce680], eax
mov eax, 1
mov ecx, dword [eax*4 + 0x5ce67c]
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5ce680], edx
inc eax
cmp eax, 0x270
jl 0x46c2a6
mov dword [0x59b6f0], eax
ret
Function at 0x4e8998
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4e8a08
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5848ac
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e89ff
cmp dword [ebp - 0xc], 4
jne 0x4e89ff
cmp dword [ebp - 0x10], edi
je 0x4e89ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5b03d8], edi
xor eax, eax
jmp 0x4e8a47
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5b03d8], edi
jge 0x4e8a42
lea eax, [ebp - 0x34]
push eax
mov dword [0x5b03d8], edi
call dword [0x5770d8]
cmp word [ebp - 0x34], di
jne 0x4e8a42
cmp word [ebp - 0x14], 5
jb 0x4e8a42
call fcn.004e8970
test eax, eax
je 0x4e8a42
emms
mov dword [0x5b03d8], 1
mov eax, dword [0x5b03d8]
pop edi
leave
ret
Function at 0x5131c0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5131e3
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x513209
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5131f0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x5132c0
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5132f7
push esi
call fcn.00545080
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5132f0
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x513376
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x513360
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x51331a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x513359
cmp eax, 2
je 0x513360
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x513310
cmp eax, 3
je 0x51333d
cmp eax, 1
jne 0x513310
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x513310
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x513310
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005131c0
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x51338d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.005131c0
pop esi
pop ebp
ret 4