joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45de10
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46370e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x494680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45de89
push str.OpenProcessToken_failed_in_RebootOS.
lea ecx, [ebp - 0x28]
call fcn.00401a60
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 2
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405030
jmp 0x45df50
lea edx, [ebp - 0x20]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45df02
push str.AdjustTokenPrivileges_failed_in_RebootOS.
lea ecx, [ebp - 0x2c]
call fcn.00401a60
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
push edx
push 2
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405030
jmp 0x45df50
push SysReAllocStringLen
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45df50
push str.ExitWindowsEx_failed_in_RebootOS.
lea ecx, [ebp - 0x30]
call fcn.00401a60
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0xa80058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a801a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8006a
add dl, dl
jne 0xa80089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa800dc
xor eax, eax
add dl, dl
jne 0xa80096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8017d
add dl, dl
jne 0xa800a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa800d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa80075
mov eax, 1
add dl, dl
jne 0xa800ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa800e1
sub eax, ebx
mov ebx, 1
jne 0xa80128
mov ecx, 1
add dl, dl
jne 0xa8010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa80119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80136
cmp eax, 0x7d00
jae 0xa8016d
cmp eax, 0x500
jb 0xa80168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
cmp eax, 0x7f
ja 0xa80170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8019e
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 0xa80075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x59e2361
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x20d0704a
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100134a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2884
call fcn.10055700
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
push 0
lea eax, [ebp - 0x1858]
push eax
call fcn.1004e3d0
add esp, 0xc
push 0x7e8
push 0
lea ecx, [ebp - 0x2878]
push ecx
call fcn.1004e3d0
add esp, 0xc
push 0x10063a48
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x185c]
push eax
call fcn.100486a2
add esp, 0xc
cmp dword [ebp - 0x185c], 0
jne 0x1001350e
or eax, 0xffffffff
jmp 0x10013659
mov dword [ebp - 0x2880], 0
mov ecx, dword [ebp - 0x185c]
push ecx
call fcn.100490d2
add esp, 4
test eax, eax
jne 0x10013569
mov edx, dword [ebp - 0x185c]
push edx
push 0x100
push 1
mov eax, dword [ebp - 0x2880]
lea ecx, [ebp + eax - 0x1858]
push ecx
call fcn.100489a0
add esp, 0x10
mov dword [ebp - 0x2884], eax
mov edx, dword [ebp - 0x2884]
add edx, dword [ebp - 0x2880]
mov dword [ebp - 0x2880], edx
jmp 0x10013518
mov eax, dword [ebp - 0x185c]
push eax
call fcn.10048d27
add esp, 4
push 0x826
push 0
lea ecx, [ebp - 0x2088]
push ecx
call fcn.1004e3d0
add esp, 0xc
push 0x826
push 0
lea edx, [ebp - 0x1058]
push edx
call fcn.1004e3d0
add esp, 0xc
push 0x826
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.1004e3d0
add esp, 0xc
lea esi, [ebp - 0x181a]
mov ecx, 0x100
lea edi, [ebp - 0x2878]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x208c]
push ecx
lea edx, [ebp - 0x830]
push edx
push 0x400
lea eax, [ebp - 0x2878]
push eax
push str.4B88BCD911B7B48D
call fcn.10013ae0
push 0xc02
push 0
push 0x1008c6d8
call fcn.1004e3d0
add esp, 0xc
mov ecx, dword [0x10063a4c]
mov dword [0x1008c6d8], ecx
mov dword [ebp - 0x287c], 0
push 0x1008c6dc
mov edx, dword [ebp - 0x208c]
push edx
lea eax, [ebp - 0x830]
push eax
call fcn.10047aa0
mov dword [ebp - 0x287c], eax
mov ecx, dword [ebp - 0x287c]
add ecx, 4
push ecx
push 0x1008c6d8
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004ec60
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 8
Function at 0x10015b20
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10015c96
push 0x1006146e
lea ecx, [ebp - 0x10]
call fcn.10015cb0
push 0x1006146f
lea ecx, [ebp - 0xc]
call fcn.10015cb0
mov ecx, dword [ebp - 4]
push ecx
call fcn.10048416
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x10015c24
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x10015c22
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x194]
test ecx, ecx
je 0x10015c15
mov dword [ebp - 0x18], 0
jmp 0x10015bb5
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x190]
jae 0x10015c13
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x194]
and eax, 0xff
push eax
push 0x10063aac
lea ecx, [ebp - 0x10]
push ecx
call fcn.100166c0
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x190]
sub eax, 1
cmp dword [ebp - 0x18], eax
jae 0x10015c05
push 0x10063ab4
lea ecx, [ebp - 0x10]
call fcn.10015d70
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
call fcn.10015d50
jmp 0x10015bac
jmp 0x10015c22
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x10015b8b
jmp 0x10015c52
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.100486f5
add esp, 4
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xc]
call fcn.10015d30
lea ecx, [ebp - 0x10]
call fcn.10015d30
mov eax, dword [ebp - 0x24]
jmp 0x10015c9f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.100486f5
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.10015db0
push eax
push 0
lea ecx, [ebp - 0xc]
call fcn.10015d90
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1004ec60
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.10015d30
lea ecx, [ebp - 0x10]
call fcn.10015d30
jmp 0x10015c9a
xor eax, eax
jmp 0x10015c9f
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10017ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0x10017ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10017b1c
xor eax, eax
jmp 0x10017b8a
cmp dword [ebp + 0x18], 0x258
jne 0x10017b41
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x247]
cmp edx, 0x4b
jne 0x10017b41
push 0
lea eax, [ebp - 4]
push eax
call fcn.10018320
jmp 0x10017b71
cmp dword [ebp + 0x18], 0x2bc
jne 0x10017b66
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x2ab]
cmp edx, 0x4b
jne 0x10017b66
push 0
lea eax, [ebp - 4]
push eax
call fcn.10018320
jmp 0x10017b71
push 1
lea ecx, [ebp - 4]
push ecx
call fcn.10018320
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10017b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0x10017ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10017bf9
xor eax, eax
jmp 0x10017cc9
cmp dword [ebp + 0x18], 0x1c7
jle 0x10017c1e
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x51]
cmp edx, 0x4b
jne 0x10017c1e
push 0
lea eax, [ebp - 4]
push eax
call fcn.10018320
jmp 0x10017cb0
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x51]
cmp edx, 0x4d
jne 0x10017c83
mov byte [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x52
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.10048195
add esp, 4
test eax, eax
jle 0x10017c76
push 0
lea edx, [ebp - 4]
push edx
call fcn.10018320
jmp 0x10017c81
push 1
lea eax, [ebp - 4]
push eax
call fcn.10018320
jmp 0x10017cb0
cmp dword [ebp + 0x18], 0x161
jle 0x10017ca5
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx + 0x23]
cmp edx, 0x4b
jne 0x10017ca5
push 0
lea eax, [ebp - 4]
push eax
call fcn.10018320
jmp 0x10017cb0
push 1
lea ecx, [ebp - 4]
push ecx
call fcn.10018320
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10018480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
push str._I_N___d_
push 1
push 0x1006312c
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x1c
mov dword [ebp - 0x40c], 0xffffff38
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x407]
push ecx
call fcn.1004e3d0
add esp, 0xc
mov byte [ebp - 0x418], 0
xor edx, edx
mov word [ebp - 0x417], dx
mov byte [ebp - 0x415], dl
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x100186ce
mov dword [ebp - 0x41c], 0
jmp 0x1001853d
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x414], 0
jne 0x100186c4
mov dword [ebp - 0x420], 0x104
mov byte [ebp - 0x528], 0
push 0x103
push 0
lea edx, [ebp - 0x527]
push edx
call fcn.1004e3d0
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x528]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x100186bf
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x638], 0x104
mov byte [ebp - 0x630], 0
push 0x103
push 0
lea ecx, [ebp - 0x62f]
push ecx
call fcn.1004e3d0
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x634]
push ecx
push 0
lea edx, [ebp - 0x528]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
mov dword [ebp - 0x418], ecx
lea edx, [ebp - 0x630]
mov dword [ebp - 0x63c], edx
mov eax, dword [ebp - 0x63c]
add eax, 1
mov dword [ebp - 0x640], eax
mov ecx, dword [ebp - 0x63c]
mov dl, byte [ecx]
mov byte [ebp - 0x641], dl
add dword [ebp - 0x63c], 1
cmp byte [ebp - 0x641], 0
jne 0x10018627
mov eax, dword [ebp - 0x63c]
sub eax, dword [ebp - 0x640]
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x648]
sub ecx, 3
push ecx
lea edx, [ebp - 0x62d]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.1004ec60
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call fcn.100481ab
add esp, 4
mov dword [0x100a6368], eax
mov edx, dword [ebp + 8]
mov dword [0x100a636c], edx
call sym.ksnetcomm.dll_PadInitialization
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x100186bf
lea eax, [ebp - 0x418]
push eax
call fcn.100481ab
add esp, 4
mov dword [ebp - 0x40c], eax
jmp 0x100186c4
jmp 0x1001852e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10063160
push 1
push 0x10063168
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x18
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 4
Function at 0x10020040
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10055700
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.1004e3d0
add esp, 0xc
mov dword [ebp - 0x1014], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1018], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1018]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x1002016e
mov edx, dword [ebp - 0x1014]
lea eax, [ebp + edx - 0x1010]
push eax
mov ecx, dword [0x100a6370]
push ecx
call fcn.1002c630
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x100200d7
mov eax, dword [ebp - 8]
jmp 0x10020199
cmp dword [ebp - 8], 0
jle 0x100200ec
mov edx, dword [ebp - 0x1014]
add edx, dword [ebp - 8]
mov dword [ebp - 0x1014], edx
cmp dword [ebp - 0x1014], 0
jle 0x10020161
mov eax, dword [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1010]
push ecx
call fcn.10011d40
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x101c], 0
jne 0x10020119
jmp 0x1002012b
cmp dword [ebp - 0x101c], 2
jne 0x10020129
jmp 0x10020091
jmp 0x1002016e
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x100d]
mov byte [edx], al
mov ecx, dword [ebp - 0x1014]
sub ecx, 6
mov dword [ebp - 0x1014], ecx
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1004ec60
add esp, 0xc
jmp 0x1002016e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10020091
push 0x1000
push 0
lea edx, [ebp - 0x1010]
push edx
call fcn.1004e3d0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jbe 0x10020193
mov eax, 0xfffffa4c
jmp 0x10020199
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100202a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.10055700
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x10063828
push 1
push 0x1006382c
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x18
push 0
push 1
mov eax, dword [0x100a636c]
push eax
mov ecx, dword [0x100a6368]
push ecx
push 0x100a6370
call fcn.1002c200
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10020303
mov eax, dword [ebp - 4]
jmp 0x10020491
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.ksnetcomm.dll_PadReaderAsyncCardData
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10020333
push 0x100a6370
call fcn.1002c7e0
mov eax, dword [ebp - 4]
jmp 0x10020491
mov eax, dword [ebp + 0x18]
push eax
call fcn.100481ab
add esp, 4
add eax, 1
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10020460
mov byte [ebp - 0x11], 0
push 0x1000
push 0
lea edx, [ebp - 0x1018]
push edx
call fcn.1004e3d0
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x11]
push ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
push edx
call fcn.10020040
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x100203bf
push 0x100a6370
call fcn.1002c7e0
mov eax, dword [ebp - 4]
jmp 0x10020491
movzx eax, byte [ebp - 0x11]
cmp eax, 0xd2
je 0x100203f4
movzx ecx, byte [ebp - 0x11]
cmp ecx, 0xd5
je 0x100203f4
movzx edx, byte [ebp - 0x11]
cmp edx, 0xd8
je 0x100203f4
movzx eax, byte [ebp - 0x11]
cmp eax, 0x59
je 0x100203f4
movzx ecx, byte [ebp - 0x11]
cmp ecx, 0x56
jne 0x10020418
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ec60
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0
jmp 0x10020460
movzx eax, byte [ebp - 0x11]
cmp eax, 0xd6
jne 0x10020425
jmp 0x10020445
push 0x10063840
push 1
push 0x10063850
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x18
push 0x1000
push 0
lea ecx, [ebp - 0x1018]
push ecx
call fcn.1004e3d0
add esp, 0xc
jmp 0x1002035b
push 0x100a6370
call fcn.1002c7e0
mov edx, dword [ebp - 4]
push edx
push 0x10063864
push 1
push 0x10063870
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x1c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100204b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.10055700
mov eax, dword [0x1006d258]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x10063884
push 1
push 0x10063888
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x18
push 0
push 1
mov eax, dword [0x100a636c]
push eax
mov ecx, dword [0x100a6368]
push ecx
push 0x100a6370
call fcn.1002c200
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10020513
mov eax, dword [ebp - 4]
jmp 0x10020665
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.ksnetcomm.dll_PadReaderAsyncKeyInCardData
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10020543
push 0x100a6370
call fcn.1002c7e0
mov eax, dword [ebp - 4]
jmp 0x10020665
mov eax, dword [ebp + 0x18]
push eax
call fcn.100481ab
add esp, 4
add eax, 1
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10020634
mov byte [ebp - 0x11], 0
push 0x1000
push 0
lea edx, [ebp - 0x1018]
push edx
call fcn.1004e3d0
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x11]
push ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
push edx
call fcn.10020040
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x100205cf
push 0x100a6370
call fcn.1002c7e0
mov eax, dword [ebp - 4]
jmp 0x10020665
cmp dword [ebp - 4], 0
jle 0x100205f9
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1018]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004ec60
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x10020634
push str._Unknown_Data
push 1
push 0x100638b0
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x18
push 0x1000
push 0
lea ecx, [ebp - 0x1018]
push ecx
call fcn.1004e3d0
add esp, 0xc
jmp 0x1002056b
push 0x100a6370
call fcn.1002c7e0
mov edx, dword [ebp - 4]
push edx
push str._OUT__ld_
push 1
push 0x100638d4
push 1
push str.ksnetcomm.pad
push 0x10071538
call fcn.100122f0
add esp, 0x1c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10048168
mov esp, ebp
pop ebp
ret 0x14