joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.004089b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x402022
cmp dword [esp + 4], 5
jbe 0x402022
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040757a
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.0040757a
add esp, 0x98
ret

Function at 0x4020e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [esp + 0x128], 0
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
je 0x402144
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x40215c
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x40219c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402173
mov ecx, dword [esp + 0x10]
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push 0
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call ebp
call fcn.00401fc0
test eax, eax
je 0x40222a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareClassesVirtualStoreMACHINE_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20007
push 0
lea eax, [esp + 0x2c]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4021fe
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
lea edx, [esp + 0x2c]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40222a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402203
mov ecx, dword [esp + 0x10]
sub eax, edx
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push 0
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov ecx, dword [esp + 0x124]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0040757a
add esp, 0x118
ret
Function at 0x402250
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x10c], eax
cmp dword [esp + 0x120], 0
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x14], eax
je 0x4022ac
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4022c0
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push esi
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x4022e1
lea eax, [esp + 0x10]
push eax
push 2
push 0
push esi
push reloc.WSOCK32.dll_bind
call edi
mov ebx, eax
test ebx, ebx
jne 0x402308
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x130]
push ecx
push 4
push 0
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401fc0
test eax, eax
je 0x40237f
push esi
lea edx, [esp + 0x1c]
push str.SoftwareClassesVirtualStoreMACHINE_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20007
push 0
lea ecx, [esp + 0x24]
push ecx
push bind
call edi
test eax, eax
je 0x40235a
lea edx, [esp + 0x10]
push edx
push 3
push 0
lea eax, [esp + 0x24]
push eax
push bind
call edi
test eax, eax
jne 0x40237f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x130]
push ecx
push 4
push 0
push edx
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0040757a
add esp, 0x110
ret
Function at 0x4032a0
Capabilities:
Create udp socket
Get hostname
Get session user name
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x2e4
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x2e0], eax
lea eax, [esp + 0x150]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40342b
push esi
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x403425
push edi
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x20
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_setsockopt
xor eax, eax
push 0x10
lea edx, [esp + 0x14]
push edx
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x1c], 2
mov word [esp + 0x1e], di
mov dword [esp + 0x20], edi
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x40341e
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], edi
call sub.WSOCK32.dll_ioctlsocket
push 0x126
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004089b0
mov dl, byte [esp + 0x2fc]
mov ax, word [esp + 0x300]
add esp, 0xc
lea ecx, [esp + 0x8a]
mov byte [esp + 0x30], dl
push ecx
lea edx, [esp + 0x92]
push edx
mov byte [esp + 0x39], 3
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], 0xd1da
mov dword [esp + 0x42], edi
mov dword [esp + 0x92], 0x20
mov dword [esp + 0x4e], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4033be
mov dword [esp + 0x8a], edi
lea eax, [esp + 0x46]
push eax
lea ecx, [esp + 0x4e]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4033d6
mov dword [esp + 0x46], edi
push 0x10
xor eax, eax
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push 0x126
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x4e], 0x126
mov word [esp + 0x38], 2
mov word [esp + 0x3a], 0x1d04
mov dword [esp + 0x3c], 0xffffffff
call sub.WSOCK32.dll_sendto
push esi
call sub.WSOCK32.dll_closesocket
pop edi
call sub.WSOCK32.dll_WSACleanup
pop esi
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0040757a
add esp, 0x2e4
ret
Function at 0x404200
Capabilities:
Query service status

Disassembly:
sub esp, 0xb8
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0xb4], eax
xor eax, eax
push ebp
xor ebp, ebp
cmp dword [0x41c5d4], ebp
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
je 0x404258
mov eax, dword [0x41c5c8]
pop ebp
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0040757a
add esp, 0xb8
ret
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x34], 2
jne 0x4042f6
lea ecx, [esp + 4]
push ecx
push 0x20019
push ebp
push str.SYSTEMCurrentControlSetControlMultiuserSetup
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042f6
push edi
push 4
push str.ServicesActive
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x4042ea
push ebx
push esi
push 4
push str.HpService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebp
je 0x4042e5
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4042e2
cmp dword [esp + 0x18], 4
jne 0x4042e2
mov ebp, 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0xb8]
mov dword [0x41c5c8], ebp
mov eax, ebp
pop ebp
xor ecx, esp
mov dword [0x41c5d4], 1
call fcn.0040757a
add esp, 0xb8
ret

Function at 0x404770
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004090f0
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push 0x1000
lea eax, [esp + 0xc]
push eax
push str.LSeriesLocation
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4047fd
cmp eax, dword [edi]
jae 0x4047fd
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4047c0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4047d1
sub eax, edx
add eax, 1
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040757a
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040757a
add esp, 0x1004
ret
Function at 0x4048b0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x94
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
xor ebp, ebp
cmp dword [0x41c5dc], ebp
push edi
mov dword [esp + 0x10], eax
je 0x4049a5
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.00404200
test eax, eax
jne 0x4049ca
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x4049a5
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQuerySessionInformationA
push ebx
call ebp
push str.WTSFreeMemory
push ebx
mov edi, eax
call ebp
test edi, edi
mov dword [esp + 0x1c], eax
je 0x40499e
test eax, eax
je 0x40499e
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xa
push 0xffffffffffffffff
push 0
call edi
test eax, eax
je 0x40499e
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40499e
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
cmp dword [esp + 0x14], eax
ja 0x40497c
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404967
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
jmp 0x40498b
push eax
push edi
push esi
call fcn.00408bd8
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x4049b1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040757a
add esp, 0x94
ret
call fcn.00404660
mov edi, eax
cmp edi, ebp
jle 0x4049a5
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [edi - 2]
push ecx
push str.SYSTEMCurrentControlSetControlMultiuserSetup
lea edx, [esp + 0x28]
push str._sStation_d
push edx
call ebp
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx]
push str.Station_Name
lea eax, [esp + 0x34]
push eax
push ecx
push esi
call fcn.00401d20
add esp, 0x20
test eax, eax
jne 0x404a1a
push edi
push str.Station__d
push esi
call ebp
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404a20
sub eax, edx
add eax, 1
mov dword [ebx], eax
mov eax, 1
jmp 0x4049b1
Function at 0x404a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push str.RemoteIniPath
call fcn.00402040
push eax
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00401d20
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
test eax, eax
je 0x404ac8
lea ecx, [esp + 8]
push ecx
call edi
cmp eax, 0x10
jne 0x404ac8
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404aa0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040757a
add esp, 0x108
ret
push 0x104
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0040786b
add esp, 8
test eax, eax
je 0x404b12
mov ecx, dword [str.LskTSDat.ini]
mov dword [eax], ecx
mov edx, dword [0x410478]
mov dword [eax + 4], edx
mov ecx, dword [0x41047c]
mov dword [eax + 8], ecx
mov dx, word [0x410480]
mov word [eax + 0xc], dx
lea eax, [esp + 8]
push eax
call edi
cmp eax, 0xffffffff
jne 0x404b76
push str.Teacher
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00401d20
add esp, 0x10
test eax, eax
je 0x404b76
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.0040786b
add esp, 8
test eax, eax
je 0x404b76
mov ecx, dword [str.LskTSDat.ini]
mov dword [eax], ecx
mov edx, dword [0x410478]
mov dword [eax + 4], edx
mov ecx, dword [0x41047c]
mov dword [eax + 8], ecx
mov dx, word [0x410480]
mov word [eax + 0xc], dx
lea eax, [esp + 8]
push eax
call edi
cmp eax, 0xffffffff
je 0x404bca
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0040786b
add esp, 8
test eax, eax
je 0x404bca
mov byte [eax], 0
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404ba2
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040757a
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
mov byte [esi], 0
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040757a
add esp, 0x108
ret

Function at 0x404c30
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x404c93
push ebx
push esi
push 0xf01ff
push str.LanSchoolStudent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x404c8e
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x40757a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416b74]
jne 0x407584
repz ret
jmp fcn.0040a59f

