joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e882
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [eax], 0
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
push 0x200
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.HLVDD.DLL
lea eax, [ebp - 0x208]
push eax
call fcn.004202e0
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x41e95c
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x41e95c
push str.HLVDDGetVersion
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41e94f
call dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..FEnteDev
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x41ea23
mov word [ebp - 0x218], 0
mov word [ebp - 0x214], 0
mov ax, word [ebp - 0x214]
mov word [ebp - 0x216], ax
push 0
lea eax, [ebp - 0x20c]
push eax
push 6
lea eax, [ebp - 0x218]
push eax
push 6
lea eax, [ebp - 0x218]
push eax
push 0x9c402450
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x41e9f5
jmp 0x41ea23
xor eax, eax
mov ax, word [ebp - 0x216]
cmp eax, 0xfafa
je 0x41ea16
mov eax, dword [ebp + 8]
mov word [eax], 0x100
jmp 0x41ea23
mov ax, word [ebp - 0x214]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41ea2a
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [0x5c217c], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [ebp + 8]
mov dword [0x5c2180], eax
mov dword [ebp - 4], 0
jmp 0x41ea5d
inc dword [ebp - 4]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jge 0x41eac5
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx], 2
jne 0x41eac0
push str.ntvdm
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.00421830
add esp, 8
test eax, eax
jne 0x41eac0
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
shl eax, 4
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx + 4]
push eax
push 0x41eb3b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41ea5a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41eaca
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [0x5c217c], 0
mov dword [0x5c2180], 0
mov dword [ebp - 4], 0
jmp 0x41eaf6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8 + 4], 0
je 0x41eb21
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x41eb3b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41eaf3
mov eax, dword [0x5c217c]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x41eb34
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ef50
Capabilities:
Query service status

Disassembly:
call fcn.0041eee0
cmp eax, 2
je 0x41ef65
cmp eax, 3
je 0x41ef6a
mov eax, 9
ret
jmp 0x41eff0
jmp 0x41ef70
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x41ef91
mov eax, 2
pop edi
pop esi
pop ebx
ret
push 0xf01ff
push str.HLServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x41efb8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 2
pop edi
pop esi
pop ebx
ret
push 0x5c2160
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41efdb
cmp dword [0x5c2164], 4
mov esi, 3
jne 0x41efdb
mov esi, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
push 0
push str.HL_Server_for_Win32
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, 1
sbb eax, eax
add eax, 4
ret
Function at 0x41f995
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x41f9d9
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x41f9ec
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004202d0
add esp, 8
push str.StringFileInfo_
lea eax, [ebp - 0x810]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004202e0
add esp, 8
push 0x5bb828
lea eax, [ebp - 0x810]
push eax
call fcn.004202e0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.004200d1
add esp, 4
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0
mov eax, dword [ebp - 0x814]
push eax
call fcn.00420630
add esp, 0xc
mov eax, dword [ebp - 0x814]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x41faec
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x814]
push eax
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
jne 0x41fadc
push 0x5bb82c
mov eax, dword [ebp + 0x10]
push eax
call fcn.004202d0
add esp, 8
jmp 0x41faec
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x814]
push eax
call fcn.0041ffa0
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x41fb03
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422391
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5bb938
cmp edx, dword [eax]
je 0x4223b3
add eax, 8
inc ecx
cmp eax, 0x5bb9c8
jl 0x4223a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5bb938]
jne 0x4224e1
mov eax, dword [0x5bc8c0]
cmp eax, 1
je 0x4224bb
test eax, eax
jne 0x4223e4
cmp dword [0x5bb860], 1
je 0x4224bb
cmp edx, 0xfc
je 0x4224e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42241b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004202d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42245e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b8c0
push edi
call fcn.004201d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004202d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004202e0
lea eax, [ebp - 0xa0]
push 0x42b8a0
push eax
call fcn.004202e0
push dword [esi + 0x5bb93c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004202e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425257
add esp, 0x2c
pop edi
jmp 0x4224e1
lea eax, [ebp + 8]
lea esi, [esi + 0x5bb93c]
push 0
push eax
push dword [esi]
call fcn.00420150
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423dc6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x429efe
test byte [esp + 8], 2
je 0x429efe
mov dword [0x5bc8c4], 0xd
mov dword [0x5bc8c8], 5
jmp 0x429ed9
xor eax, eax
ret

Function at 0x429f79
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x429fa4
test byte [esp + 8], 0x80
je 0x429f93
and al, 0xfe
jmp 0x429f95
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x429fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423dc6
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x418ad5
Capabilities:
Encode data using xor

Disassembly:
leave
xchg edx, eax
invalid
in eax, dx
jle 0x418a7b
pop ebx
sbb dword [ebx - 0x4e22aeb8], esi
popal
add ch, byte [esp + ebp*4 + 0x1bc12f7a]
xor byte [eax - 0x5c], 9
bound eax, qword [eax]
jmp 0x418b6b
out dx, al
cmp bl, byte [ecx - 0x4d23c0d2]
dec eax
xchg esp, eax

Function at 0x40142f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x4045e0], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4045d0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x401341
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x40150c
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4045d8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4045d8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40150c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014f1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401fdf
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402008
mov al, byte [esi + 1]
inc esi
test al, al
je 0x402000
cmp al, 0x22
jne 0x401ff4
cmp byte [esi], 0x22
jne 0x402012
inc esi
jmp 0x402012
cmp al, 0x20
jle 0x402012
inc esi
cmp byte [esi], 0x20
jg 0x40200c
mov al, byte [esi]
test al, al
je 0x40201c
cmp al, 0x20
jle 0x402005
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040208c
push 0x404004
push section..data
call fcn.00402072
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40204c
movzx eax, word [ebp - 0x14]
jmp 0x40204f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004020a4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x2803110
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
push 0x100
push sym.DINPUT8.DLL_Tmp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, sym.DINPUT8.DLL_Tmp
mov eax, edx
dec edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x280312e
mov dword [edx], 0x4e49445c
mov dword [edx + 4], 0x38545550
mov byte [edx + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ebx, sym.DINPUT8.DLL_Procs
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DllGetClassObject
push esi
call edi
mov dword [ebx], eax
add ebx, 4
push str.DllCanUnloadNow
push esi
call edi
mov dword [ebx], eax
add ebx, 4
push str.DirectInput8Create
push esi
call edi
mov dword [ebx], eax
add ebx, 4
push str.DllRegisterServer
push esi
call edi
mov dword [ebx], eax
add ebx, 4
push str.DllUnregisterServer
push esi
call edi
mov dword [ebx], eax
add ebx, 4
add esp, 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9061a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x32001866
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3205cfc4]
jne 0x32001870
repz ret
jmp fcn.32043968

