joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4227e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x3c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp], eax
jne 0x42281b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
add esp, 0x3c
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov esi, dword [esp + 0x4c]
push edi
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x18], edx
push edx
push edx
push edx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
push 1
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x422872
mov edi, dword [esp + 0x14]
jmp 0x422878
call ebp
mov edi, eax
neg edi
test edi, edi
jge 0x4228f6
neg edi
cmp edi, 0x2733
jne 0x42290b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 0x22
push ecx
push esi
call ebx
cmp eax, 0xffffffff
je 0x42290b
mov edx, dword [esp + 0x5c]
push 1
push edx
push 1
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
mov edx, dword [esp + 0x10]
jne 0x422916
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x422912
mov eax, dword [esp + 0x20]
cmp eax, 0x20
je 0x422912
cmp eax, 2
jne 0x4228e7
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x422912
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call ebx
jmp 0x422830
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x10]
push edx
jmp 0x422921
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov edx, dword fs:[0x2c]
mov ecx, dword [0x47d614]
mov ecx, dword [edx + ecx*4]
pop edi
pop esi
pop ebp
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
Function at 0x422990
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp], eax
jne 0x4229cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
add esp, 0x30
ret
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x422a12
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
pop ebp
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x422ab5
cmp eax, 0x2733
jne 0x422ab5
mov ecx, dword [esp + 0x50]
push 1
push ecx
push 1
lea edx, [esp + 0x1c]
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x422a7a
call edi
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 4], eax
or esi, 0xffffffff
jmp 0x422ab5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x422a5d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x422ab3
mov edx, dword [0x47d614]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + edx*4]
mov dword [edx + 4], eax
or esi, 0xffffffff
jmp 0x422ab5
xor esi, esi
mov eax, dword [esp + 0x10]
push 0
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x422b10
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0xa0
mov eax, dword [0x479a50]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov edi, dword [esp + 0xac]
push edi
mov dword [esp + 0xa8], eax
call ebx
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x422bf9
mov eax, dword [esp + 0xb0]
test eax, eax
push esi
je 0x422bc3
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x422bc3
cmp dword [esp + 0x24], 2
jne 0x422bc3
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push 0x422ae0
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x422bc3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x422bc3
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x9c]
call fcn.00438707
add esp, 0xa0
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x422be7
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x9c]
call fcn.00438707
add esp, 0xa0
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop esi
mov ecx, dword [esp + 0xa4]
pop edi
pop ebx
call fcn.00438707
add esp, 0xa0
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x479a50]
push ebx
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x423177
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [esp + 0xc], eax
lea ebx, [ebx]
test eax, eax
je 0x4230fa
push 0x21
push eax
push esi
call ebx
push 1
push 0xfa0
push 1
lea eax, [esp + 0x18]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ecx, dword [esp + 0xc]
push 0
push ecx
push esi
call ebx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
xor edx, edx
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
push 1
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], 0x100
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x42314f
mov eax, dword [esp + 0x10]
jmp 0x423157
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
cmp eax, edi
mov eax, dword [esp + 0xc]
jg 0x4230d0
test eax, eax
je 0x42316e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x124]
call fcn.00438707
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423d50
Capabilities:
Connect to http server

Disassembly:
sub esp, 0x18
push edi
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x423d67
push edi
push str.CHttpToolA::OpenConnection:_hInternet_can_not_be_NULL.
call fcn.00423610
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x423d7a
push edx
push str.CHttpToolA::OpenConnection:_szServerAddr_can_not_be_NULL.
call fcn.00423610
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423d80
sub eax, esi
pop esi
mov dword [esp + 0x20], eax
push 0
jne 0x423d9c
push str.CHttpToolA::OpenConnection:_szServerAddr_can_not_be_an_empty_string.
call fcn.00423610
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0
push 3
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
jne 0x423de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [str.::InternetConnect_failed.]
push eax
push 0x193
push ecx
lea ecx, [esp + 0x10]
call fcn.004234c0
push 0x470d38
lea edx, [esp + 8]
push edx
call fcn.004392cf
pop edi
add esp, 0x18
ret

Function at 0x423f20
Capabilities:
Send data

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
jne 0x423f37
push 0
push str.CHttpToolA::InternetWriteFile:_hRequest_can_not_be_NULL.
call fcn.00423610
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x423f4b
push ebp
push str.CHttpToolA::InternetWriteFile:_pbyBuff_can_not_be_NULL.
call fcn.00423610
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x423f5f
push edi
push str.CHttpToolA::InternetWriteFile:_cbyBuff_can_not_be_zero.
call fcn.00423610
push esi
xor esi, esi
test edi, edi
jbe 0x423f92
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
push eax
call ebx
test eax, eax
je 0x423f99
add esi, dword [esp + 0x10]
cmp esi, edi
jb 0x423f70
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [str.::InternetWriteFile_failed.]
push eax
push 0x198
push ecx
lea ecx, [esp + 0x20]
call fcn.004234c0
push 0x470d38
lea edx, [esp + 0x18]
push edx
call fcn.004392cf
int3

Function at 0x424030
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x424043
push eax
push str.CHttpToolA::GetFileSize:_hFile_can_not_be_NULL.
call fcn.00423610
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push 0
jne 0x424058
push str.CHttpToolA::GetFileSize:_szFilePath_can_not_be_NULL.
call fcn.00423610
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x424076
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25d
call fcn.00423b90
pop esi
ret
Function at 0x424c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x479a50]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
jne 0x424c8f
push esi
push esi
push str.CHttpToolW::GetMimeType:_hFile_can_not_be_NULL.
call fcn.00424ab0
mov edi, dword [ebp + 0xc]
cmp edi, 0xfde9
je 0x424e82
cmp edi, 0xfde8
je 0x424e82
cmp esi, 0xffffffff
jne 0x424d03
mov eax, dword [str.application_octet_stream]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424cb7
sub eax, edx
inc eax
push eax
call fcn.0043a747
add esp, 4
test eax, eax
jne 0x424cd5
push 0x66
call fcn.004237c0
mov ecx, dword [str.application_octet_stream]
mov esi, eax
sub esi, ecx
nop
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x424ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00438707
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x25a
mov esi, eax
call fcn.00423740
add esp, 4
push eax
lea ecx, [ebp - 0x130]
call fcn.00423450
push 0x470d90
lea edx, [ebp - 0x130]
push edx
mov dword [ebp - 0x130], 0x463b50
mov dword [ebp - 0x120], 0x25a
mov dword [ebp - 0x11c], esi
call fcn.004392cf
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x424dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x25c
mov esi, eax
call fcn.00423740
add esp, 4
push eax
lea ecx, [ebp - 0x148]
call fcn.00423450
push 0x470d90
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x463b50
mov dword [ebp - 0x138], 0x25c
mov dword [ebp - 0x134], esi
call fcn.004392cf
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
mov dword [ebp - 0x118], 0
call sub.urlmon.dll_FindMimeFromData
test eax, eax
je 0x424e3f
mov eax, dword [str.application_octet_stream]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424e01
sub eax, edx
inc eax
push eax
call fcn.0043a747
add esp, 4
test eax, eax
jne 0x424e1f
push 0x66
call fcn.004237c0
mov ecx, dword [str.application_octet_stream]
mov esi, eax
sub esi, ecx
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x424e30
jmp 0x424cea
mov ecx, dword [ebp - 0x118]
push edi
push ecx
mov dword [ebp - 4], 0
call fcn.00424b50
mov edx, dword [ebp - 0x118]
add esp, 8
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
jmp 0x424cea
push 0
push 0
push str.CHttpToolW::GetMimeType:_CP_UTF8_and_CP_UTF7_can_not_be_used_for_the_CodePage_parameter.
call fcn.00424ab0
int3
Function at 0x428580
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 0xf0]
test eax, eax
je 0x42858f
jmp fcn.00427cb0
jmp fcn.00428060

Function at 0x42a4f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x42a502
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x47b1f8]
inc eax
cmp eax, 1
mov dword [0x47b1f8], eax
jne 0x42a527
push 0
call fcn.0043c918
xor eax, 0xbb40e64e
push eax
call fcn.0043c8e9
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.0042a6c0
add esp, 0xc
xor esi, esi
call fcn.0043c8f6
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.0042a640
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.0042a660
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x42a544
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.0042a6c0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.0042a640
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.0042a660
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x42a599
push edi
push ebp
call fcn.0042a640
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.0042a660
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.0042a640
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.0042a660
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x42a660
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x42a970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x4090]
test eax, eax
je 0x42a9db
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x42a9db
mov eax, 0xffffff78
push ebx
push ebp
sub eax, esi
push edi
lea ebp, [esi + 0x4094]
lea edi, [esi + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40a0]
push eax
push ebp
call fcn.0042a640
mov edx, dword [esi + 0x40a0]
xor ecx, ecx
mov cl, byte [edi]
mov ebx, eax
push ecx
push edx
push ebp
call fcn.0042a660
mov al, byte [edi]
add esp, 0x14
xor al, bl
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add eax, edi
cmp eax, ecx
jb 0x42a9a0
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x88]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [esi + 8]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp eax, ecx
je 0x42aa07
mov dword [esi + 0x6c], 0
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x6c], 0
xor eax, eax
pop esi
ret
Function at 0x42b020
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42b02f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4774fc]
test eax, eax
je 0x42b03d
call fcn.0042afc0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x42b13f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x47b1fc]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47b1fc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47b1fc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47b1fc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47b1fc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47b1fc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47b1fc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x47b1fc]
xor eax, ecx
inc esi
dec edi
jne 0x42b057
pop edi
test edx, edx
je 0x42b161
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x47b1fc]
xor eax, ecx
inc esi
dec edx
jne 0x42b143
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4315e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x431638
call fcn.00457c8b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x431638
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43162e
xor eax, eax
jmp 0x431751
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x431668
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x431668
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x43174e
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x431695
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042f475
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x43174e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4316de
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4316de
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4316d8
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042f475
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x43173e
and dword [ebp + 0xc], 0
jmp 0x43173e
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x43173e
push 0xc
call fcn.0044c572
mov esi, eax
test esi, esi
pop ecx
je 0x431720
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x431722
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x431739
push dword [ebp - 8]
call fcn.0044c065
jmp 0x43173e
call fcn.0044c03c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4316a3
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc