joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41d130
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41d200
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x41d230
cmp eax, 3
jne 0x41d11b
mov eax, dword [0x4c00a8]
cmp eax, 0xffffffff
je 0x41d11b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41d11b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x41d260
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41d179
call fcn.0041ce40
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41d1ab
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41d19d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0041c2c0
mov dword [esp], edi
call fcn.0041c480
cmp eax, 1
je 0x41d326
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41d31a
mov eax, dword [0x4c00a8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41d11b
mov eax, dword [0x50ebd0]
test eax, eax
je 0x41d11b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x50ebd0], 0
sub esp, 4
jmp 0x41d11b
mov dword [esp + 4], 0x41c4f0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x50ebd0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41d2d0
test eax, eax
je 0x41d27a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41d297
call fcn.0041ce40
test byte [ebx + 0x24], 4
je 0x41d310
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d1ab
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041c2c0
jmp 0x41d1b3
test eax, eax
je 0x41d310
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041c2c0
mov dword [esp], edi
call fcn.0041c480
cmp eax, 1
je 0x41d326
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41d11b
mov dword [esp], esi
call fcn.0041c2c0
jmp 0x41d2ef
mov eax, ebx
call fcn.0041ca40
jmp 0x41d1d9
call fcn.0041c7a0
lea esi, [esi]
nop
Function at 0x41d5c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x41d6e0
cmp eax, 1
je 0x41d614
mov eax, ebx
call fcn.0041c580
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.0041be00
mov ebp, dword [ebx]
test ebp, ebp
je 0x41d620
cmp ebp, 1
jne 0x41d6b0
mov dword [esp], edi
call fcn.0041c140
test esi, esi
je 0x41d614
mov eax, esi
call fcn.0041c890
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x41c950
mov dword [esp + 0x18], esi
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d718
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d700
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41d6f0
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41d601
mov dword [esp], 2
call dword [0x4c0094]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41d601
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041ccc0
test eax, eax
jne 0x41d698
jmp 0x4ba195
call fcn.0041ccc0
test eax, eax
jne 0x41d672
jmp 0x4ba1a7
call fcn.0041ccc0
test eax, eax
jne 0x41d64c
jmp 0x4ba1a0
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x41d970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41d9e8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0041c490
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41d9c4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41d9c4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0041c4e0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041ccc0
mov ebx, eax
jmp 0x41d99b
Function at 0x41da00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41db20
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0041c490
cmp esi, dword [ebx + 0x28]
jae 0x41da80
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0041c4e0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x41db2c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41db2c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x41da48
call fcn.0041ccc0
mov ebx, eax
jmp 0x41da35
mov dword [esp], edi
call fcn.0041c4e0
mov eax, 0xc
jmp 0x41da70

Function at 0x41dbb0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41dbd8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0041ccc0
test eax, eax
jne 0x41dbcd
add esp, 0x1c
ret

Function at 0x41dc40
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41dc68
add eax, 0xc
add esp, 0x1c
ret
call fcn.0041ccc0
test eax, eax
jne 0x41dc5d
jmp 0x41dc60
Function at 0x41dca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041ce10
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41dcc2
call fcn.0041ce40
test byte [ebx + 0x20], 0x30
jne 0x41dcdc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41dd1d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41dd5d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41dd12
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41dd26
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0041cbe0
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41dd1d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41dd71
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41dd3e

Function at 0x41dd80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x50ebfc]
test eax, eax
jne 0x41dd90
xor eax, eax
ret
sub esp, 0x1c
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ddd0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41ddc0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41ddb4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41ddb6
call fcn.0041ccc0
test eax, eax
jne 0x41ddad
jmp 0x41ddb4

Function at 0x41dde0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41de20
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41de10
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0041ccc0
test eax, eax
jne 0x41ddfd
add esp, 0x1c
ret
Function at 0x41df20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41df90
test byte [ebx + 0x20], 0xc
jne 0x41df50
mov eax, dword [0x50ebfc]
test eax, eax
jne 0x41df60
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0041be00
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41df82
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41df82
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41dfa1
mov dword [esp], esi
call fcn.0041c140
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0041ccc0
mov ebx, eax
test eax, eax
jne 0x41df41
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41dfc1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0041c140
call fcn.0041de30
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41e050
mov dword [esp], eax
call fcn.0041bb40
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41e090
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41e0f0
test edi, edi
je 0x41e06a
call fcn.0041df20
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41e0c8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041bc50
call fcn.0041df20
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41e0e0
call fcn.0041df20
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0041df20
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041cc00
mov eax, dword [0x4c00a8]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x41e022
call fcn.0041ccc0
mov ebx, eax
jmp 0x41e022
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x41e03e
call fcn.0041ccc0
jmp 0x41e06a
call fcn.0041ccc0
mov ebx, eax
jmp 0x41e01e
Function at 0x47ff30
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x47ff70
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x47ff41
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4b8df0
Capabilities:
Query environment variable

Disassembly:
push edi
sub esp, 0x18
mov eax, dword [esp + 0x20]
lea edi, [eax + 0x60]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4b67c2
mov edx, eax
lea edi, [edx + 4]
mov ecx, edx
xor eax, eax
mov dword [edx], 0
and edi, 0xfffffffc
mov dword [edx + 0x5c], 0
sub ecx, edi
add ecx, 0x60
shr ecx, 2
rep stosd dword es:[edi], eax
add esp, 0x18
lea eax, [edx + 0x60]
pop edi
ret
mov eax, edi
call fcn.00421860
mov edx, eax
test eax, eax
je 0x4b8dd8
jmp 0x4b6799
call fcn.004b914c
nop
nop
nop
call fcn.004b914c
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 4], 0
mov dword [esp], 0x4c040c
call fcn.0041c270
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x4c0410], 0
mov dword [0x4c0414], 0
mov dword [0x4c0418], 0
call sub.msvcrt.dll_getenv
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], str.obj_size
mov ebx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 9
mov dword [esp + 0x28], str.obj_count
mov dword [esp + 0x2c], 0x40
test eax, eax
jne 0x4b8e86
jmp 0x4b8f46
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sub.msvcrt.dll_strchr
mov ebx, eax
test eax, eax
je 0x4b8f00
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
cmp dword [ebx], 0x62696c67
jne 0x4b8e70
cmp dword [ebx + 4], 0x2e787863
jne 0x4b8e70
cmp dword [ebx + 8], 0x705f6865
jne 0x4b8e70
cmp dword [ebx + 0xb], 0x6c6f6f70
jne 0x4b8e70
cmp byte [ebx + 0xf], 0x2e
jne 0x4b8e70
add ebx, 0x10
lea edi, [esp + 0x18]
mov esi, dword [edi]
test esi, esi
je 0x4b8edd
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4b8ee7
cmp byte [ebx + esi], 0x3d
je 0x4b8f74
add edi, 0xc
lea eax, [esp + 0x30]
cmp eax, edi
jne 0x4b8ec0
jmp 0x4b8e70
mov eax, dword [esp + 0x2c]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x20]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x4c0418], ebx
test ebx, ebx
jne 0x4b8f55
mov dword [esp], 0x4b75b0
call fcn.00401400
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [0x4c0418], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov dword [0x4c0414], eax
test eax, eax
je 0x4b8fb2
xor edx, edx
mov dword [0x4c0410], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x4b8f33
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebx + esi + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x4b8fa2
test dl, dl
jne 0x4b8e70
test eax, eax
js 0x4b8e70
mov dword [edi + 8], eax
jmp 0x4b8e70
xor ecx, ecx
mov dword [0x4c0418], ecx
jmp 0x4b8f33
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..reloc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x31657ec7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1d45716
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x408a9f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00408c4f
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x408b9d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x408b40
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x408b83
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x408b57
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x408b72
test al, 0x40
je 0x408b69
mov ecx, dword [edi + 0x20]
jmp 0x408b70
test al, 0x80
je 0x408b83
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x408b83
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x408b0f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x429d50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d76eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004cb6d0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x429dd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c8706
mov eax, dword [eax]
push 0x1287d08
push eax
call fcn.004ba374
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004cb95b
test bl, bl
je 0x429dd2
push 0x1287d08
lea ecx, [esp + 0xc]
call fcn.004cbceb
push 0x1287d14
lea ecx, [esp + 0xc]
call fcn.004cbceb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x429e0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004cb95b
jmp 0x429ed9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x429e92
lea edx, [esp + 0x7c]
push 0x1287d10
push edx
call fcn.004ba374
add esp, 8
test eax, eax
je 0x429e92
lea eax, [esp + 0x7c]
push 0x1287d0c
push eax
call fcn.004ba374
add esp, 8
test eax, eax
je 0x429e92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x429e22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004cb95b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42b140
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42b1a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x42b1b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d784b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1297d60]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x42b2e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b216
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004cb95b
xor eax, eax
jmp 0x42b35f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004cba98
push esi
lea ecx, [esp + 0xc]
call fcn.004cbd27
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x1287d58
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42b33d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0042b140
test eax, eax
jne 0x42b33d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0042b140
test eax, eax
jne 0x42b33d
lea eax, [esp + 0x14]
push 0x1287d34
push eax
call fcn.004bb4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b31c
lea ecx, [esp + 0x14]
push 0x1287d30
push ecx
call fcn.004bb460
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b31c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b31f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004cba48
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b22e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004cb95b
xor eax, eax
jmp 0x42b35f
mov byte [esi], 0
push 0x1287d2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004cb95b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4