Function at 0x40b573
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x417600]
je 0x40b58e
inc edi
cmp edi, 0x17
jb 0x40b57f
cmp edi, 0x17
jae 0x40b70e
push ebp
push 3
call fcn.0040eda0
cmp eax, 1
pop ecx
je 0x40b6da
push 3
call fcn.0040eda0
test eax, eax
pop ecx
jne 0x40b5c2
cmp dword [0x4170a0], 1
je 0x40b6da
cmp ebx, 0xfc
je 0x40b70d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41cae8
push ebp
call fcn.0040c7e9
add esp, 0xc
test eax, eax
je 0x40b5f8
push esi
push esi
push esi
push esi
push esi
call fcn.0040a400
add esp, 0x14
push 0x104
mov esi, 0x41cb01
push esi
push 0
mov byte [0x41cc05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b63c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c7e9
add esp, 0xc
test eax, eax
je 0x40b63c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a400
add esp, 0x14
push esi
call fcn.0040c280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b681
push esi
call fcn.0040c280
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41cdfc
push 0x411574
sub ecx, eax
push ecx
push eax
call fcn.0040c736
add esp, 0x14
test eax, eax
je 0x40b681
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a400
add esp, 0x14
jmp 0x40b683
xor esi, esi
push 0x411570
push ebx
push ebp
call fcn.0040c67b
add esp, 0xc
test eax, eax
je 0x40b6a3
push esi
push esi
push esi
push esi
push esi
call fcn.0040a400
add esp, 0x14
push dword [edi*8 + 0x417604]
push ebx
push ebp
call fcn.0040c67b
add esp, 0xc
test eax, eax
je 0x40b6c5
push esi
push esi
push esi
push esi
push esi
call fcn.0040a400
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ebe3
add esp, 0xc
jmp 0x40b70d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40b70d
cmp ebp, 0xffffffff
je 0x40b70d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x417604]
push dword [esi]
call fcn.0040c280
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40ebe3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b852
xor ebx, ebx
cmp dword [0x41cf84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40ecb9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ed99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41202c
push edi
call esi
cmp eax, ebx
je 0x40ed99
push eax
call fcn.0040b7e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41cf84], eax
call esi
push eax
call fcn.0040b7e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41cf88], eax
call esi
push eax
call fcn.0040b7e4
mov dword [0x41cf8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b300
test eax, eax
pop ecx
pop ecx
je 0x40ec87
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a400
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40ecb9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b7e4
cmp eax, ebx
pop ecx
mov dword [0x41cf94], eax
je 0x40ecb9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b7e4
pop ecx
mov dword [0x41cf90], eax
mov eax, dword [0x41cf90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ed3e
cmp dword [0x41cf94], ecx
je 0x40ed3e
push eax
call fcn.0040b85b
push dword [0x41cf94]
mov esi, eax
call fcn.0040b85b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ed3e
cmp edi, ebx
je 0x40ed3e
call esi
cmp eax, ebx
je 0x40ed0b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ed0b
test byte [ebp - 0x18], 1
jne 0x40ed3e
lea eax, [ebp - 0x10]
push eax
call fcn.0040b337
test eax, eax
pop ecx
je 0x40ed26
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a400
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ed35
or dword [ebp + 0x10], 0x200000
jmp 0x40ed79
or dword [ebp + 0x10], 0x40000
jmp 0x40ed79
mov eax, dword [0x41cf88]
cmp eax, dword [ebp - 8]
je 0x40ed79
push eax
call fcn.0040b85b
cmp eax, ebx
pop ecx
je 0x40ed79
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ed79
mov eax, dword [0x41cf8c]
cmp eax, dword [ebp - 8]
je 0x40ed79
push eax
call fcn.0040b85b
cmp eax, ebx
pop ecx
je 0x40ed79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41cf84]
call fcn.0040b85b
cmp eax, ebx
pop ecx
je 0x40ed99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ed9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408fcc
jl 0x408fc3
test edi, edi
jne 0x408fcc
xor eax, eax
xor edx, edx
jmp 0x40908d
cmp dword [ebx + 0x38], 0
je 0x408fe1
push eax
push edi
push dword [ebp + 8]
call fcn.00409093
jmp 0x40908d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409028
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409028
cmp eax, edi
jb 0x409002
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409ff0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40902e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409082
mov ecx, ebx
call fcn.00408721
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40906d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004130b2
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409082
jmp 0x409040
test edx, edx
je 0x409082
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004130b2
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x415c8c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4458c0
push 0x4458b8
push str.FlsAlloc
push 0x1f
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415cc0
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
jmp 0x415cc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415d0a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4458d0
push 0x4458c8
push str.FlsGetValue
push 0x21
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415d41
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415d49
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4458d8
push 0x4458d0
push str.FlsSetValue
push 0x22
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415d83
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]