joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d8a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0xa5726c]
mov edi, eax
add esp, 8
test edi, edi
je 0x47d8f7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x47d90f
cmp esi, ebx
je 0x47d90f
cmp esi, 0x8000
ja 0x47d90f
cmp esi, ebx
jb 0x47d908
push esi
push edi
call dword [0xa5726c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x47d8c0
push ebp
call dword [0xa57268]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0xa57268]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
sub esp, 0x88
mov eax, dword [0xa57200]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4833d2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.00468700
add esp, 8
cmp esi, 0xffffffff
jne 0x4833f6
push str.Error_accept__ing_server_connect
push ebx
call fcn.00467b10
add esp, 8
mov eax, 0x1e
jmp 0x483465
push str.Connection_accepted_from_server_n
push ebx
call fcn.00467bf0
push 1
push esi
mov byte [edi + 0x514], 0
mov dword [edi + 0x424], esi
call fcn.00475bd0
add esp, 0x10
mov byte [edi + 0x7f0], 1
cmp dword [ebx + 0x610], 0
je 0x483463
push 1
push ebx
call fcn.004598e0
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.004598e0
add esp, 0x1c
test esi, esi
je 0x483463
push edi
call fcn.00483900
add esp, 4
mov eax, 0x2a
jmp 0x483465
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00452bc2
add esp, 0x88
ret
Function at 0x48a880
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48a8cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00467b10
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0048a490
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x48ab5e
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x48aa5e
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x48aa5e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aa5e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48aac9
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.0048a590
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x48ab1d
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00467b10
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.0048a8f0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48ab5b
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00467b10
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x49d780
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xa57264]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49d7a7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x49d7f2
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x49d7f6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x49d856
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x49d815
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x49d887
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push str.6Unknown_exception
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4e844f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x49d860
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x405ef7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x405f4f
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x405f4f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x405f4f
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405f78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x405fe6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fdd
cmp dword [ebp - 0xc], 4
jne 0x405fdd
cmp dword [ebp - 0x10], edi
je 0x405fdd
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
clc
mov dword [0x8e5304], edi
xor eax, eax
jmp 0x40600e
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [0x8e5304], edi
jge 0x406009
mov dword [0x8e5304], edi
call fcn.00405f53
test eax, eax
je 0x406009
emms
mov dword [0x8e5304], 1
mov eax, dword [0x8e5304]
pop edi
leave
ret

Function at 0x4060ee
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call sub.kernel32.dll_GetVersionExA
clc
test eax, eax
jne 0x406125
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x406147
cmp dword [ebp - 0x20], 4
ja 0x406151
jne 0x406141
cmp dword [ebp - 0x1c], 0xa
jb 0x406141
cmp word [ebp - 0x18], 0x55d
jae 0x406151
mov byte [ebp + 0x73], 1
jmp 0x406151
cmp dword [ebp - 0x14], 2
jne 0x406167
test bl, bl
je 0x406182
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x406172
dec eax
je 0x40616b
sub eax, 3
jne 0x406167
cmp byte [ebp + 0x73], 0
je 0x406193
xor eax, eax
jmp 0x40619b
call fcn.00406011
jmp 0x40619b
cmp byte [ebp + 0x73], 0
jne 0x406167
call fcn.00406049
and eax, 4
jmp 0x40619b
cmp dword [ebp + 0x7c], 0xa
je 0x406193
push dword [ebp + 0x7c]
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
jmp 0x40619b
call fcn.00406049
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x410f90
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.user32.dll_GetCursorPos]
push edi
call dword [sym.imp.user32.dll_GetActiveWindow]
push eax
call dword [sym.imp.user32.dll_ScreenToClient]
mov edi, dword [sym.imp.user32.dll_GetKeyState]
push 1
mov dword [esi + 0x1c], 0
call edi
test ah, ah
jns 0x410fc5
or dword [esi + 0x1c], 1
push 2
call edi
test ah, ah
jns 0x410fd1
or dword [esi + 0x1c], 2
push 4
call edi
test ah, ah
jns 0x410fdd
or dword [esi + 0x1c], 4
pop edi
pop esi
ret
Function at 0x425c40
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.0043cba0
mov eax, dword [esp + 0x4004]
test eax, eax
je 0x425c76
lea ecx, [esp + 0x4008]
push ecx
push eax
lea edx, [esp + 8]
push edx
call fcn.0043cbdd
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x4000
ret
Function at 0x429d40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429db0
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call sub.advapi32.dll_RegCloseKey
nop
test esi, esi
pop esi
jne 0x429db0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x429df4
cmp eax, 4
jne 0x429e0b
mov eax, str.._dat_data_s.afs
jmp 0x429df9
mov eax, str.._dat_data_e.afs
push eax
call sub.kernel32.dll_GetFileAttributesA
stc
cmp eax, 0xffffffff
je 0x429e0b
mov eax, 1
ret
xor eax, eax
ret

Function at 0x429e50
Capabilities:
Check if file exists
Get file attributes
Get geographical location

Disassembly:
sub esp, 0xc
push esi
push edi
push 8
lea eax, [esp + 0x10]
push eax
push 1
push 0x400
xor esi, esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push 0x8704b8
push edx
call fcn.0043bbe2
mov eax, dword [esp + 0x14]
and eax, 0xff
add esp, 0xc
sub eax, 9
je 0x429e9f
dec eax
jne 0x429ea1
mov esi, 4
mov eax, str.._dat_data_s.afs
jmp 0x429ea6
xor esi, esi
mov eax, str.._dat_data_e.afs
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesA]
push eax
call edi
cmp eax, 0xffffffff
jne 0x429ed9
xor esi, esi
test esi, esi
je 0x429ec6
cmp esi, 4
jne 0x429ed3
mov eax, str.._dat_data_s.afs
jmp 0x429ecb
mov eax, str.._dat_data_e.afs
push eax
call edi
cmp eax, 0xffffffff
jne 0x429ed9
inc esi
cmp esi, 7
jl 0x429eb6
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x429ef0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [esp]
push ecx
mov byte [esp + 6], 0
call sub.kernel32.dll_GetDriveTypeA
stc
cmp eax, 5
je 0x429f2e
cmp eax, 6
je 0x429f2e
mov eax, 1
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x42a320
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x86de1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push 0x410
lea eax, [esp + 0x2c]
push eax
push str.installdir
push str.SOFTWAREKONAMI7WP4
mov dword [esp + 0x860], ebx
call fcn.00429d40
add esp, 0x10
test eax, eax
je 0x42a3ea
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a381
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401470
mov edx, dword [esp + 0x20]
cmp edx, ebx
jbe 0x42a478
mov esi, dword [esp + 0x24]
cmp esi, 0x10
mov eax, dword [esp + 0x10]
mov ecx, eax
jae 0x42a3b8
lea ecx, [esp + 0x10]
cmp byte [ecx + edx - 1], 0x5c
je 0x42a478
cmp esi, 0x10
jae 0x42a3cc
lea eax, [esp + 0x10]
cmp byte [eax + edx - 1], 0x2f
je 0x42a478
push 0x8714e0
lea ecx, [esp + 0x10]
call fcn.0042a2f0
jmp 0x42a478
push 0x410
lea edx, [esp + 0x43c]
push edx
push ebx
call sub.kernel32.dll_GetModuleFileNameA
nop
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x410
lea edx, [esp + 0x444]
push edx
daa
call sub.kernel32.dll_GetFullPathNameA
cmp eax, ebx
je 0x42a457
cmp eax, 0x410
jae 0x42a457
mov eax, dword [esp + 8]
lea ecx, [esp + 0x28]
cmp eax, ecx
jbe 0x42a457
dec eax
lea edx, [esp + 0x28]
mov dword [esp + 8], eax
push edx
lea ecx, [esp + 0x10]
mov byte [eax], bl
call fcn.0042a2c0
push 0x8714e0
lea ecx, [esp + 0x10]
call fcn.0042a2f0
jmp 0x42a478
mov eax, 0x8714dc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a460
sub eax, edx
push eax
push 0x8714dc
lea ecx, [esp + 0x14]
call fcn.00401470
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x8e9084
call fcn.004013c0
mov eax, dword [0x8e9098]
cmp eax, ebx
jbe 0x42a4d3
mov edx, dword [0x8e909c]
cmp edx, 0x10
mov esi, dword [0x8e9088]
mov ecx, esi
jae 0x42a4ab
mov ecx, 0x8e9088
cmp byte [ecx + eax - 1], 0x5c
je 0x42a4c5
cmp edx, 0x10
mov ecx, esi
jae 0x42a4be
mov ecx, 0x8e9088
cmp byte [ecx + eax - 1], 0x2f
jne 0x42a4d3
push 1
dec eax
push eax
mov ecx, 0x8e9084
call fcn.00401300
mov eax, dword [0x8e909c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [0x8e9088]
jae 0x42a4eb
mov eax, 0x8e9088
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x14]
push ecx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004013c0
cmp dword [esp + 0x24], esi
pop esi
pop ebx
jb 0x42a523
mov edx, dword [esp + 8]
push edx
call fcn.0043b58d
add esp, 4
mov ecx, dword [esp + 0x840]
mov eax, edi
mov dword fs:[0], ecx
add esp, 0x84c
ret
Function at 0x42bef0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0xcc43fc]
sub esp, 0x9c
test eax, eax
je 0x42bf0b
mov eax, 1
add esp, 0x9c
ret
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x1f
mov edi, 0xcc4380
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ebx, 1
push eax
mov dword [0xcc43fc], ebx
mov dword [0xcc439c], 0x3f800000
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 5
jae 0x42bf52
mov byte [0xcc43e8], bl
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x42bf76
cmp eax, ebx
je 0x42bf76
mov byte [0xcc4395], 0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
push 0x42b9f0
push 0xfffffffffffffffc
mov byte [0xcc4395], bl
call fcn.00428960
push eax
daa
call sub.user32.dll_SetWindowLongA
test eax, eax
mov dword [0xcc4390], eax
je 0x42bf69
mov ebp, dword [sym.imp.kernel32.dll_CreateMutexA]
mov edi, dword [sym.imp.kernel32.dll_CreateSemaphoreA]
xor esi, esi
push 0
push 0
push 0
call ebp
push 0
push ebx
push ebx
push 0
mov dword [esi + 0xcc43d8], eax
call edi
mov ecx, dword [esi + 0xcc43d8]
test ecx, ecx
mov dword [esi + 0xcc43dc], eax
je 0x42bf69
test eax, eax
je 0x42bf69
add esi, 0x18
cmp esi, 0x18
jb 0x42bfa6
push 0
push ebx
push 0
push 0
call edi
test eax, eax
mov dword [0xcc43c8], eax
je 0x42bf69
call fcn.00428930
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x14]
call fcn.00428920
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
pop esi
pop ebp
mov byte [0xcc43e7], bl
fstp dword [0xcc43a8]
mov dword [0xcc43a0], 0
mov dword [0xcc43a4], 0
mov dword [0xcc43ac], ecx
xor eax, eax
pop ebx
add esp, 0x9c
ret
Function at 0x42d030
Capabilities:
Encode data using xor

Disassembly:
test dword [ecx + 0x24], 0xfff
push ebx
push ebp
push esi
push edi
jne 0x42d0e5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, esi
shr edx, 0xc
test edx, edx
mov eax, edi
jbe 0x42d0a8
lea ebx, [ecx + 0x30]
mov dword [esp + 0x14], edx
jmp 0x42d060
mov edx, ebx
mov esi, 0x80
mov ebp, dword [edx]
xor dword [eax], ebp
mov ebp, dword [edx + 4]
xor dword [eax + 4], ebp
mov ebp, dword [edx + 8]
xor dword [eax + 8], ebp
mov ebp, dword [edx + 0xc]
xor dword [eax + 0xc], ebp
mov ebp, dword [edx + 0x10]
xor dword [eax + 0x10], ebp
mov ebp, dword [edx + 0x14]
xor dword [eax + 0x14], ebp
mov ebp, dword [edx + 0x18]
xor dword [eax + 0x18], ebp
mov ebp, dword [edx + 0x1c]
xor dword [eax + 0x1c], ebp
add eax, 0x20
add edx, 0x20
dec esi
jne 0x42d067
dec dword [esp + 0x14]
jne 0x42d060
mov esi, dword [esp + 0x18]
and esi, 0xfff
je 0x42d134
mov edx, esi
xor eax, eax
and edx, 0xfffffffc
jbe 0x42d0ce
lea ecx, [ecx]
mov ebx, dword [ecx + eax + 0x30]
xor dword [eax + edi], ebx
add eax, 4
cmp eax, edx
jb 0x42d0c0
cmp eax, esi
jae 0x42d134
mov dl, byte [ecx + eax + 0x30]
xor byte [eax + edi], dl
inc eax
cmp eax, esi
jb 0x42d0d2
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, edi
xor eax, eax
and edx, 0xfffffffc
jbe 0x42d114
mov ebx, dword [ecx + 0x24]
mov ebp, dword [eax + esi]
add ebx, eax
and ebx, 0xfff
mov ebx, dword [ebx + ecx + 0x30]
xor ebp, ebx
mov dword [eax + esi], ebp
add eax, 4
cmp eax, edx
jb 0x42d0f6
cmp eax, edi
jae 0x42d134
mov edx, dword [ecx + 0x24]
mov bl, byte [eax + esi]
add edx, eax
and edx, 0xfff
mov dl, byte [edx + ecx + 0x30]
xor bl, dl
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x42d118
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42d180
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x8000
mov dword [esi + 0x2c], ebx
call fcn.0043b100
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42d2d3
mov ecx, dword [esi + 0x1c]
push ebx
lea eax, [esp + 0x10]
push eax
push 0x8000
push edi
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x42d2ca
cmp dword [esp + 0xc], 0x8000
jne 0x42d2ca
movzx eax, byte [edi + 0x3d40]
movzx ecx, byte [edi + 0x2dde]
xor edx, edx
mov dh, byte [edi + 0x55e2]
mov dl, byte [edi + 0x2a5c]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov dword [esi + 0x28], edx
lea eax, [edi + 8]
mov edx, 0x400
nop
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax - 8], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax - 4], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax + 4], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax + 8], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x28]
imul ecx, ecx, 0x5d588b65
inc ecx
mov dword [esi + 0x28], ecx
xor dword [eax + 0x14], ecx
add eax, 0x20
dec edx
jne 0x42d200
mov byte [edi + 0x2dde], bl
mov byte [edi + 0x3d40], bl
mov byte [edi + 0x2a5c], bl
mov byte [edi + 0x55e2], bl
xor eax, eax
cmp dword [edi + eax*4], ebx
jne 0x42d2ca
inc eax
cmp eax, 0x2000
jb 0x42d2a3
push edi
call fcn.0043b58d
add esp, 4
pop edi
mov dword [esi + 0x2c], 0x8000
pop esi
mov eax, 1
pop ebx
pop ecx
ret
push edi
call fcn.0043b58d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x42d310
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x86def3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi + 4]
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esi], 0x871810
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push edi
push edi
push 3
push edi
push 1
mov dword [ebx], edi
push 0x80000000
push eax
mov byte [esp + 0x34], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x42d38e
push edi
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0042d180
test eax, eax
jne 0x42d396
mov dword [ebx], 0x80070057
jmp 0x42d3a8
mov eax, dword [esi + 0x20]
add eax, 0xffff8000
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0042d140
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x436610
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x358
lea eax, [esp + 0x254]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x36c]
push edi
push str._s
push eax
call fcn.0043bcd5
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x264]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436721
mov esi, dword [esp + 0x374]
mov ebp, dword [esp + 0x370]
test byte [esp + 0x20], 0x10
je 0x4366ac
test ebp, ebp
je 0x436706
cmp byte [esp + 0x4c], 0x2e
je 0x436706
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x160]
push eax
push edi
push str._s_s
push ecx
call fcn.0043bcd5
lea edx, [ebp - 1]
push esi
lea eax, [esp + 0x174]
push edx
push eax
call fcn.00436610
add esp, 0x1c
jmp 0x436702
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x160]
push ecx
push edi
push str._s_s
push edx
call fcn.0043bcd5
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add esp, 0x10
lea eax, [esp + 0x160]
test esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
je 0x4366e8
inc dword [esi]
mov eax, dword [0xcc4c9c]
test eax, eax
je 0x436706
mov ecx, dword [0xcc4ca0]
lea edx, [esp + 0x10]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jl 0x436723
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x436663
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret