joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42af60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
mov word [esi], 2
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x42af7c
xor ecx, ecx
push 0
inc ecx
jmp 0x42afa3
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], eax
jle 0x42af9e
cmp dword [ebp + 0x10], 0xffff
jg 0x42af9e
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42afad
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.0041eeb7
xor al, al
pop ebp
ret 0xc

Function at 0x42bb36
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x44e1a9
call fcn.0044d654
sub esp, 0x154
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00413ba6
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00413ba6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00413ba6
mov byte [ebp - 4], 2
push str.SOFTWAREClasses_
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], 0xff
call fcn.00413ca1
push dword [ebp + 8]
call fcn.00413dc2
push str.CLSID
call fcn.00413dc2
push 0x451fe6
lea esi, [ebp - 0x24]
call fcn.00413ca1
cmp edi, ebx
je 0x42bbc8
cmp byte [edi], 0x5c
je 0x42bbc8
cmp byte [edi + 1], 0x5c
je 0x42bbc8
push 0x454868
call fcn.00413ca1
push edi
call fcn.00413dc2
cmp dword [ebp + 0x10], ebx
je 0x42bc14
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0043f7c0
add esp, 0xc
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
call fcn.00413c60
push str.IPC_
call fcn.00413dc2
mov eax, dword [ebp - 0x3c]
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
jne 0x42bca5
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x42bca5
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x42bc9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x42bc93
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00413831
pop ecx
pop ecx
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0043f3aa
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0043f3aa
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.0043f3aa
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.0043f3aa
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4379e5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
mov edi, 0x103
jmp 0x437a9a
xor eax, eax
cmp byte [0x466f18], bl
je 0x437a2e
mov eax, 0x100
lea ecx, [ebp - 0xc]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x437aa2
push dword [ebp - 0xc]
call fcn.004379e5
pop ecx
push dword [ebp - 0xc]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x437aa2
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x437aa2
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
cmp eax, edi
jne 0x437a1f
mov al, 1
jmp 0x437aa4
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4384a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x43852d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x43852d
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x438501
cmp dword [ebp + 0x10], ebx
jbe 0x438501
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4384f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x43852f
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x438521
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x438537
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a846
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x44e900
call fcn.0044d654
sub esp, 0xc
mov al, byte [ebp + 8]
push esi
mov esi, edi
mov byte [edi + 0x3182], al
call fcn.0043a7e0
cmp dword [edi + 0x3118], 7
lea esi, [edi + 0x3110]
jne 0x43a8a8
mov ecx, esi
call fcn.00415be4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43a8a1
mov ecx, esi
call fcn.00415be4
push eax
mov esi, edi
mov dword [edi + 0x3168], eax
call fcn.0043a812
mov al, 1
jmp 0x43aa39
xor al, al
jmp 0x43aa39
cmp dword [edi + 0x316c], 4
push ebx
jne 0x43a9d0
call fcn.00415a00
cmp byte [eax], 0
je 0x43a9c1
push str.last
call fcn.00415a00
push eax
call fcn.004419ba
test eax, eax
pop ecx
pop ecx
je 0x43a9c1
push str.active
call fcn.00415a00
push eax
call fcn.004419ba
test eax, eax
pop ecx
pop ecx
jne 0x43a90f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [edi + 0x3168], eax
push eax
mov esi, edi
call fcn.0043a812
mov al, 1
jmp 0x43aa38
push 7
push str.handle
call fcn.00415a00
push eax
call fcn.0044bedd
add esp, 0xc
test eax, eax
jne 0x43a93e
push str.Use_directly_Windows_handle
push 0xb8
mov ebx, edi
call fcn.0041d610
jmp 0x43aa36
push 7
push str.regexp
call fcn.00415a00
push eax
call fcn.0044bedd
add esp, 0xc
test eax, eax
jne 0x43a9ee
lea ebx, [edi + 0x3140]
mov esi, ebx
call fcn.0040dfc6
lea esi, [edi + 0x3110]
call fcn.00415a00
add eax, 7
push eax
lea esi, [ebp - 0x18]
call fcn.00413bc3
and dword [ebp - 4], 0
mov eax, esi
push eax
call fcn.0040db8e
test eax, eax
setl bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0043f3aa
test bl, bl
pop ecx
je 0x43a9ee
push 0
lea esi, [edi + 0x140]
call fcn.00416039
and dword [edi + 0x94], 0
mov byte [edi + 0x158], 1
jmp 0x43a908
mov eax, dword [edi + 0x3168]
test eax, eax
je 0x43aa36
jmp 0x43a900
call fcn.00415a00
cmp byte [eax], 0
jne 0x43a9ee
lea esi, [edi + 0x3128]
call fcn.00415a00
cmp byte [eax], 0
je 0x43a8f4
cmp byte [edi + 0x3181], 0
push 0
push 0x43aa48
jne 0x43aa06
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x43aa13
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [edi + 0x317c], 0
je 0x43aa2f
mov eax, dword [edi + 0x3174]
mov eax, dword [eax]
mov dword [edi + 0x3168], eax
jmp 0x43a908
and dword [edi + 0x3168], 0
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43aa5b
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x44e900
call fcn.0044d654
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov byte [ebp - 0x41c], 0
mov ecx, 0x100
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebx + 0x316c]
dec eax
mov dword [ebx + 0x3168], esi
je 0x43abe5
dec eax
je 0x43abc8
dec eax
je 0x43abb8
dec eax
jne 0x43ac11
push 0xa
lea esi, [ebx + 0x3110]
push str.classname
call fcn.00415a00
push eax
call fcn.0044bedd
add esp, 0xc
test eax, eax
jne 0x43ab0e
push edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
call fcn.00415a00
add eax, 0xa
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0043f600
pop ecx
pop ecx
jmp 0x43ac0d
push 0x454228
call fcn.00415a00
push eax
call fcn.004419ba
test eax, eax
pop ecx
pop ecx
je 0x43aba1
call fcn.00415a00
push eax
call fcn.0043f830
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00415a00
push eax
call fcn.00440030
add esp, 0xc
test eax, eax
je 0x43aba1
push 7
push str.regexp
call fcn.00415a00
push eax
call fcn.0044bedd
add esp, 0xc
test eax, eax
jne 0x43ac11
lea eax, [ebp - 0x41c]
push eax
lea esi, [ebp - 0x18]
call fcn.00413bc3
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
mov eax, esi
push eax
lea edi, [ebx + 0x3140]
call fcn.0040dc61
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
mov byte [ebp + 0xb], al
call fcn.0043f3aa
cmp byte [ebp + 0xb], 0
pop ecx
je 0x43ac11
mov edi, ebx
call fcn.0043ac24
cmp al, 1
jne 0x43ac11
cmp byte [ebx + 0x3182], al
jne 0x43ac11
xor eax, eax
jmp 0x43ac14
lea esi, [ebx + 0x3110]
call fcn.00415a00
jmp 0x43aafa
lea esi, [ebx + 0x3110]
call fcn.00415a00
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00441a30
pop ecx
test eax, eax
jmp 0x43ab9e
lea esi, [ebx + 0x3110]
call fcn.00415a00
push eax
call fcn.0043f830
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00415a00
push eax
call fcn.00440030
add esp, 0xc
test eax, eax
je 0x43aba1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x43aca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.00448b10
push esi
push dword [ebp + 8]
mov byte [ebp - 0x8000], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x43accb
cmp byte [edi + 0x3180], 1
jne 0x43ad33
cmp dword [edi + 0x3170], 2
lea eax, [ebp - 0x8000]
jne 0x43aceb
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43acfc
push eax
push 0x7fff
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov byte [ebp - 1], 0
je 0x43ad33
lea esi, [edi + 0x3128]
call fcn.00415a00
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00441a30
test eax, eax
pop ecx
pop ecx
je 0x43ad33
push dword [edi + 0x3168]
mov esi, edi
call fcn.0043a812
xor eax, eax
jmp 0x43ad36
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x43b33a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [edi + 0x3190]
cmp eax, 2
push esi
mov dword [ebp - 4], 1
jne 0x43b371
lea eax, [edi + 0x3198]
call fcn.00415ad5
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp esi, eax
jmp 0x43b40b
test eax, eax
lea eax, [ebp - 0x408]
jne 0x43b3e2
push 0x100
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x3198]
call fcn.0043f830
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00415a00
push eax
call fcn.00440030
add esp, 0xc
test eax, eax
jne 0x43b41e
lea eax, [edi + 0x31b0]
inc dword [eax]
push dword [eax]
lea eax, [ebp - 0x408]
push eax
push str._s_u
push eax
call fcn.0043ffcb
add esp, 0x10
call fcn.00415a00
push eax
lea eax, [ebp - 0x408]
jmp 0x43b401
push 0x400
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x3198]
call fcn.00415a00
push eax
call fcn.0043f600
pop ecx
pop ecx
test eax, eax
jne 0x43b41e
and dword [ebp - 4], 0
mov dword [edi + 0x31b8], ebx
mov byte [edi + 0x31b4], 1
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x43d885
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x464a80], eax
push edi
mov edx, esi
mov eax, 0x464a80
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x46543c
jl 0x43d896
pop edi
mov dword [0x45c300], esi
mov dword [0x465460], esi
pop esi
ret

Function at 0x43d8c4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x465460], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x464a80
jne 0x43d8e4
push 0
call fcn.00440154
pop ecx
call fcn.0043d885
mov dword [0x45c300], 0x270
mov dword [0x464a78], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43d903
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43d939
mov edx, dword [0x464a80]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x43d993
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x45c300]
jne 0x43d9a0
call fcn.0043d8c4
mov eax, dword [0x464a78]
mov ecx, dword [eax]
add dword [0x464a78], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x43d9d7
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x45c300]
jne 0x43d9e9
call fcn.0043d8c4
mov eax, dword [0x464a78]
mov eax, dword [eax]
add dword [0x464a78], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jge 0x43da2f
fadd qword [0x455590]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x455580]
leave
ret

Function at 0x43e0a9
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0043f7c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x43ea20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
xor edi, edi
inc edi
mov dword [eax], ecx
mov esi, edi
mov ecx, eax
mov edx, dword [ecx]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, esi
mov dword [ecx + 4], ebx
inc esi
add ecx, 4
cmp esi, 0x270
jl 0x43ea2c
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret
Function at 0x43ea5c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x43ea80
push 0
call fcn.00440154
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.0043ea20
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x43eaa2
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x43eade
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x43eb38
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x43eb47
mov eax, esi
call fcn.0043ea5c
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x43ed1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.0043ea20
cmp dword [ebp + 0xc], ebx
jbe 0x43ed61
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.0043eb38
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x43ed46
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x440b71
Capabilities:
Terminate process

Disassembly:
push 8
push 0x450938
call fcn.00442860
push 8
call fcn.0044260c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45c448], esi
jne 0x440ba5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45c444], esi
mov al, byte [ebp + 0x10]
mov byte [0x45c440], al
cmp dword [ebp + 0xc], edi
jne 0x440bef
cmp dword [0x46f64c], edi
je 0x440bdf
mov eax, dword [0x46f648]
sub eax, 4
mov dword [0x46f648], eax
cmp eax, dword [0x46f64c]
jb 0x440bdf
mov eax, dword [eax]
cmp eax, edi
je 0x440bc0
call eax
jmp 0x440bc0
push 0x45a058
mov eax, 0x45a050
call fcn.00440aef
pop ecx
push 0x45a064
mov eax, 0x45a05c
call fcn.00440aef
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x440c20
cmp dword [ebp + 0x10], edi
jne 0x440c2e
mov dword [0x45c448], esi
push dword [ebp + 8]
call fcn.00440aad
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x440c2d
push 8
call fcn.00442557
pop ecx
ret
call fcn.0044289b
ret

Function at 0x440e31
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x440e4e
call fcn.00445503
mov dword [eax], 0x16
xor eax, eax
jmp 0x440eb8
push esi
push 0x8c
push 1
call fcn.0044203d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x440ea3
push esi
call fcn.00443cba
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x440e81
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x440d9c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x440eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0043fd41
test ebx, ebx
pop ecx
je 0x440eb5
push ebx
call fcn.00445515
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x446972
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45a9a0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4469a3
xor eax, eax
jmp 0x446b2c
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x46e2c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4469df
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0044adb5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x446aba
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x446af8
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x446a43
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x446a34
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x446a14
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x446a83
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x446a8c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x446a05
jmp 0x446a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x446b27
cmp dword [ebp - 0x6c], edi
je 0x446af8
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x446aed
call fcn.00445503
mov dword [eax], 9
call fcn.0044550c
mov dword [eax], esi
jmp 0x446b22
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x446ae2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x446a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x446a8e
push dword [ebp - 0x6c]
call fcn.00445515
pop ecx
jmp 0x446b22
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x446b10
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x446b10
xor eax, eax
jmp 0x446b2a
call fcn.00445503
mov dword [eax], 0x1c
call fcn.0044550c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x446b2a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0044603e
add ebp, 0x3a0
leave
ret