joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f47c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1005e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100d4a0c]
lea eax, [ebp - 0x14]
push esi
push edi
push eax
push dword [0x1010b620]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm1, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x20]
mov ecx, edi
sub ecx, dword [0x1010b628]
mov esi, dword [ebp - 0x1c]
mov edx, esi
sbb edx, dword [0x1010b62c]
call fcn.100504e0
mov edx, dword [0x1010b634]
mov ecx, dword [0x1010b630]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.100504e0
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1010b62c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x1010b628], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf2], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0xf4], 0
mov byte [ebx + 0xf3], al
call fcn.1001f3d5
cmp byte [ebx + 0xf0], 0
pop edi
pop esi
pop ebx
je 0x1001f576
or eax, 0xffffffff
jmp 0x1001f581
mov eax, dword [0x100d4a0c]
mov eax, dword [eax + 0x1cfc]
cmp dword [0x1005ec6c], eax
je 0x1001f593
mov dword [0x1005ec6c], eax
call fcn.1001f339
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c3cd
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1010b67c], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
jne 0x10020ade
xor esi, esi
push 8
mov ecx, esi
pop edx
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edx, 1
jne 0x10020ab9
mov dword [esi*4 + 0x1010b678], ecx
inc esi
cmp esi, 0x100
jb 0x10020ab4
mov esi, dword [ebp + 8]
not esi
mov edx, esi
test ebx, ebx
jle 0x10020b23
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1010b678]
inc edi
sub ebx, 1
jne 0x10020ae9
jmp 0x10020b2a
cmp al, 0x23
jne 0x10020b11
cmp byte [edi], al
jne 0x10020b11
cmp byte [edi + 1], al
cmove edx, esi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1010b678]
mov al, byte [edi]
inc edi
test al, al
jne 0x10020b03
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x10021324
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10021333
and dword [edi], 0
mov edx, 0x10058ff8
call fcn.10021292
mov esi, eax
test esi, esi
je 0x100213d1
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100213c6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x100213c6
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100213c6
mov ecx, ebx
call fcn.10022a4f
mov dword [ebp + 8], eax
test eax, eax
je 0x100213c6
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x100213b4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp + 8]
dec dword [0x1010b624]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x100213cd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
test edi, edi
je 0x100213c1
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x100213d0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10025ac3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100d4a0c]
push esi
mov esi, ecx
and dword [eax + 0x2c8c], 0
test esi, esi
je 0x10025b13
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push edi
call fcn.10025b16
mov edx, 0x10058ffc
mov ecx, esi
mov edi, eax
call fcn.10021292
mov esi, eax
test esi, esi
je 0x10025b12
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x1002c93b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, dword [0x100d4a0c]
mov eax, dword [edi + 0x1a20]
mov byte [eax + 0x78], 1
mov eax, dword [edi + 0x1a20]
cmp byte [eax + 0x7b], 0
jne 0x1002c981
push edx
lea esi, [edi + 0x2ec4]
mov edx, 0xc01
push ecx
mov ecx, esi
call fcn.10020a71
pop ecx
pop ecx
lea edx, [edi + 0x2ec4]
mov ecx, esi
lea edx, [edx + eax]
pop edi
pop esi
jmp fcn.1002c9c1
pop edi
pop esi
ret
Function at 0x1003dbf9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x1005e040]
xor eax, esp
mov dword [esp + 0x30], eax
movaps xmm0, xmmword [0x1005a050]
push ebx
movups xmmword [esp + 8], xmm0
xor ebx, ebx
mov dword [esp + 0x28], 0xb011c19
movaps xmm0, xmmword [0x10059dd0]
mov edx, ebx
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0x10344f
mov dword [esp + 0x30], 0x1007418
mov al, dl
add al, 0x4b
xor byte [esp + edx + 8], al
inc edx
cmp edx, 0x2a
jb 0x1003dc42
push ecx
lea eax, [esp + 0xc]
mov byte [esp + 0x37], bl
push eax
mov edx, 0x1010ba84
call fcn.10033d6d
pop ecx
pop ecx
test al, al
je 0x1003dcae
mov eax, dword [0x1010ba84]
sub eax, ebx
je 0x1003dca3
sub eax, 1
je 0x1003dc9c
sub eax, 1
je 0x1003dc95
sub eax, 1
je 0x1003dc8e
sub eax, 1
jne 0x1003dcaa
call fcn.10046c40
jmp 0x1003dcaa
call fcn.100472aa
jmp 0x1003dcaa
call fcn.100460b8
jmp 0x1003dcaa
call fcn.10046734
jmp 0x1003dcaa
xor ecx, ecx
call fcn.10045742
mov al, 1
jmp 0x1003dcb0
xor al, al
mov ecx, dword [esp + 0x34]
pop ebx
xor ecx, esp
call fcn.1004c3cd
mov esp, ebp
pop ebp
ret
Function at 0x10040666
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x10040683
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x33
jb 0x10040671
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x10040685
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x100406a2
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x23
jb 0x10040690
mov byte [esi + 0x24], 0
pop esi
ret

Function at 0x100406a4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x100406ca
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x1a4
jb 0x100406b2
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x100406cc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x100406e9
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x2b
jb 0x100406d7
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x100406eb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x10040708
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x21
jb 0x100406f6
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x1004070a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x5f], 0
je 0x10040727
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x5e
jb 0x10040715
mov byte [esi + 0x5f], 0
pop esi
ret

Function at 0x10040729
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x10040746
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x3b
jb 0x10040734
mov byte [esi + 0x3c], 0
pop esi
ret

Function at 0x10040748
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x10040765
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x67
jb 0x10040753
mov byte [esi + 0x68], 0
pop esi
ret

Function at 0x10040767
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x10040784
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x40
jb 0x10040772
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x10040786
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x100407ac
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x8a
jb 0x10040794
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x100407ae
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x100407cb
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x2a
jb 0x100407b9
mov byte [esi + 0x2b], 0
pop esi
ret
Function at 0x100407cd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e], 0
je 0x100407ea
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x4b]
xor byte [ecx], al
inc edx
cmp edx, 0x1d
jb 0x100407d8
mov byte [esi + 0x1e], 0
pop esi
ret
Function at 0x1004d490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1004d640
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004d55d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005e090]
jb 0x1004d4da
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005e094]
ja 0x1004d4da
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004d4aa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004d500
jmp 0x1004d55d
cmp dword [ebp - 0x14], 0x10000
jne 0x1004d543
cmp dword [ebp - 0x18], 0x10000
jb 0x1004d543
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d536
mov eax, dword [ebp - 8]
jmp 0x1004d55f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004d558
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004d640
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004d4aa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004d570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004d670
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004d635
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005e090]
jb 0x1004d5b5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005e094]
ja 0x1004d5b5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004d585
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004d5db
jmp 0x1004d635
cmp dword [ebp - 0x14], 0x10000
jne 0x1004d61e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004d61e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d611
mov eax, dword [ebp - 8]
jmp 0x1004d637
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004d630
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004d670
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004d585
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x58954a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x589551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x58a8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x5a754c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x5a754c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x5a6378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58a8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404da4
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x404e01
mov dword [ebx + 0x3b0], eax
mov dword [ebx + 0x3b8], 0
mov dword [ebx + 0x3b4], 0
call fcn.004050d0
jb 0x404e01
mov dword [ebx + 0x3b4], eax
mov word [eax + 0x78], 8
call fcn.00404df0
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x404e0a
push ebx
jb 0x404e57
add byte [esi - 4], bl
mov bl, 0xb0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x406bd1
Capabilities:
Manipulate console buffer

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x400
mov ebx, section..data
push esi
push edx
mov eax, dword [ebx + 0x28c]
shl eax, 4
or eax, dword [ebx + 0x288]
shl eax, 0x10
push eax
call fcn.00406dcd
push eax
call fcn.00406d62
push dx
push ax
mov eax, dword [ebp - 0x40c]
movzx ecx, word [ebp - 0x414]
sub cx, word [ebp - 0x410]
mov edx, dword [ebp - 0x408]
mov esi, dword [ebp - 0x404]
lea edi, [ebp - 0x400]
test edx, edx
je 0x406ceb
test byte [ebx + 0x285], 0xff
je 0x406c4b
mov byte [ebx + 0x285], 0
call fcn.00406d15
cld
and ecx, 0xff
push ecx
lodsb al, byte [esi]
stosd dword es:[edi], eax
dec edx
loopne 0x406c53
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x404], esi
pop edx
sub edx, ecx
movzx ecx, word [ebp - 0x410]
add word [ebp - 0x410], dx
mov ax, word [ebp - 0x40e]
push ax
add cx, dx
dec ecx
push cx
push ax
inc ecx
sub cx, dx
push cx
push esp
push 0
or edx, 0x10000
push edx
lea eax, [ebp - 0x400]
push eax
push dword [ebx + 0x640]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleOutputA]
pop eax
pop eax
mov ax, word [ebp - 0x410]
cmp ax, word [ebp - 0x414]
jb 0x406ce6
mov word [ebp - 0x410], 0
mov ax, word [ebp - 0x40e]
inc ax
cmp ax, word [ebp - 0x412]
je 0x406cdf
mov word [ebp - 0x40e], ax
jmp 0x406ce6
mov byte [ebx + 0x285], 0xff
jmp 0x406c08
movzx eax, word [ebp - 0x410]
movzx ecx, word [ebp - 0x40e]
inc eax
inc ecx
mov dl, byte [ebx + 0x285]
call fcn.00406df2
mov byte [ebx + 0x285], dl
mov esp, ebp
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x406df2
Capabilities:
Manipulate console buffer

Disassembly:
push ebx
push edx
push esi
push edi
mov ebx, eax
call fcn.00406d62
mov esi, eax
mov edi, edx
call fcn.00406dcd
add eax, 0x10001
cmp ebx, 1
jl 0x406e14
cmp ebx, esi
jle 0x406e17
movzx ebx, ax
cmp ecx, 1
jl 0x406e20
cmp ecx, edi
jle 0x406e29
rol eax, 0x10
movzx ecx, ax
rol eax, 0x10
push eax
push ecx
dec ebx
dec ecx
push cx
push bx
push dword [str.outcomes:_Banker__B___Player__P____and_Push__0_.]
call dword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
xor al, al
mov byte [0x40a285], al
pop ecx
pop eax
pop edi
pop esi
pop edx
pop ebx
ret
Function at 0x407046
Capabilities:
Manipulate console buffer

Disassembly:
push ebx
push ecx
push edx
mov ebx, section..data
cmp esi, 0xffff
ja 0x4070bf
cmp edi, 0xffff
ja 0x4070bf
call fcn.00406f38
push ebx
push esi
push edi
dec esi
dec edi
push di
push si
push 0
push esp
push 1
push dword [ebx + 0x640]
call dword [0x42d000]
add esp, 8
inc esi
inc edi
pop edi
pop esi
pop ebx
cmp dword [ebx + 0x5a4], 2
je 0x4070b9
push ebx
push esi
push edi
call fcn.00406f38
push 0
push dword [ebx + 0x640]
call dword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
call fcn.00406f38
call fcn.00406d81
pop edi
pop esi
pop ebx
cmp eax, esi
jne 0x4070bf
cmp edx, edi
jne 0x4070bf
pop edx
pop ecx
pop ebx
xor eax, eax
ret
pop edx
pop ecx
pop ebx
xor eax, eax
dec eax
ret

Function at 0x407a57
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
call fcn.00407b0b
mov dword [ebp - 0x18], eax
pop eax
jb 0x407b07
call fcn.00407b0b
mov dword [ebp - 0x14], eax
jb 0x407b07
call fcn.00406d62
mov word [ebp - 0xc], ax
mov ecx, eax
dec ecx
mov dword [ebp - 4], ecx
mov ebx, edx
inc ecx
mov eax, 0x2710
cdq
idiv ecx
cmp eax, ebx
jb 0x407aa0
mov eax, ebx
mov word [ebp - 0xa], ax
mov dword [ebp - 0x10], ebx
dec eax
mov word [ebp - 2], ax
inc eax
imul ecx
shl eax, 2
mov ebx, eax
call fcn.004088e2
lea edx, [ebp - 8]
push edx
push 0
push dword [ebp - 0xc]
lea edx, [esp + 0xc]
push edx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadConsoleOutputA]
lea edx, [ebp - 8]
push edx
push 0
push dword [ebp - 0xc]
lea edx, [esp + 0xc]
push edx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleOutputA]
movzx eax, word [ebp - 0xa]
sub dword [ebp - 0x10], eax
je 0x407b07
add word [ebp - 6], ax
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jb 0x407afd
mov eax, ebx
add word [ebp - 2], ax
mov word [ebp - 0xa], ax
jmp 0x407ab9
mov esp, ebp
pop ebp
ret