joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe341b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e34140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e34140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e34140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e34140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe34bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe34c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe4687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe34c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe34c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x406dc0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x543fcc]
push esi
mov dword [esp + 0x20c], eax
call fcn.0040d020
call fcn.0040d020
call fcn.0040c440
movsx eax, al
push eax
call fcn.0040c330
movsx ecx, al
push ecx
push 0x53618c
push str._s_02d_02d
lea edx, [esp + 0x14]
push 0x103
push edx
call fcn.004edc35
add esp, 0x18
lea eax, [esp + 4]
push eax
push 1
push 0
mov byte [esp + 0x113], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406e56
push str.GameServer_already_operating_now._please_shutdown_and_restart
push 0x50
push str.D:ProjectBranch1700ServerRylServerProjectRylGameServerRylGameServerMain.cpp
push str.WinMain
push 5
push 0x5637d0
call fcn.0040e630
add esp, 0x18
jmp 0x406efe
push edi
push 0x406bd0
call fcn.004ee596
push 0x406c90
call fcn.004edd55
add esp, 8
push 7
call fcn.00414b60
mov ecx, eax
call fcn.00414a00
call fcn.00414b60
mov dword [eax + 0x40], 0x406d50
call fcn.00414b60
mov dword [eax + 0x10648], 2
call fcn.00405030
mov edi, eax
call fcn.0040d020
call fcn.0040d020
call fcn.0040c440
movsx ecx, al
push ecx
call fcn.0040c330
movsx edx, al
push edx
lea eax, [esp + 0x114]
push str.RylGameServer_Zone__d_Channel__d
push eax
call fcn.004ee183
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 0x228]
add esp, 0x10
push 0x65
push 0x6f
push ecx
lea edx, [esp + 0x118]
push edx
push eax
mov ecx, edi
call fcn.0040a200
test al, al
je 0x406efd
mov ecx, edi
call fcn.0040a320
pop edi
test esi, esi
je 0x406f09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20c]
xor eax, eax
pop esi
call fcn.004eee51
add esp, 0x20c
ret 0x10

Function at 0x407110
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x504e58
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push 0x64
push edi
mov ecx, esi
call fcn.00409c30
mov dword [esp + 0xc], 0
mov dword [esi], 0x536344
mov dword [esi + 0x14], edi
call fcn.00425c10
mov dword [esi + 0x18], eax
call fcn.0044d1f0
mov dword [esi + 0x1c], eax
mov eax, dword [0x6b5818]
mov dword [esi + 0x20], eax
call fcn.00464e50
mov dword [esi + 0x24], eax
call fcn.0045e6e0
mov dword [esi + 0x28], eax
call fcn.004720f0
mov dword [esi + 0x2c], eax
call fcn.0046f250
mov dword [esi + 0x30], eax
call fcn.0045dad0
mov dword [esi + 0x34], eax
call fcn.00469540
mov dword [esi + 0x38], eax
call fcn.0046b940
push fcn.004082b0
push 0x406f30
push 0xe
push 0x18
lea ecx, [esi + 0x40]
push ecx
mov dword [esi + 0x3c], eax
call fcn.004ee664
mov dword [esi + 0x190], fcn.0046fe20
mov dword [esi + 0x194], fcn.0046f570
mov dword [esi + 0x198], fcn.0046f3b0
lea ecx, [esi + 0x50]
xor eax, eax
nop
mov edx, dword [eax + 0x54514c]
mov dword [ecx], edx
add eax, 8
add ecx, 0x18
cmp eax, 0x70
jb 0x4071d0
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x40a030
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x42c
mov eax, dword [0x543fcc]
push ebx
push esi
mov dword [esp + 0x430], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
push 0x103
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esi + 0x44]
push ecx
push 0x534f6c
lea edx, [esp + 0x12c]
push 0x103
push edx
mov byte [esp + 0x133], bl
call fcn.004edc35
add esp, 0x10
mov byte [esp + 0x227], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x534f6c
lea eax, [esp + 0x230]
push 0x207
push eax
call fcn.004edc35
mov ecx, dword [esi + 0x14]
add esp, 0x10
push 0x428
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, esi
mov byte [esp + 0x437], bl
mov byte [esp + 0x10], 0xff
mov byte [esp + 0x11], 0x30
mov word [esp + 0x12], 0x428
mov dword [esp + 0x14], ebx
mov word [esp + 0x1a], bx
mov word [esp + 0x18], bx
call fcn.00409bb0
mov ecx, dword [esp + 0x430]
pop esi
pop ebx
call fcn.004eee51
add esp, 0x42c
ret

