joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x472c0c
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b7f0]
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 0x4076b3
xor ebx, ebx
push 0xfe
lea ecx, [esp + 0x219]
push ebx
push ecx
mov byte [esp + 0x220], bl
call fcn.004557d0
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 0x407590
sub eax, edx
push eax
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a620
lea edx, [esp + 0x14]
lea esi, [esp + 0x4c]
mov dword [esp + 0x324], ebx
call fcn.0040ad20
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xe8]
mov byte [esp + 0x32c], 1
call fcn.00401cb0
cmp dword [esp + 0x64], 8
jb 0x4075eb
mov edx, dword [esp + 0x50]
push edx
call fcn.00434636
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 0x40761b
mov eax, dword [esp + 0x18]
push eax
call fcn.00434636
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 0x407630
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.0040a620
lea edx, [esp + 0x30]
lea esi, [esp + 0x68]
mov dword [esp + 0x324], 2
call fcn.0040ad20
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x104]
mov byte [esp + 0x32c], 3
call fcn.00401cb0
cmp dword [esp + 0x80], 8
jb 0x40768b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00434636
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x4076b3
mov edx, dword [esp + 0x34]
push edx
call fcn.00434636
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.004511c3
add esp, 0x314
ret 4
Function at 0x4076e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x24
mov eax, dword [0x49b7f0]
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 0x407736
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
add esi, 0x120
call fcn.00401720
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.004511c3
add esp, 0x24
ret

Function at 0x407770
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 0x407790
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 0x407850
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0x10
push 0
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4077d8
push edi
push 0
call esi
push eax
call ebp
add ebx, 1
cmp ebx, 3
jb 0x407790
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
test eax, eax
jne 0x407850
mov edx, dword [edi + 0x20]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4077e4
mov ebx, dword [esp + 0x18]
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebx + 0x13c]
call fcn.00401720
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 0x407810
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [ebx + 0x158]
call fcn.00401720
mov edi, dword [edi + 0x28]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407834
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [ebx + 0x174]
call fcn.00401720
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x407b10
Capabilities:
Check os version

Disassembly:
sub esp, 0x138
mov eax, dword [0x49b7f0]
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.00407c90
test eax, eax
je 0x407bb5
mov esi, dword [esp + 0x1c]
cmp esi, 5
ja 0x407bbd
jmp 0x407b70
push 0x11c
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.004557d0
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 0x407bea
add esi, 1
xor ebp, ebp
cmp esi, 5
jbe 0x407b70
jmp 0x407bbd
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0xc
mov dword [esp + 0x14], eax
jbe 0x407b55
xor al, al
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004511c3
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.00407df0
test eax, eax
je 0x407c06
mov al, 1
jmp 0x407c23
push 3
call fcn.00407df0
test eax, eax
je 0x407c15
mov al, 3
jmp 0x407c23
push 2
call fcn.00407df0
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 0x407c88
push 0x11c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004557d0
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 0x407c80
add esi, 1
cmp si, 4
jbe 0x407c33
mov al, 1
jmp 0x407bcf
mov edx, dword [esp + 0x18]
mov word [edx + 8], si
mov al, 1
jmp 0x407bcf

Function at 0x40aa40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.0040a910
push 2
push 0x483da0
lea ebx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.0040ad60
add eax, 1
push eax
mov eax, ebx
push eax
xor ecx, ecx
call fcn.00408d20
cmp dword [esp + 0x28], 8
jb 0x40aabd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00434636
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004511c3
add esp, 0x30
ret
Function at 0x40b0e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x49b7f0]
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 0x40b10e
xor al, al
jmp 0x40b240
test ebp, ebp
jne 0x40b115
lea ebp, [edi + 8]
push ebp
call fcn.0040b2e0
add esp, 4
test al, al
je 0x40b107
lea esi, [esp + 0x18]
call fcn.0040afe0
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x40b165
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.00452e3c
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.0040b2e0
add esp, 4
jmp 0x40b240
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.00452e3c
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.0040b390
test al, al
je 0x40b107
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 0x40b107
mov eax, dword [edi + 4]
push eax
call fcn.00431900
add esp, 4
test eax, eax
jne 0x40b107
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x460]
push eax
push ecx
call fcn.00431aa0
mov esi, eax
add esp, 8
test esi, esi
jle 0x40b213
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 0x40b210
cmp dword [esp + 0x14], esi
je 0x40b1d1
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 4]
call fcn.00431d10
test esi, esi
jne 0x40b239
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.0040b3e0
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.004511c3
add esp, 0xc58
ret 4

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

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x40b381
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40b381
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b315
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
pop edi
ret
push esi
push edi
call fcn.00452e5a
mov esi, eax
push 0x5c
push esi
call fcn.00452eb0
add esp, 0xc
test eax, eax
jne 0x40b33c
push 0x2f
push esi
call fcn.00452eb0
add esp, 8
test eax, eax
je 0x40b37c
push esi
mov byte [eax], 0
call fcn.0040b2e0
add esp, 4
test al, al
push esi
jne 0x40b35a
call fcn.00452edd
add esp, 4
pop esi
xor al, al
pop edi
ret
call fcn.00452edd
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40b37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b355
pop esi
mov al, 1
pop edi
ret
xor al, al
pop edi
ret
Function at 0x40b3e0
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 0x40b40d
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 0x40b47b
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 0x40b47b
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 0x40b47b
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 0x40b760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47128b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [0x4a030c]
mov esi, dword [0x4a0308]
cmp esi, eax
mov edi, eax
jbe 0x40b7cf
call fcn.00452bca
mov eax, dword [0x4a030c]
mov esi, dword [0x4a0308]
cmp esi, eax
jbe 0x40b7cf
call fcn.00452bca
mov eax, dword [0x4a030c]
cmp esi, edi
je 0x40b7f8
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + esi]
jle 0x40b7f2
push ecx
push edi
push ecx
push esi
call fcn.00451e02
add esp, 0x10
mov dword [0x4a030c], 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.00401720
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.004557d0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x40b869
cmp dword [esp + 0x30], 8
jb 0x40b862
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00434636
add esp, 4
xor al, al
jmp 0x40b912
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b8d8
lea eax, [esp + 0x58]
test eax, eax
je 0x40b8c9
lea edx, [eax + 2]
jmp 0x40b890
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b890
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.00409f70
test eax, eax
jne 0x40b8c9
lea ebx, [esp + 0x3c]
mov esi, 0x4a0304
call fcn.00412760
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b880
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4a0308]
test ecx, ecx
jne 0x40b8ed
xor eax, eax
jmp 0x40b8f7
mov eax, dword [0x4a030c]
sub eax, ecx
sar eax, 2
test eax, eax
seta bl
cmp dword [esp + 0x30], 8
jb 0x40b910
mov eax, dword [esp + 0x1c]
push eax
call fcn.00434636
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.004511c3
mov esp, ebp
pop ebp
ret
Function at 0x40b940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4a030c]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4a0308]
cmp edi, eax
jbe 0x40b963
call fcn.00452bca
mov eax, dword [0x4a030c]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x4a0304
mov ebx, ecx
cmp dword [0x4a0308], eax
mov esi, eax
jbe 0x40b984
call fcn.00452bca
mov eax, dword [0x4a030c]
test ebx, ebx
je 0x40b990
cmp ebx, 0x4a0304
je 0x40b99a
call fcn.00452bca
mov eax, dword [0x4a030c]
cmp edi, esi
je 0x40b9e4
test ebx, ebx
jne 0x40b9a7
call fcn.00452bca
cmp edi, dword [ebx + 8]
jb 0x40b9b1
call fcn.00452bca
mov eax, dword [edi]
push eax
push 0
push 1
call ebp
mov esi, eax
test esi, esi
je 0x40b9d0
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 0x40b9da
call fcn.00452bca
mov eax, dword [0x4a030c]
add edi, 4
jmp 0x40b970
cmp dword [0x4a0308], eax
mov edi, eax
jbe 0x40b9f8
call fcn.00452bca
mov eax, dword [0x4a030c]
mov esi, dword [0x4a0308]
cmp esi, eax
jbe 0x40ba0c
call fcn.00452bca
mov eax, dword [0x4a030c]
cmp esi, edi
je 0x40ba35
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + esi]
jle 0x40ba2f
push ecx
push edi
push ecx
push esi
call fcn.00451e02
add esp, 0x10
mov dword [0x4a030c], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c650
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x472a78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40c6fd
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40c711
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00412410
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x40]
push eax
push esi
push str.Unable_to_determine_free_disk_space__error__d:__s
push 0
push 0x191
push str.Utils::CheckDiskSpaceAvailability
call fcn.004306a0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x10], eax
fild qword [esp + 0xc]
and ecx, 0x80000000
test edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
fild qword [esp + 0xc]
fchs
faddp st(1)
fmul qword [0x48ca98]
fild dword [esp + 0x3c]
jge 0x40c75e
fadd qword [0x48ca90]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40c77a
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x415050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x473718
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.0040a720
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
push edx
sub esp, 0xc
mov dword [edi + 8], ecx
add ebx, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push ebx
call fcn.0040a7a0
add eax, 0x10
mov ecx, dword [esp + 0x40]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
sub ebp, esi
mov eax, 0x2aaaaaab
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
push eax
mov dword [edi + 8], ecx
push esi
xor ecx, ecx
call fcn.00414b70
add esp, 0x18
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415103
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x415290
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4a02f4], 0
push ebx
push esi
push edi
jne 0x415335
lea ebx, [ebp + 8]
lea eax, [esp + 0x10]
mov esi, 0x4a131c
call fcn.004162b0
mov edi, dword [esp + 0x10]
cmp edi, esi
mov ebx, dword [0x4a1320]
je 0x4152cd
call fcn.00452bca
mov esi, dword [esp + 0x14]
cmp ebx, esi
je 0x415335
test edi, edi
jne 0x4152de
call fcn.00452bca
cmp esi, dword [edi + 4]
jne 0x4152e8
call fcn.00452bca
lea ebx, [esi + 0x10]
lea eax, [esp + 0x10]
mov esi, 0x4a1310
call fcn.004162b0
mov esi, dword [esp + 0x10]
cmp esi, 0x4a1310
mov edi, dword [0x4a1314]
je 0x415310
call fcn.00452bca
mov ebx, dword [esp + 0x14]
cmp edi, ebx
je 0x415335
test esi, esi
jne 0x415321
call fcn.00452bca
cmp ebx, dword [esi + 4]
jne 0x41532b
call fcn.00452bca
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415340
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4a02f4], 0
push ebx
push esi
push edi
jne 0x4153e5
lea ebx, [ebp + 8]
lea eax, [esp + 0x10]
mov esi, 0x4a131c
call fcn.004162b0
mov edi, dword [esp + 0x10]
cmp edi, esi
mov ebx, dword [0x4a1320]
je 0x41537d
call fcn.00452bca
mov esi, dword [esp + 0x14]
cmp ebx, esi
je 0x4153e5
test edi, edi
jne 0x41538e
call fcn.00452bca
cmp esi, dword [edi + 4]
jne 0x415398
call fcn.00452bca
lea ebx, [esi + 0x10]
lea eax, [esp + 0x10]
mov esi, 0x4a1310
call fcn.004162b0
mov esi, dword [esp + 0x10]
cmp esi, 0x4a1310
mov edi, dword [0x4a1314]
je 0x4153c0
call fcn.00452bca
mov ebx, dword [esp + 0x14]
cmp edi, ebx
je 0x4153e5
test esi, esi
jne 0x4153d1
call fcn.00452bca
cmp ebx, dword [esi + 4]
jne 0x4153db
call fcn.00452bca
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4153f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov edi, eax
call fcn.004521fd
add esp, 4
cmp edi, ebx
mov dword [0x4a1328], eax
mov dword [0x4a132c], edx
jne 0x41541d
mov edi, 0x4a02f5
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
mov ecx, 0x49cf4c
call fcn.00401cb0
cmp dword [ebp + 0x14], ebx
jne 0x415443
push 1
push 0x485620
mov ecx, 0x4a1330
call fcn.00402ce0
push 0x48
mov dword [0x4a02f8], ebx
mov dword [0x4a02fc], ebx
call fcn.00434606
add esp, 4
cmp eax, ebx
je 0x41547a
mov ecx, 7
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ebx
mov word [eax + 0x24], bx
mov esi, eax
jmp 0x41547c
xor esi, esi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00401cb0
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x20]
call fcn.00401cb0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push 0x416150
push ebx
push ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 4
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x4154de
call fcn.00415510
xor eax, eax
test ebx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esp + 0x10]
mov eax, 0x4a1310
call fcn.004161c0
mov dword [eax], edi
lea ebx, [ebp + 0x14]
mov eax, 0x4a131c
call fcn.004161c0
mov ebx, dword [esp + 0x10]
mov dword [eax], ebx
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret