joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410740
Capabilities:
Set registry value

Disassembly:
sub esp, 0x404
lea eax, [esp]
push esi
push eax
push 2
push 0
push 0x439dec
mov esi, ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4108d4
mov edx, dword [esp + 4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esi + 0x174]
push 4
push ecx
push 4
push eax
push 0x439de4
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x160]
push 4
push eax
push 4
push 0
push 0x439dd0
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x13c]
push 4
push edx
push 4
push 0
push 0x439dd8
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x150]
push 4
push ecx
push 4
push 0
push 0x439db0
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x15c]
push 4
push eax
push 4
push 0
push 0x4393e0
push ecx
call edi
mov edx, dword [esi + 0x14c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0x400
push ecx
push 1
push 0
push 0x439dc8
push edx
call edi
mov eax, dword [esi + 0x148]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x400
push edx
push 1
push 0
push 0x4395a4
push eax
call edi
mov ecx, dword [esi + 0x154]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0x400
push eax
push 1
push 0
push 0x439dc0
push ecx
call edi
mov edx, dword [esi + 0x158]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
mov ebx, dword [esi + 0x154]
mov esi, dword [esi + 0x158]
xor ecx, ecx
mov eax, dword [esi - 8]
mov ebp, dword [ebx - 8]
test eax, eax
jle 0x4108ad
mov eax, ecx
cdq
idiv ebp
mov al, byte [esp + ecx + 0x14]
mov dl, byte [edx + ebx]
add al, dl
mov byte [esp + ecx + 0x14], al
mov eax, dword [esi - 8]
inc ecx
cmp ecx, eax
jl 0x410893
mov eax, dword [esi - 8]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 3
push 0
push 0x4395cc
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x404
ret

Function at 0x4108e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 1
push 0
push 0x439dec
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41094f
lea ecx, [esp + 8]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x439e08
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41093c
cmp dword [esp + 0xc], 4
je 0x410944
mov dword [esp], 0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x410960
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
push 0x439dec
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4109a3
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push 0x439e08
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 4

Function at 0x410ed0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x240
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [esp + 0x250]
push edi
push 0x439e34
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10c]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
test ebp, ebp
je 0x411038
cmp ebp, 0xffffffff
je 0x411038
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov cl, byte [esp + 0x13d]
mov al, byte [esp + 0x13c]
test cl, cl
jne 0x410f3d
cmp al, 0x2e
je 0x410fce
mov dl, byte [esp + 0x13e]
test dl, dl
jne 0x410f50
cmp al, 0x2e
jne 0x410f50
cmp cl, al
je 0x410fce
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
push edi
push 0x43929c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x120]
add esp, 0x10
test al, 1
je 0x410f8c
and al, 0xfe
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x110]
test al, 0x10
mov eax, dword [esi + 0xf8]
je 0x411044
test eax, eax
je 0x410fc0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00411090
push 0x10000000
lea ecx, [esp + 0x14]
push 0x439e28
push ecx
mov ecx, esi
call fcn.004111e0
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, esi
call fcn.00410ed0
lea eax, [esp + 0x110]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410f23
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x110]
pop ebx
test al, 1
je 0x411002
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x411026
push edi
mov ecx, esi
call fcn.00411090
push 0x10000000
push 0x439e28
push edi
mov ecx, esi
call fcn.004111e0
mov eax, dword [esp + 0x254]
test eax, eax
je 0x411038
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
add esp, 0x240
ret 8
test eax, eax
je 0x41106a
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00411090
push 0x10000000
lea ecx, [esp + 0x14]
push 0x439e28
push ecx
mov ecx, esi
call fcn.004111e0
lea edx, [esp + 0x10]
push edx
call ebx
test eax, eax
jne 0x410fce
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41106a
Function at 0x4111e0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0xa20
push esi
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xa38]
lea edx, [esp + 0x230]
push ecx
push edx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4112c4
lea ecx, [esp + 0x224]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
add edi, 0x10
push edi
call fcn.0041614e
add esp, 4
mov esi, eax
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov eax, dword [esp + 0xa34]
lea edx, [esp + 0x228]
push edx
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
pop edi
je 0x4112c8
push 0
push esi
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4112c8
mov eax, dword [esp + 0xa28]
lea edx, [esp + 0x10]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x4112c8
push esi
call fcn.00416106
add esp, 4
mov eax, 1
pop esi
add esp, 0xa20
ret 0xc
mov esi, dword [esp + 4]
push esi
call fcn.00416106
add esp, 4
xor eax, eax
pop esi
add esp, 0xa20
ret 0xc
Function at 0x411a50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push 0x439e58
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
mov ecx, esi
call fcn.00424591
pop esi
add esp, 0x14
ret

Function at 0x412270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41227b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41237e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4306f4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4306f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4306f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4306f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4306f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4306f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4306f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4306f4]
xor eax, edx
inc ecx
dec edi
jne 0x412296
pop edi
test esi, esi
je 0x4123a0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4306f4]
xor eax, edx
inc ecx
dec esi
jne 0x412382
pop esi
pop ebx
not eax
ret
Function at 0x41b101
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c368
cmp edx, dword [eax]
je 0x41b123
add eax, 8
inc ecx
cmp eax, 0x43c3f8
jl 0x41b114
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c368]
jne 0x41b251
mov eax, dword [0x43e9bc]
cmp eax, 1
je 0x41b22b
test eax, eax
jne 0x41b154
cmp dword [0x43ba04], 1
je 0x41b22b
cmp edx, 0xfc
je 0x41b251
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b18b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419010
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419c10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b1ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419c10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x432d98
push edi
call fcn.0041cad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419010
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419020
lea eax, [ebp - 0xa0]
push 0x432d78
push eax
call fcn.00419020
push dword [esi + 0x43c36c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419020
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041cc10
add esp, 0x2c
pop edi
jmp 0x41b251
lea eax, [ebp + 8]
lea esi, [esi + 0x43c36c]
push 0
push eax
push dword [esi]
call fcn.00419c10
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 0x4206b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00415a00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42077b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42077b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42072e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420739
or bh, 8
and edi, 0x8000000
je 0x420754
mov eax, dword [0x44011c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42077b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x420b7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x420b9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x420bba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x423d03
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x423d33
push edi
call ebx
push eax
call fcn.00423699
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x423d5d
test byte [ebp - 4], 1
je 0x423d5d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x423d5d
push edi
call ebx
push eax
call fcn.00423699
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x423e03
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00423c50
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x423d8f
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00423c50
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x423da5
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00423c50
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x423dcf
push 0
call ebx
push eax
call fcn.00423699
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x423ded
push eax
call ebx
push eax
call fcn.00423699
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x423e01
push eax
call ebx
push eax
call fcn.00423699
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x423e2a
test byte [ebp - 4], 1
jne 0x423e2a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x423e2a
push edi
call ebx
push eax
call fcn.00423699
pop edi
pop ebx
leave
ret 8

Function at 0x4240a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4240c7
cmp dword [edi + 0x3c], 0
jne 0x4240c7
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042ae21
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004240f4
pop edi
pop esi
pop ebx
ret 8
Function at 0x4256e1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x425719
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.004234e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004234bb
jmp 0x425725
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x426d14
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 0x426d56
call fcn.0042ae21
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x426d56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x426d4d
xor eax, eax
jmp 0x426d5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00426d64
pop edi
pop esi
pop ebx
ret 4

Function at 0x42b9db
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 0x42ba09
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ba27
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b941
jmp 0x42ba27
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ba27
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042b941
test edi, edi
mov eax, edi
jne 0x42ba11
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42c2b4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
mov esi, ecx
push eax
call fcn.004163f0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_getsockname
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x42c313
push dword [ebp - 0x12]
call sub.WSOCK32.dll_ntohs
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ecx], eax
call sub.WSOCK32.dll_inet_ntoa
mov ecx, dword [ebp + 8]
push eax
call fcn.0042322b
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x42c4ae
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x498238
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x498284
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x498269
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x498279
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x498294
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4982d3
test ebx, ebx
je 0x4982a8
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x49829d
cmp ecx, 0xfff1
jb 0x4982b6
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4983be
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4982f8
sub ebx, 0x15b0
mov eax, 0x15b
jmp 0x498308
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
add edi, ecx
add esi, 0x10
dec eax
jne 0x498308
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
dec dword [ebp + 8]
jne 0x4982f8
test ebx, ebx
je 0x498497
cmp ebx, 0x10
jb 0x498464
mov eax, ebx
shr eax, 4
lea esp, [esp]