Function at 0x320059d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x320059df
pop dword [ebp - 0x50]
mov eax, 0x2f59048b
sub eax, 0xfd58aaac
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1f5dcaf3
sub dword [ebp - 0x60], 0xd10b85a8
mov dword [ebp - 0x5c], 0x1f8df247
sub dword [ebp - 0x5c], 0xed5aa602
mov dword [ebp - 0x58], 0xf5470ead
add dword [ebp - 0x58], 0x57053581
mov dword [ebp - 0x54], 0xb50a7b36
sub dword [ebp - 0x54], 0xb50a7b36
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x66402c83
add dword [ebp - 0x60], 0xe323cd3
mov dword [ebp - 0x5c], 0x7000ebce
add dword [ebp - 0x5c], 0xd16b75a7
mov dword [ebp - 0x58], 0xfc5f39b4
sub dword [ebp - 0x58], 0x98efcd48
mov dword [ebp - 0x54], 0x269d5418
add dword [ebp - 0x54], 0xd962abe8
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x49ed0
push 0
call eax
mov ecx, 0xb5889a
sub ecx, 0xb5330f
xor esi, esi
add esi, eax
mov edx, 0x7d07007f
sub edx, 0x4b00027f
add edx, dword [ebp - 0x50]
mov ebx, 0x1f500d4
add ebx, 0xe521fcf9
sub dword [ebp - 0x48], 0xe19f4d29
mov edi, dword [edx]
add dword [ebp - 0x40], 0xe3c015c1
add edi, ebx
xor dword [ebp - 0x18], 0xc0008c17
mov dword [esi], edi
sub dword [ebp - 0x30], edx
add esi, 0x4ccb7adc
sub esi, 0x4ccb7ad8
add edx, 4
loop 0x32005af9
add eax, 0x148ff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5b2a1c81
add ecx, 0xd6d5e37f
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x24
push 0
push 0x40e0d4
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40e0d8], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40e0d4], eax
call fcn.0040a510
call fcn.00408c5c
call fcn.004086c2
call fcn.0040866f
call fcn.004085d5
call fcn.00408420
call fcn.00408000
call fcn.0040613c
call fcn.004059e0
call fcn.00404efa
call fcn.00404e71
call fcn.00404b40
call fcn.0040321d
call fcn.00402d3c
call fcn.00402263
call fcn.004024f9
mov ebx, eax
and ebx, ebx
jne 0x4010b0
push 0
mov eax, str.Cant_initialize_the_network__
push eax
mov eax, str.Error
push eax
call fcn.0040229c
jmp 0x40119b
push 0xc80001
mov eax, str.FANUC_Backend
push eax
push 0x8c
push 0xfa
push dword [0x40e0e4]
push dword [0x40e0e0]
push 0xffffffff
call fcn.00403288
mov dword [0x40e0f4], eax
mov eax, str.RunProgram_1
push eax
push 0x32
push 0x96
push 0xa
push 0x28
push 0xffffffff
call fcn.00402f7d
mov dword [0x40e0e8], eax
mov eax, str.RunProgram_2
push eax
push 0x32
push 0x96
push 0x3c
push 0x28
push 0xffffffff
call fcn.00402f7d
mov dword [0x40e0ec], eax
call fcn.00409278
call fcn.004036ff
mov dword [0x40e0f0], eax
mov ebx, dword [0x40e0f0]
cmp ebx, 0x332c
jne 0x401182
call fcn.004087df
push eax
mov ebx, dword [0x40e0e8]
cmp ebx, dword [esp]
jne 0x40116c
push 1
call fcn.004011f2
jmp 0x401181
mov ebx, dword [0x40e0ec]
cmp ebx, dword [esp]
jne 0x401181
push 2
call fcn.004011f2
pop eax
mov ebx, dword [0x40e0f0]
cmp ebx, 0x333c
jne 0x401137
push dword [0x40e0f4]
call fcn.0040317b
push 0
call 0x4011ba
call fcn.0040a560
push dword [0x40e0d4]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00402438
call fcn.004024c9
call fcn.00402d21
call fcn.004031fa
call fcn.00404b33
call fcn.00404e65
call fcn.00408020
call fcn.00408663
call fcn.004086a4
call fcn.00409d66
call fcn.00408410
ret

Function at 0x402384
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4023d9
push dword [esp + 0x10]
push 0x402303
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e0f8]
test esi, esi
je 0x402432
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4023d1
cmp byte [esi + 0x10], 0
je 0x4023d1
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4023ad
jmp 0x402432
mov esi, dword [0x40e0f8]
test esi, esi
je 0x402432
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40242b
cmp byte [esi + 0x11], 0
je 0x402407
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40241e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x40e0f8
call fcn.0040a4c7
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4023e6
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4024f9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x40e10c], 0
jne 0x402525
push 0x402448
push 0x10
push 0x2c
mov dword [0x40e10c], edi
call fcn.00409ea7
mov dword [0x40e108], eax
cmp word [0x40e100], 0
jne 0x4025c1
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x402550
mov word [0x40e100], di
jmp 0x402558
xor eax, eax
mov word [0x40e100], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40e11c], eax
test eax, eax
je 0x4025c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x40e11c]
mov dword [0x40e110], eax
call esi
push str.getnameinfo
push dword [0x40e11c]
mov dword [0x40e114], eax
call esi
cmp dword [0x40e110], 0
mov dword [0x40e118], eax
pop esi
je 0x4025c1
cmp dword [0x40e114], 0
je 0x4025c1
test eax, eax
je 0x4025c1
mov dword [0x40e104], edi
movsx eax, word [0x40e100]
pop edi
add esp, 0x190
ret
Function at 0x402ad4
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
inc eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
cmp dword [edi], eax
jne 0x402b57
mov esi, dword [edi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WSOCK32.DLL_select]
test eax, eax
js 0x402b4e
je 0x402b53
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x402b53
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x402b4e
cmp dword [ebp + 8], ebx
je 0x402b4e
push 2
jmp 0x402b50
push 4
pop esi
jmp 0x402bb1
mov esi, ebx
jmp 0x402bb1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [ebp + 8], eax
test eax, eax
jle 0x402bb1
push 2
pop esi
push eax
push ebx
push dword [0x40e0d4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [edi + 0x18], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402bbc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x402be2
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x402c1f
cmp dword [esi + 0x14], ebx
je 0x402c1f
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x18]
jle 0x402bf2
mov edi, dword [esi + 0x18]
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
add esp, 0xc
add dword [esi + 0x1c], edi
cmp dword [esi + 0x18], ebx
jne 0x402c1f
push dword [esi + 0x14]
push ebx
push dword [0x40e0d4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x14], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc