joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403080
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x4030b6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044fc05
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00450b24
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40311b
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40309f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40309f
mov eax, dword [esp]
test eax, eax
je 0x40314a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.0044fc05
add esp, 0x40c
ret

Function at 0x403170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x403238
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.00450b24
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403238
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x403252
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433091
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.00454210
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x40326a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044fc05
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403257
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40328f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044fc05
add esp, 0x40c
ret
Function at 0x4032b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x4032e6
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0044fc05
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.00450b24
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032cf
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032cf
mov eax, dword [esp]
test eax, eax
je 0x403353
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.0044fc05
add esp, 0x410
ret
Function at 0x406ea0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46fd70
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00402870
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408950
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x406f40
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406f40
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x58]
push ecx
call fcn.00401690
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi + 0x6c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433091
add esp, 4
cmp dword [esi + 0x18], 8
mov edi, eax
jb 0x406fa9
mov esi, dword [esi + 4]
jmp 0x406fac
add esi, 4
mov ecx, edi
mov edi, edi
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x406fb0
push str.SoftwareVHLDMACHINE_ID
mov ebx, str.Installation_GUID
mov esi, SysReAllocStringLen
call fcn.00402f80
push edi
call fcn.00433096
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044fc05
add esp, 0x2c
ret
Function at 0x407080
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x470a7b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0040a850
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4070ef
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x40719b
push esi
call fcn.00433091
add esp, 4
cmp dword [esp + 0x38], 8
mov edi, eax
mov eax, dword [esp + 0x24]
jae 0x40711e
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407192
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4818c4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407192
cmp dword [esp + 0x1c], ebx
je 0x407192
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
jne 0x407192
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x4818c8
lea ecx, [esp + 0x50]
push 0x40
push ecx
call fcn.004510f5
add esp, 0x1c
add ebp, 0x94
push ebp
lea edx, [esp + 0x40]
call fcn.00408c60
push edi
call fcn.00433096
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x4071af
mov edx, dword [esp + 0x24]
push edx
call fcn.00433096
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044fc05
add esp, 0xb8
ret 4
Function at 0x407430
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4715ac
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x32c]
lea eax, [esp + 0x84]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407623
xor ebx, ebx
push 0xfe
lea ecx, [esp + 0x219]
push ebx
push ecx
mov byte [esp + 0x220], bl
call fcn.00454210
add esp, 0xc
push 0xff
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x214]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407500
sub eax, edx
push eax
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a560
lea edx, [esp + 0x14]
lea esi, [esp + 0x4c]
mov dword [esp + 0x324], ebx
call fcn.0040ac60
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xe8]
mov byte [esp + 0x32c], 1
call fcn.00401c20
cmp dword [esp + 0x64], 8
jb 0x40755b
mov edx, dword [esp + 0x50]
push edx
call fcn.00433096
add esp, 4
mov dword [esp + 0x324], 0xffffffff
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x40758b
mov eax, dword [esp + 0x18]
push eax
call fcn.00433096
add esp, 4
mov eax, edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4075a0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.0040a560
lea edx, [esp + 0x30]
lea esi, [esp + 0x68]
mov dword [esp + 0x324], 2
call fcn.0040ac60
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x104]
mov byte [esp + 0x32c], 3
call fcn.00401c20
cmp dword [esp + 0x80], 8
jb 0x4075fb
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00433096
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x407623
mov edx, dword [esp + 0x34]
push edx
call fcn.00433096
add esp, 4
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0044fc05
add esp, 0x314
ret 4
Function at 0x407650
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x24
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
push esi
push 7
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
lea eax, [esp + 8]
push eax
push 0x59
push 0x800
mov esi, ecx
mov word [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4076a6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
add esi, 0x120
call fcn.00401690
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0044fc05
add esp, 0x24
ret

Function at 0x4076e0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x2000
jmp 0x407700
mov eax, dword [esp + 0x10]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4077c0
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0x10
push 0
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x407748
push edi
push 0
call esi
push eax
call ebp
add ebx, 1
cmp ebx, 3
jb 0x407700
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
test eax, eax
jne 0x4077c0
mov edx, dword [edi + 0x20]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407754
mov ebx, dword [esp + 0x18]
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebx + 0x13c]
call fcn.00401690
mov ecx, dword [edi + 0x24]
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407780
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [ebx + 0x158]
call fcn.00401690
mov edi, dword [edi + 0x28]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4077a4
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [ebx + 0x174]
call fcn.00401690
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x407a80
Capabilities:
Check os version

