joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10c06e4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10f19f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
cmp dword [ebp + 0xc], 1
push edi
mov dword [ebp - 0x88], eax
jne 0x10c0823
push esi
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x8c], ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x94], esi
push eax
call fcn.010c8245
mov edi, eax
add esp, 0x18
cmp edi, esi
jne 0x10c07b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10c07d4
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.010c8245
add esp, 0x18
mov dword [ebp - 0x90], eax
cmp eax, esi
je 0x10c07d4
xor edi, edi
inc edi
push edi
push eax
call fcn.010bee10
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
cmp eax, esi
je 0x10c07d4
push esi
push dword [ebp - 0x90]
mov dword [ebp - 0x94], edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.010c8245
mov edi, eax
add esp, 0x18
cmp edi, esi
je 0x10c07c8
push 1
push edi
call fcn.010bee10
pop ecx
pop ecx
mov dword [ebx], eax
cmp eax, esi
jne 0x10c07e6
cmp dword [ebp - 0x94], esi
je 0x10c07d4
push dword [ebp - 0x8c]
call fcn.010b70e3
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010b533a
leave
ret
lea ecx, [edi - 1]
push ecx
push dword [ebp - 0x8c]
push edi
push eax
call fcn.010c55cb
add esp, 0x10
test eax, eax
je 0x10c080b
push esi
push esi
push esi
push esi
push esi
call fcn.010b7176
add esp, 0x14
cmp dword [ebp - 0x94], esi
je 0x10c081f
push dword [ebp - 0x8c]
call fcn.010b70e3
pop ecx
xor eax, eax
jmp 0x10c07d7
cmp dword [ebp + 0xc], 2
jne 0x10c0877
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push esi
push dword [ebp + 0x14]
mov dword [ebx], esi
push dword [ebp + 0x10]
call edi
mov dword [ebp - 0x90], eax
cmp eax, esi
je 0x10c0868
push 2
push eax
call fcn.010bee10
pop ecx
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x10c0868
push dword [ebp - 0x90]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x10c081f
push dword [ebx]
call fcn.010b70e3
pop ecx
mov dword [ebx], esi
jmp 0x10c07d4
cmp dword [ebp + 0xc], esi
jne 0x10c07d4
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x88], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10c07d4
mov al, byte [ebp - 0x88]
mov byte [ebx], al
jmp 0x10c081f
Function at 0x10c40c7
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10f19f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.010baf34
pop ecx
test eax, eax
je 0x10c40fc
push esi
push esi
push esi
push esi
push esi
call fcn.010b7176
add esp, 0x14
push 4
pop eax
call fcn.010b8460
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10c4218
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10c4191
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1030d4c
call esi
test eax, eax
jne 0x10c4168
push 0x1030d30
call esi
test eax, eax
je 0x10c4191
push 0x1030d74
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10c4191
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10c4191
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10c4191
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.010bb67f
add esp, 0xc
test eax, eax
jl 0x10c4218
not esi
and dword [ebp - 8], esi
je 0x10c41c3
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010bb67f
add esp, 0xc
test eax, eax
jl 0x10c4218
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10c41ce
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x10c41e2
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x10c4218
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10c4218
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10c4218
xor eax, eax
inc eax
jmp 0x10c421a
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010b533a
leave
ret
Function at 0x10c5ca0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.010bc0aa
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x10c5cc8
or dword [esi + 8], 0x104
jmp 0x10c5d8c
lea eax, [ebx + 0x40]
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
test eax, eax
je 0x10c5ceb
cmp byte [eax], 0
je 0x10c5ceb
push edi
push 0x16
push 0x1031798
call fcn.010c5685
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x10c5d48
cmp byte [eax], 0
je 0x10c5d48
mov eax, dword [edi]
test eax, eax
je 0x10c5d0c
cmp byte [eax], 0
je 0x10c5d0c
call fcn.010c5bd9
jmp 0x10c5d11
call fcn.010c5c53
cmp dword [esi + 8], 0
jne 0x10c5da2
push esi
push 0x41
push 0x1031588
call fcn.010c5685
add esp, 0xc
test eax, eax
je 0x10c5d98
mov edi, dword [edi]
test edi, edi
je 0x10c5d41
cmp byte [edi], 0
je 0x10c5d41
call fcn.010c5bd9
jmp 0x10c5d98
call fcn.010c5c53
jmp 0x10c5d98
mov edi, dword [edi]
test edi, edi
je 0x10c5d85
cmp byte [edi], 0
je 0x10c5d85
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10c5d58
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x10c57ef
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x10c5d98
and dword [esi + 8], 0
jmp 0x10c5d98
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x10c5e93
mov eax, ebx
sub ebx, 0xffffff80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.010c56ec
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
test edi, edi
je 0x10c5e93
cmp edi, 0xfde8
je 0x10c5e93
cmp edi, 0xfde9
je 0x10c5e93
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10c5e93
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10c5e93
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10c5e1a
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10c5e8e
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x10c5e56
push 0x103186c
push 0x40
push ebx
call fcn.010bcafa
add esp, 0xc
test eax, eax
je 0x10c5e67
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.010b7176
add esp, 0x14
jmp 0x10c5e67
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10c5e93
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x10c5e93
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.010c95ca
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10c5e95
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10c66de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.010bbe57
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x10f4c20], ebx
jne 0x10c67b7
push ebx
push ebx
push 0x1031944
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x10c6722
xor eax, eax
jmp 0x10c687b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1031938
push edi
call esi
cmp eax, ebx
je 0x10c671b
push eax
call fcn.010bbddf
mov dword [esp], 0x1031928
push edi
mov dword [0x10f4c20], eax
call esi
push eax
call fcn.010bbddf
mov dword [esp], 0x1031914
push edi
mov dword [0x10f4c24], eax
call esi
push eax
call fcn.010bbddf
mov dword [0x10f4c28], eax
lea eax, [ebp - 8]
push eax
call fcn.010baf34
pop ecx
pop ecx
test eax, eax
je 0x10c6785
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10c67b7
push 0x10318f8
push edi
call esi
push eax
call fcn.010bbddf
pop ecx
mov dword [0x10f4c30], eax
cmp eax, ebx
je 0x10c67b7
push 0x10318e0
push edi
call esi
push eax
call fcn.010bbddf
pop ecx
mov dword [0x10f4c2c], eax
mov eax, dword [0x10f4c2c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10c6830
cmp dword [0x10f4c30], esi
je 0x10c6830
push eax
call fcn.010bbe65
pop ecx
call eax
cmp eax, ebx
je 0x10c67fd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10f4c30]
call fcn.010bbe65
pop ecx
call eax
test eax, eax
je 0x10c67fd
test byte [ebp - 0x18], 1
jne 0x10c6830
lea eax, [ebp - 0xc]
push eax
call fcn.010baf75
pop ecx
test eax, eax
je 0x10c6818
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10c6827
or dword [ebp + 0x10], 0x200000
jmp 0x10c6861
or dword [ebp + 0x10], 0x40000
jmp 0x10c6861
mov eax, dword [0x10f4c24]
cmp eax, esi
je 0x10c6861
push eax
call fcn.010bbe65
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10c6861
mov eax, dword [0x10f4c28]
cmp eax, esi
je 0x10c6861
push dword [ebp - 4]
push eax
call fcn.010bbe65
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10f4c20]
call fcn.010bbe65
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
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
mov ecx, 0x5808483e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..tls
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x62d874e4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x426c62
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000f810
push 0x10004a00
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x88], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
test eax, eax
mov esi, 0x10000
je 0x426cb5
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov ebx, dword [0x1000c010]
push 0x1c
lea edx, [ebp - 0x84]
push edx
push esi
push edi
call dword [0x1000c00c]
test eax, eax
je 0x426cf7
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x84]
cmp eax, esi
jae 0x426d17
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004296d1
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x74], 0x1000
jne 0x426df2
mov eax, dword [ebp - 0x70]
cmp al, 1
je 0x426df2
test eax, 0x100
jne 0x426df2
mov dword [ebp - 4], 0
push 0
push 0x40
lea edx, [ebp - 0x64]
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x426d66
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x426cd5
mov eax, 0x5a4d
cmp word [ebp - 0x64], ax
jne 0x426d51
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x78]
ja 0x426d51
cmp eax, 0x40
jb 0x426d51
push 0
push 0xf8
mov ecx, dword [ebp - 0x68]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x426da8
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x426cd5
mov edx, dword [ebp - 0x68]
cmp dword [edx], 0x4550
je 0x426dc8
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x426cd5
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x426cf9
mov esi, dword [ebp - 0x78]
add esi, dword [ebp - 0x84]
jmp 0x426cd5
Function at 0x427b32
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000f7f0
push 0x10004a00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [0x1000c038]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x427bd4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x427bd4
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x427bd4
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x427bd4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427e42
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x427e5e
mov ebx, 0x10000
cmp esi, 0x80000000
jae 0x427e71
lea edi, [esi + 0x7ff80000]
mov dword [ebp - 4], edi
jmp 0x427e7b
mov dword [ebp - 4], 0xfff80000
mov edi, dword [ebp - 4]
mov eax, dword [0x10012b4c]
mov edx, dword [0x10012b48]
test eax, eax
jne 0x427e95
test edx, edx
je 0x427ea8
mov eax, edx
mov dword [0x10012b4c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x427ea8
cmp ecx, ebx
jb 0x427ea8
cmp ecx, edi
jbe 0x427fac
mov eax, edx
mov dword [0x10012b4c], eax
test edx, edx
je 0x427ed6
test eax, eax
je 0x427eca
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x427eca
cmp ecx, ebx
jb 0x427eca
cmp ecx, edi
jbe 0x427fa7
mov eax, dword [eax + 4]
test eax, eax
jne 0x427eb7
mov dword [0x10012b4c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x427f16
push esi
lea eax, [esi - 0x40000000]
call fcn.00427cd2
add esp, 4
test eax, eax
jne 0x427f6b
push ebx
lea eax, [esi - 0x40000000]
call fcn.00427d92
add esp, 4
test eax, eax
jne 0x427f6b
mov edi, dword [ebp - 4]
cmp esi, 0x40000000
jae 0x427f44
push esi
lea eax, [esi + 0x40000000]
call fcn.00427d92
add esp, 4
test eax, eax
jne 0x427f6b
mov ecx, dword [ebp - 4]
push ecx
lea eax, [esi + 0x40000000]
call fcn.00427cd2
add esp, 4
test eax, eax
jne 0x427f6b
mov edi, dword [ebp - 4]
push ebx
mov eax, esi
call fcn.00427d92
add esp, 4
test eax, eax
jne 0x427f6e
push edi
mov eax, esi
call fcn.00427cd2
add esp, 4
test eax, eax
jne 0x427f6e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x10012b48]
mov dword [eax + 4], ecx
mov dword [0x10012b4c], eax
mov dword [0x10012b48], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x427f97
mov dword [eax + 8], edx
jmp 0x427fac
mov dword [0x10012b4c], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x427f62
cmp esi, edi
ja 0x427f62
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.0042ec42
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428012
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x10012b48]
push ebx
mov ebx, 0x10012b48
test eax, eax
je 0x42807d
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x428072
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x428047
cmp ecx, eax
jb 0x428072
cmp ecx, edi
jae 0x428072
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x428039
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [0x1000c048]
mov dword [0x10012b4c], 0
jmp 0x428075
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x428023
pop edi
pop esi
pop ebx
ret
Function at 0x4010d0
Capabilities:
Access peb ldr_data
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x402c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00401000
add esp, 4
push str.AutoInfo.ini
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
push 0x40517c
lea ecx, [esp + 0xc]
call fcn.004026fe
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
push esi
push str.Screen_d
push edx
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 0xc
push eax
push 0
push str.ProcessID
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40126e
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40126e
push 0x40517c
lea ecx, [esp + 0x14]
call fcn.004026fe
push esi
lea edx, [esp + 0x14]
push str.C:CSVScreen_d.txt
push edx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x40517c
call fcn.004026fe
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
push str.WatchDog:Terminate_Process:_d
push ecx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x30], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x405048
call fcn.004026fe
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 7
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x34], 5
call fcn.004012a0
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
push 0x405044
push str.LastHeartBeat
push edx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push 0x405044
push str.ProcessID
push ecx
call esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret
Function at 0x4012a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4013c2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x40517c
lea ecx, [esp + 8]
call fcn.004026fe
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
push eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x1c]
push str._04d__02d__02d__02d:_02d:_02d
push ecx
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea edx, [esp + 0x34]
lea eax, [esp + 8]
push 0x4050a8
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
push esi
push 1
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4014d0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x2c]
push eax
call esi
test eax, eax
ja 0x4014dc
pop edi
pop esi
ret
Function at 0x4014f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x402cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
push str.SOFTWAREMicrosoftWindowsCurrentverSionRun
lea ecx, [esp + 0xc]
call fcn.004026fe
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push 0
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret