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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x1005f6a4]
mov esi, ecx
test eax, eax
je 0x10019eda
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x10019ef3
cmp dword [eax + 4], 0
je 0x10019ef3
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x1005f6a4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x10019ecd
mov eax, dword [0x1005f6a4]
test eax, eax
je 0x10019f8e
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x10019fab
test eax, eax
jne 0x10019f54
movzx eax, byte [0x10060059]
push 4
push 0x10
call fcn.10005720
add esp, 8
test eax, eax
je 0x10019fc6
mov dword [eax], 0x1005f6a4
mov dword [eax + 4], 0
mov ecx, dword [0x1005f6a4]
test ecx, ecx
je 0x10019fb1
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x10019f74
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x10019f78
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x10019f78
xor ecx, ecx
xor edx, edx
lea esi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x1005f6a4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10019f11
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x1005f6a4
mov edi, eax
call fcn.10037a20
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x10019f48
push 0x10
push 4
call fcn.10038120
int3

Function at 0x10019fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x1005f6b4]
mov esi, ecx
test eax, eax
je 0x10019ffa
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001a013
cmp byte [eax + 4], 0
je 0x1001a013
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x1005f6b4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x10019fed
mov eax, dword [0x1005f6b4]
test eax, eax
je 0x1001a08a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1001a0a3
test eax, eax
jne 0x1001a065
movzx eax, byte [0x10060059]
push 4
push 8
call fcn.10005720
add esp, 8
test eax, eax
je 0x1001a0be
mov dword [eax], 0x1005f6b4
mov byte [eax + 4], 0
mov ecx, dword [0x1005f6b4]
test ecx, ecx
je 0x1001a0a9
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
xor ecx, ecx
test esi, esi
je 0x1001a07a
cmp byte [esi], 0
mov byte [esi], 0
movzx edx, byte [esi + 1]
cmove edx, ecx
mov ecx, edx
lea edx, [eax + 5]
mov byte [eax + 4], 1
mov byte [eax + 5], cl
mov eax, edx
pop esi
pop edi
pop ebp
ret
push 0x1005f6b4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001a029
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x1005f6b4
mov edi, eax
call fcn.10037a20
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x1001a059
push 8
push 4
call fcn.10038120
int3
Function at 0x1001a0d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1001a860
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x1005f6c4]
test eax, eax
je 0x1001a1e3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001a123
cmp dword [eax + 4], 0
jne 0x1001a1de
mov eax, dword [0x1005f6c4]
test eax, eax
je 0x1001a205
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1001a222
test eax, eax
jne 0x1001a198
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1005f6c4
movzx eax, byte [0x10060059]
push 4
push 0xc
call fcn.10005720
add esp, 8
test eax, eax
je 0x1001a24e
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x1005f6c4]
test ecx, ecx
je 0x1001a236
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x1001a1ad
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x1001a1af
mov ecx, dword [esi + 4]
jmp 0x1001a1af
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x1001a1de
test edx, edx
je 0x1001a1de
lock dec dword [edx]
jne 0x1001a1de
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1000d880
mov eax, esi
add eax, 8
jmp 0x1001a224
push 0x1005f6c4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001a119
jmp 0x1001a123
push 0x1005f6c4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001a141
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1005f6c4
mov edi, eax
call fcn.10037a20
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x1001a18c
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10038120
add esp, 8
ud2
Function at 0x1001a290
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1001a870
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x1005f6d4]
test eax, eax
je 0x1001a3a3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x1001a2e3
cmp dword [eax + 4], 0
jne 0x1001a39e
mov eax, dword [0x1005f6d4]
test eax, eax
je 0x1001a3c5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1001a3e2
test eax, eax
jne 0x1001a358
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1005f6d4
movzx eax, byte [0x10060059]
push 4
push 0xc
call fcn.10005720
add esp, 8
test eax, eax
je 0x1001a40e
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x1005f6d4]
test ecx, ecx
je 0x1001a3f6
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x1001a36d
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x1001a36f
mov ecx, dword [esi + 4]
jmp 0x1001a36f
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x1001a39e
test edx, edx
je 0x1001a39e
lock dec dword [edx]
jne 0x1001a39e
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.1000d840
mov eax, esi
add eax, 8
jmp 0x1001a3e4
push 0x1005f6d4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x1001a2d9
jmp 0x1001a2e3
push 0x1005f6d4
call fcn.10037a20
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1001a301
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1005f6d4
mov edi, eax
call fcn.10037a20
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x1001a34c
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.10038120
add esp, 8
ud2
Function at 0x100261d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10026228
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x10026220
cmp ebx, eax
ja 0x10026296
cmp eax, dword [ebp + 0x10]
ja 0x100262a2
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x10026222
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10026210
jmp 0x1002627f
ja 0x10026228
cmp edx, edi
mov ebx, eax
jne 0x100261e2
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10026283
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x10026260
mov esi, edi
sub ecx, ebx
jns 0x10026277
jmp 0x10026285
cmp edi, edx
je 0x1002628c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x10026285
xor al, 1
cmp esi, edx
jne 0x10026240
jmp 0x10026285
xor eax, eax
jmp 0x10026285
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100425a8
call fcn.100381a0
push 0x100425b8
push eax
push ebx
call fcn.100385a0
push 0x100425b8
push dword [ebp + 0x10]
push eax
call fcn.10038580

Function at 0x1002e012
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x1002e051
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002e051
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e051
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002e051
cmp dword [ecx + 0x74], 0xe
jbe 0x1002e051
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1002f0bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100443f8
push 0x100443f0
push str.FlsAlloc
push 0x1f
call fcn.1002efdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f0f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x100391dc]
call esi
jmp 0x1002f0f9
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002f13d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044408
push 0x10044400
push str.FlsGetValue
push 0x21
call fcn.1002efdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f174
push dword [ebp + 8]
mov ecx, esi
call dword [0x100391dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x1002f17c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044410
push 0x10044408
push str.FlsSetValue
push 0x22
call fcn.1002efdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f1b6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100391dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x10031971
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10031a0e
push ebx
push esi
call fcn.1003193a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100318ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100319bb
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10031a0d
push edi
push eax
call fcn.1002fa2f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100319db
call fcn.1002ee88
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10031a0c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100318ce
add esp, 0x20
test eax, eax
jne 0x100319fa
push edi
call fcn.1002ee88
jmp 0x10031a02
push ebx
call fcn.1002ee88
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10032f84
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10060798]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10032fc4
cmp byte [ebx], 0xa
jne 0x10032fc4
or byte [edi + eax + 0x28], 4
jmp 0x10032fc9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100330c8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100330ab
inc eax
cmp dl, 0xd
je 0x10032ff5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003301b
cmp eax, ecx
jae 0x10033029
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10032fdd
jmp 0x100330c8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x100330a6
cmp dword [ebp - 0x10], 0
je 0x100330a6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10060798]
test byte [eax + edi + 0x28], 0x48
je 0x10033080
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003306b
mov byte [esi], dl
jmp 0x1003307c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10060798]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100330c8
cmp byte [ebp - 1], 0xa
jne 0x1003308f
cmp esi, ebx
jne 0x1003308f
mov byte [esi], 0xa
jmp 0x100330c7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10034ec8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100330c8
mov byte [esi], 0xd
jmp 0x100330c7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10060798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100330c5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100330c8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100330d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10060798]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10033117
cmp word [ebx], dx
jne 0x10033117
or byte [eax + edi + 0x28], 4
jmp 0x1003311c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003327f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003325f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003315d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10033193
cmp eax, edx
jae 0x100331a1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10033138
jmp 0x1003327f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1003325a
cmp dword [ebp - 0x18], 0
je 0x1003325a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10060798]
test byte [eax + edi + 0x28], 0x48
je 0x10033230
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100331f4
mov word [esi], cx
jmp 0x1003322b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10060798]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10060798]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10060798]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003327f
pop eax
cmp word [ebp - 4], ax
jne 0x10033240
cmp esi, ebx
jne 0x10033240
mov word [esi], ax
jmp 0x1003327c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10034ec8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003327f
push 0xd
pop eax
jmp 0x1003323b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10060798]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10033279
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003327f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10037030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003705d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003705d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10037810
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.10021460
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x10037889
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x100378b5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x100378d5
jmp 0x100378e1
mov ecx, dword [0x1003fc48]
mov edx, dword [0x1003fc4c]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x100378e1
push 1
push eax
push dword [ebp - 0x1c]
call fcn.10005730
add esp, 0x40
jmp 0x100378e4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x100378e1
push 1
push ebx
push edi
call fcn.10005730
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10037a20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x10037a9c
mov eax, dword [entry1]
lea edi, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push edi
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x10037ad8
cmp dword [ebp - 0x14], 0
je 0x10037abe
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x10037af5
mov ebx, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x100600fc]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x100600fc], esi
jne 0x10037a80
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov eax, ebx
jmp 0x10037ad0
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10037b31
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x10037ac2
mov eax, dword [ebp - 0x10]
jmp 0x10037ad0
mov eax, dword [esi]
jmp 0x10037acf
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsFree]
mov eax, esi
dec eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x10040674
push 0x100409e0
push eax
call fcn.10037430
push 0
push 4
push edi
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov dword [ebp - 0x2c], 0x10040994
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.___rustc_aa1c45908df252a5b0c14e1bcb38c6c55ae02efelibrarycore_srcio_borrowed_buf.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x100409d0
push eax
call fcn.100381e0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10040994
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.___rustc_aa1c45908df252a5b0c14e1bcb38c6c55ae02efelibrarycore_srcio_borrowed_buf.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10037460
int3
Function at 0x5c04ff90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5c04ffce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5c04ffc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5c04ffd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5c04ffb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c0500c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x5c0500d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x5c0500f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x5c07032e
Capabilities:
Encode data using xor

Disassembly:
call 0x5c0702a7
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x5c0702d7
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x5c0702f3
xor edx, 0
jmp 0x5c0702fe
xor edx, edx
jmp 0x5c070315
jmp 0x5c070321
xor eax, eax
push 0x8427d7c0
call 0x5c07032e
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x5c07036a
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x5c070343
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x5c070381
add eax, 0
jno 0x5c070386
add esi, 0
ret 0x10