Function at 0x40c330
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x108
mov eax, dword [0x543fcc]
push ebx
mov dword [esp + 0x108], eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x534f6c
lea eax, [esp + 0xc]
push 0x103
push eax
call fcn.004edc35
add esp, 0x10
test eax, eax
jge 0x40c3a0
push str.CommandLine_Parse_failed___Zone
push 0x2f7
push str.D:ProjectBranch1700ServerRylServerProjectRylServerLibraryUtilitySetupServerSetup.cpp
push str.CServerSetup::GetZoneFromCmdLine
push 5
push 0x5637d0
call fcn.0040e630
add esp, 0x18
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004eee51
add esp, 0x108
ret
lea ecx, [esp + 4]
push str.__r_n_t
push ecx
call fcn.004edc8c
add esp, 8
test eax, eax
je 0x40c38a
push esi
push edi
jmp 0x40c3c0
mov esi, eax
mov edi, 0x507518
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40c3d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c3ed
push str.__r_n_t
push eax
call fcn.004edc8c
add esp, 8
test eax, eax
jne 0x40c418
push str.__r_n_t
push 0
call fcn.004edc8c
add esp, 8
test eax, eax
jne 0x40c3c0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004eee51
add esp, 0x108
ret
push eax
call fcn.004edded
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebx
call fcn.004eee51
add esp, 0x108
ret
Function at 0x40c440
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x108
mov eax, dword [0x543fcc]
push ebx
mov dword [esp + 0x108], eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x534f6c
lea eax, [esp + 0xc]
push 0x103
push eax
call fcn.004edc35
add esp, 0x10
test eax, eax
jge 0x40c4b0
push str.CommandLine_Parse_failed___Channel
push 0x31b
push str.D:ProjectBranch1700ServerRylServerProjectRylServerLibraryUtilitySetupServerSetup.cpp
push str.CServerSetup::GetChannelFromCmdLine
push 5
push 0x5637d0
call fcn.0040e630
add esp, 0x18
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004eee51
add esp, 0x108
ret
lea ecx, [esp + 4]
push str.__r_n_t
push ecx
call fcn.004edc8c
add esp, 8
test eax, eax
je 0x40c49a
push esi
push edi
jmp 0x40c4d0
mov esi, eax
mov edi, 0x507568
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40c4e7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c4fd
push str.__r_n_t
push eax
call fcn.004edc8c
add esp, 8
test eax, eax
jne 0x40c528
push str.__r_n_t
push 0
call fcn.004edc8c
add esp, 8
test eax, eax
jne 0x40c4d0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004eee51
add esp, 0x108
ret
push eax
call fcn.004edded
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebx
call fcn.004eee51
add esp, 0x108
ret
Function at 0x40dca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ffe08
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
movzx eax, byte [esi]
push edi
xor edi, edi
test eax, eax
mov ebx, ecx
mov ecx, esi
je 0x40dce0
imul edi, edi, 0x1003f
inc ecx
add edi, eax
movzx eax, byte [ecx]
test eax, eax
jne 0x40dcd0
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
fld qword [esp + 0x8c]
fdiv qword [ebx + 0x28]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
lea ecx, [ebx + 0x30]
push edx
mov dword [esp + 0x88], 0
fstp qword [esp + 0x94]
call fcn.0040d2d0
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esp + 0x1c]
je 0x40dd8b
jmp 0x40dd30
mov esi, dword [ebp + 0x38]
mov eax, dword [esp + 0x88]
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40dd64
test cl, cl
je 0x40dd60
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40dd64
add eax, 2
add esi, 2
test cl, cl
jne 0x40dd40
xor eax, eax
jmp 0x40dd69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ddf2
lea ecx, [esp + 0x18]
call fcn.0040d0e0
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esp + 0x1c]
jne 0x40dd30
mov esi, dword [esp + 0x88]
fld qword [esp + 0x8c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edi
fst qword [esp + 0x20]
mov dword [esp + 0x40], esi
fst qword [esp + 0x28]
mov ecx, 0xa
fstp qword [esp + 0x30]
lea esi, [esp + 0x20]
lea edi, [esp + 0x50]
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], 1
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [ebx + 0x30]
call fcn.0040db50
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc
fld qword [esp + 0x8c]
fld st(0)
fadd qword [ebp + 0x18]
fstp qword [ebp + 0x18]
fcom qword [ebp + 0x20]
fnstsw ax
test ah, 5
jp 0x40de0e
fst qword [ebp + 0x20]
fcom qword [ebp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x40de24
mov ecx, dword [ebp + 0x34]
fstp qword [ebp + 0x28]
inc ecx
mov dword [ebp + 0x34], ecx
jmp 0x40ddd6
mov ecx, dword [ebp + 0x34]
fstp st(0)
inc ecx
mov dword [ebp + 0x34], ecx
jmp 0x40ddd6
Function at 0x40de30
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ffe28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x30]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.0040d240
mov dword [edi + 4], eax
mov byte [eax + 0x41], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
rdtsc
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub eax, edi
sbb ecx, edx
sub eax, 0x39
sbb ecx, ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
fild qword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
pop edi
fstp qword [esi + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40e310
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x543fcc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, ecx
lea esi, [ebx + 0x144]
push esi
mov dword [esp + 0x228], eax
call ebp
cmp eax, 0xffffffff
jne 0x40e361
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40e361
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x218]
call fcn.004eee51
add esp, 0x21c
ret
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1c]
movzx edx, word [esp + 0x1a]
movzx eax, word [esp + 0x18]
push ecx
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [ebx + 0x40]
push ecx
push str._s_04d__02d__02d__02d__02d__02d_
lea edx, [esp + 0x144]
push 0x104
push edx
call fcn.004edc35
xor edi, edi
push edi
lea eax, [esp + 0x150]
push eax
push esi
push str._s__s_04d.log
lea ecx, [esp + 0x58]
push 0x104
push ecx
call fcn.004edc35
add esp, 0x40
test eax, eax
jl 0x40e405
lea edx, [esp + 0x20]
push edx
call ebp
cmp eax, 0xffffffff
je 0x40e41f
inc edi
push edi
lea eax, [esp + 0x128]
push eax
push esi
push str._s__s_04d.log
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.004edc35
add esp, 0x18
test eax, eax
jge 0x40e3d3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x218]
call fcn.004eee51
add esp, 0x21c
ret
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea edx, [esp + 0x38]
push edx
mov dword [ebx + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004eee51
add esp, 0x21c
ret
Function at 0x40e460
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0xffffffff
mov dword [esp + 4], 0
jne 0x40e47a
call fcn.0040e310
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x248]
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 4]
add edx, ecx
mov eax, edx
cmp eax, 0x6400000
mov dword [esi + 0x30], edx
mov dword [esi + 0x38], 0
jbe 0x40e4c6
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040e310
mov dword [esi + 0x34], eax
pop esi
pop ecx
ret
Function at 0x4114f0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [0x543fcc]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test al, al
jne 0x41152c
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x10]
call fcn.004eee51
add esp, 0x14
ret 8
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 4]
mov esi, eax
cmp esi, 0xffffffff
je 0x41155a
mov eax, dword [edi + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41155a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop edi
call fcn.004eee51
add esp, 0x14
ret 8

Function at 0x411570
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [0x543fcc]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test al, al
jne 0x4115ac
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x10]
call fcn.004eee51
add esp, 0x14
ret 8
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 4]
mov esi, eax
cmp esi, 0xffffffff
je 0x4115fc
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4115f2
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4115fc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop edi
call fcn.004eee51
add esp, 0x14
ret 8

Function at 0x4116e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x108
mov eax, dword [0x543fcc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
push 0xff
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x41179f
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x117], al
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0x10], eax
je 0x41179f
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x41179f
mov edi, dword [esp + 0x11c]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0x120]
mov ebx, dword [edx]
dec eax
push eax
push ebx
call ebp
push eax
push edi
call fcn.004ee030
mov eax, dword [esp + 0x12c]
add esp, 0xc
cmp bl, 0xa
mov byte [edi + eax - 1], 0
je 0x411787
cmp bl, 0xac
jne 0x41177d
cmp bh, 0x10
jb 0x41179b
cmp bh, 0x1f
ja 0x41179b
jmp 0x411787
cmp bl, 0xc0
jne 0x41179b
cmp bh, 0xa8
jne 0x41179b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + esi*4 + 4]
inc esi
test ecx, ecx
jne 0x411740
test esi, esi
je 0x41179f
mov al, 1
jmp 0x4117a1
xor al, al
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004eee51
add esp, 0x108
ret 8
Function at 0x4119c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add eax, eax
add esp, 0x24
ret

Function at 0x412720
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x500168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x543fcc]
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x6b4fc4
xor ebx, ebx
push 0x10
mov dword [esp + 0x1b8], ebx
call fcn.004ee249
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x1b0], 1
je 0x412788
mov ecx, eax
call fcn.0041da20
jmp 0x41278a
xor eax, eax
push 0x6b4fc4
push 0x21c
mov dword [edi + 0x20], eax
call fcn.004ee249
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x1b0], 2
je 0x4127b8
mov ecx, eax
call fcn.004183a0
jmp 0x4127ba
xor eax, eax
push 0x6b4fc4
push 0x8c
mov dword [edi + 0x24], eax
call fcn.004ee249
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x1b0], 3
je 0x4127e8
mov ecx, eax
call fcn.0041d360
jmp 0x4127ea
xor eax, eax
lea esi, [edi + 0x2c]
mov ecx, esi
mov byte [esp + 0x1b0], bl
mov dword [edi + 0x28], eax
call fcn.00456c80
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea esi, [edi + 0x38]
mov ecx, esi
mov byte [esp + 0x1b0], 4
call fcn.004530a0
mov dword [esi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
lea eax, [esp + 0x14]
push eax
mov dword [esi + 8], ebx
push 0x202
mov dword [edi + 0x44], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x1a8]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19c]
pop ebx
call fcn.004eee51
add esp, 0x1a8
ret
Function at 0x413470
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push 0x1c
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41348f
pop ebx
add esp, 0x20
ret
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4134a0
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x413498
mov ecx, dword [esi + 0x3c]
movzx eax, word [ecx + esi + 0x14]
add ecx, esi
push ebp
push edi
lea edi, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
mov eax, esi
cdq
mov esi, eax
mov ebp, edx
mov eax, ebx
cdq
sub eax, esi
sbb edx, ebp
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], ecx
jbe 0x413519
lea ebx, [edi + 0x10]
mov ecx, dword [ebx]
mov esi, dword [ebx - 8]
cmp ecx, esi
mov edi, dword [ebx - 4]
ja 0x4134f2
mov ecx, esi
xor esi, esi
cmp edx, esi
jb 0x41350d
ja 0x4134fe
cmp eax, edi
jb 0x41350d
lea esi, [ecx + edi]
xor ecx, ecx
cmp edx, ecx
jb 0x413523
ja 0x41350d
cmp eax, esi
jbe 0x413523
mov ecx, dword [esp + 0x10]
inc ebp
add ebx, 0x28
cmp ebp, ecx
jb 0x4134e4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
inc ebp
sub eax, edi
pop edi
mov dword [ecx], ebp
pop ebp
pop esi
mov dword [edx], eax
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x413a30
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x938
mov eax, dword [0x543fcc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x938], eax
push 0x104
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call esi
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call fcn.004ef5dc
add esp, 8
test eax, eax
je 0x413a8d
mov byte [eax], 0
lea edx, [esp + 0x62c]
push edx
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x738]
push ecx
lea edx, [esp + 0x840]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004ef647
push 0x104
lea ecx, [esp + 0x338]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.004ef549
add esp, 0x20
push 0x104
lea eax, [esp + 0x220]
push eax
push 0
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x52c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, dword [esp + 0x948]
lea edx, [esp + 4]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.00413470
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xc]
add esp, 0x14
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call fcn.004131e0
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x540]
push eax
lea ecx, [esp + 0x440]
push ecx
mov ecx, dword [esp + 0x964]
lea edx, [esp + 0x23c]
push edx
mov edx, dword [esp + 0x964]
lea eax, [esp + 0x38]
push eax
push str._______________________________________________________________________________r_n____Basic_Information_r_n_______________________________________________________________________________r_n_r_nProgram_Name_:__s_r_nEXE__________:__s_r_nUser_________:__s_r_nComputer_____:__s_r_n_r_nProgram______:__s_r_nException____:__08x___s__r_nFault_Address:__08x__02X:_08x_r_n_r_n_r_n
push ecx
push edx
call fcn.004edc35
mov ecx, dword [esp + 0x96c]
add esp, 0x34
pop esi
call fcn.004eee51
add esp, 0x938
ret

Function at 0x415150
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x204
mov eax, dword [0x543fcc]
push esi
mov dword [esp + 0x204], eax
push 0x200
mov esi, ecx
mov ecx, dword [esi + 0x30]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x4151c0
mov ecx, dword [esi + 0xc8]
push edi
push eax
lea edx, [esp + 0xc]
push edx
call fcn.0040f2c0
mov edi, eax
test edi, edi
je 0x4151b1
lea eax, [esp + 8]
push eax
push esi
call fcn.00415030
mov ecx, dword [esi + 0xc4]
add esp, 8
push edi
call fcn.00404fb0
jmp 0x4151bf
push str.Cant_recognize_command._Please_reinput.
push esi
call fcn.00415030
add esp, 8
pop edi
mov ecx, dword [esi + 0x30]
push 0x534f93
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esp + 0x204]
pop esi
call fcn.004eee51
add esp, 0x204
ret