Disassembly:
sub esp, 0x138
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebp
push esi
mov dword [esp + 0x14], eax
mov eax, 6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [esp + 0x1c], 3
mov ebp, 1
mov dword [esp + 0x14], eax
push eax
call fcn.00407c00
test eax, eax
je 0x407b25
mov esi, dword [esp + 0x1c]
cmp esi, 5
ja 0x407b2d
jmp 0x407ae0
push 0x11c
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00454210
add esp, 0xc
push 1
push 1
push 0
push 0
mov dword [esp + 0x30], 0x11c
mov dword [esp + 0x38], esi
call edi
push edx
push eax
push 1
lea edx, [esp + 0x2c]
push edx
call ebx
test eax, eax
jne 0x407b5a
add esi, 1
xor ebp, ebp
cmp esi, 5
jbe 0x407ae0
jmp 0x407b2d
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xc
mov dword [esp + 0x14], eax
jbe 0x407ac5
xor al, al
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fc05
add esp, 0x138
ret 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 1
mov dword [eax], ecx
mov dword [eax + 4], esi
call fcn.00407d60
test eax, eax
je 0x407b76
mov al, 1
jmp 0x407b93
push 3
call fcn.00407d60
test eax, eax
je 0x407b85
mov al, 3
jmp 0x407b93
push 2
call fcn.00407d60
neg eax
sbb al, al
and eax, 2
cmp bp, 4
mov edx, dword [esp + 0x18]
mov byte [edx + 0xc], al
movzx esi, bp
ja 0x407bf8
push 0x11c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00454210
add esp, 0xc
push 1
push 0x20
push 0
push 0
mov dword [esp + 0x30], 0x11c
mov word [esp + 0x144], si
call edi
push edx
push eax
push 0x20
lea ecx, [esp + 0x2c]
push ecx
call ebx
test eax, eax
jne 0x407bf0
add esi, 1
cmp si, 4
jbe 0x407ba3
mov al, 1
jmp 0x407b3f
mov edx, dword [esp + 0x18]
mov word [edx + 8], si
mov al, 1
jmp 0x407b3f
Function at 0x40b020
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0xc54], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc64]
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x40b04e
xor al, al
jmp 0x40b180
test ebp, ebp
jne 0x40b055
lea ebp, [edi + 8]
push ebp
call fcn.0040b220
add esp, 4
test al, al
je 0x40b047
lea esi, [esp + 0x18]
call fcn.0040af20
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x40b0a5
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.0045187e
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.0040b220
add esp, 4
jmp 0x40b180
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.0045187e
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.0040b2d0
test al, al
je 0x40b047
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b047
mov eax, dword [edi + 4]
push eax
call fcn.00430360
add esp, 4
test eax, eax
jne 0x40b047
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x460]
push eax
push ecx
call fcn.00430500
mov esi, eax
add esp, 8
test esi, esi
jle 0x40b153
push 0
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x46c]
push eax
push ebp
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x40b150
cmp dword [esp + 0x14], esi
je 0x40b111
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 4]
call fcn.00430770
test esi, esi
jne 0x40b179
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.0040b320
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fc05
add esp, 0xc58
ret 4

Function at 0x40b220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x40b2c1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40b2c1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b255
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
pop edi
ret
push esi
push edi
call fcn.0045189c
mov esi, eax
push 0x5c
push esi
call fcn.004518f0
add esp, 0xc
test eax, eax
jne 0x40b27c
push 0x2f
push esi
call fcn.004518f0
add esp, 8
test eax, eax
je 0x40b2bc
push esi
mov byte [eax], 0
call fcn.0040b220
add esp, 4
test al, al
push esi
jne 0x40b29a
call fcn.0045191d
add esp, 4
pop esi
xor al, al
pop edi
ret
call fcn.0045191d
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40b2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b295
pop esi
mov al, 1
pop edi
ret
xor al, al
pop edi
ret
Function at 0x40b320
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x40b34d
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40b3bb
lea ecx, [esp + 0x18]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40b3bb
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40b3bb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x30
ret
Function at 0x40b6a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46fc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [0x49e30c]
mov esi, dword [0x49e308]
cmp esi, eax
mov edi, eax
jbe 0x40b70f
call fcn.0045160c
mov eax, dword [0x49e30c]
mov esi, dword [0x49e308]
cmp esi, eax
jbe 0x40b70f
call fcn.0045160c
mov eax, dword [0x49e30c]
cmp esi, edi
je 0x40b738
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + esi]
jle 0x40b732
push ecx
push edi
push ecx
push esi
call fcn.00450844
add esp, 0x10
mov dword [0x49e30c], ebx
xor eax, eax
push 9
push str.poker.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
call fcn.00401690
xor esi, esi
push 0x228
lea eax, [esp + 0x3c]
push esi
mov dword [esp + 0x280], esi
push eax
mov dword [esp + 0x40], esi
call fcn.00454210
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x40b7a9
cmp dword [esp + 0x30], 8
jb 0x40b7a2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00433096
add esp, 4
xor al, al
jmp 0x40b852
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b818
lea eax, [esp + 0x58]
test eax, eax
je 0x40b809
lea edx, [eax + 2]
jmp 0x40b7d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b7d0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x58]
push ecx
mov edi, eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
call fcn.00409ea0
test eax, eax
jne 0x40b809
lea ebx, [esp + 0x3c]
mov esi, 0x49e304
call fcn.00412410
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b7c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x49e308]
test ecx, ecx
jne 0x40b82d
xor eax, eax
jmp 0x40b837
mov eax, dword [0x49e30c]
sub eax, ecx
sar eax, 2
test eax, eax
seta bl
cmp dword [esp + 0x30], 8
jb 0x40b850
mov eax, dword [esp + 0x1c]
push eax
call fcn.00433096
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0044fc05
mov esp, ebp
pop ebp
ret
Function at 0x40b880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x49e30c]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x49e308]
cmp edi, eax
jbe 0x40b8a3
call fcn.0045160c
mov eax, dword [0x49e30c]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x49e304
mov ebx, ecx
cmp dword [0x49e308], eax
mov esi, eax
jbe 0x40b8c4
call fcn.0045160c
mov eax, dword [0x49e30c]
test ebx, ebx
je 0x40b8d0
cmp ebx, 0x49e304
je 0x40b8da
call fcn.0045160c
mov eax, dword [0x49e30c]
cmp edi, esi
je 0x40b924
test ebx, ebx
jne 0x40b8e7
call fcn.0045160c
cmp edi, dword [ebx + 8]
jb 0x40b8f1
call fcn.0045160c
mov eax, dword [edi]
push eax
push 0
push 1
call ebp
mov esi, eax
test esi, esi
je 0x40b910
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebx + 8]
jb 0x40b91a
call fcn.0045160c
mov eax, dword [0x49e30c]
add edi, 4
jmp 0x40b8b0
cmp dword [0x49e308], eax
mov edi, eax
jbe 0x40b938
call fcn.0045160c
mov eax, dword [0x49e30c]
mov esi, dword [0x49e308]
cmp esi, eax
jbe 0x40b94c
call fcn.0045160c
mov eax, dword [0x49e30c]
cmp esi, edi
je 0x40b975
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + esi]
jle 0x40b96f
push ecx
push edi
push ecx
push esi
call fcn.00450844
add esp, 0x10
mov dword [0x49e30c], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret