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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.00470070
mov eax, dword [0x4fc014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4fec50]
cmp eax, 0xffffffff
je 0x45e592
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x45e5a7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046fc53
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
and eax, 0xfffffffc
lea ecx, [ebp - 0x810]
push 0x800
push eax
push ecx
call fcn.00471e40
add esp, 0xc
mov ecx, dword [0x4fec50]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00449200
add esp, 8
and ebx, 0xfffffffc
je 0x45e5eb
push ebx
call fcn.0046ed1c
add esp, 4
mov eax, dword [0x50d660]
mov ecx, dword [0x4ffb48]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45e6d3
mov esi, dword [0x50d65c]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x45e718
lea eax, [ebp - 0x1410]
push 0xc00
push 0x50ca5c
push eax
call fcn.00471e40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x100
lea edx, [ebp - 0x1408]
test al, 1
je 0x45e6be
mov dword [ebp - 0x1418], ecx
xor esi, esi
mov edi, edx
xor eax, eax
jmp 0x45e66c
inc esi
add edi, 0xc
cmp esi, 0x100
je 0x45e6b0
mov ebx, dword [ebp + esi*8 - 0x810]
test ebx, ebx
je 0x45e660
cmp dword [edi - 8], 0
je 0x45e660
mov ecx, dword [ebp + esi*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x45e660
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x45e660
mov dword [ebp + esi*8 - 0x810], 0
call dword [section..00cfg]
push ebx
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x45e660
mov esi, dword [ebp - 0x1418]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x45e64e
push 2
push dword [ebp - 0x1414]
call fcn.00449200
add esp, 8
jmp 0x45e592
push 0x50d660
call fcn.0046ed57
add esp, 4
cmp dword [0x50d660], 0xffffffff
jne 0x45e60c
push 4
call fcn.0046ecb1
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.0045ef10
mov dword [0x50d65c], esi
push 0x50d660
call fcn.0046edcd
add esp, 4
jmp 0x45e60c
mov ecx, esi
call fcn.0045ef20
jmp 0x45e621

Function at 0x45ec90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x45eccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45ece2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45ecc4
mov dword [esi], ebx
call fcn.0045b520
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x45ecf9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0045b520
push dword [esi]
call fcn.0045efa0
add esp, 4
mov dword [esi], 0
jmp 0x45ecb5
int3
Function at 0x465070
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4fc014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x50f1ac]
mov ecx, dword [0x4ffb48]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4650c1
mov eax, dword [0x50f1a8]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046fc53
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x50f1ac
call fcn.0046ed57
add esp, 4
cmp dword [0x50f1ac], 0xffffffff
jne 0x4650a3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004723c0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0046ecb1
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x50f1dc]
mov ecx, dword [0x4ffb48]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46516a
mov ecx, esi
push ebx
push 0x50f1b8
push edi
call fcn.00449a40
mov dword [0x50f1a8], esi
push 0x50f1ac
call fcn.0046edcd
add esp, 4
jmp 0x4650a3
push 0x50f1dc
call fcn.0046ed57
add esp, 4
cmp dword [0x50f1dc], 0xffffffff
jne 0x465144
xorps xmm0, xmm0
movups xmmword [0x50f1c8], xmm0
movups xmmword [0x50f1b8], xmm0
mov dword [0x50f1d8], 0
push 0x50f1b8
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x50f1dc
call fcn.0046edcd
add esp, 4
jmp 0x465144

Function at 0x4655a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
movzx eax, byte [ecx + 0x27]
test al, al
js 0x46565a
test eax, eax
jne 0x46564f
cmp dword [esi + 0x28], 0
jne 0x46564f
mov byte [esi + 0x2c], 0
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
je 0x465689
lea edi, [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.00458ce0
cmp eax, 0xffffffff
jne 0x46567a
cmp dword [esi + 0x30], 1
je 0x465662
mov eax, dword [esi + 8]
mov bl, 1
cmp eax, dword [esi + 0xc]
je 0x46568f
nop dword [eax]
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.00458ce0
cmp eax, 0xffffffff
jne 0x46568f
mov eax, dword [esi + 8]
cmp dword [esi + 0x30], 1
je 0x465636
inc eax
mov dword [esi + 8], eax
cmp eax, dword [esi + 0xc]
jne 0x465610
jmp 0x46568f
mov cl, byte [eax]
add cl, 0xf7
cmp cl, 0x17
ja 0x46562b
movzx ecx, cl
mov edx, 0x80001b
bt edx, ecx
jae 0x46562b
jmp 0x46568f
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004c4730
mov eax, dword [esi + 0x20]
jmp 0x4655b4
mov eax, dword [esi + 4]
mov al, byte [eax]
add al, 0xf7
cmp al, 0x17
ja 0x4655fe
movzx eax, al
mov ecx, 0x80001b
bt ecx, eax
jae 0x4655fe
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
jne 0x4655dc
mov byte [esi + 0x2c], 1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46b400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x46b47e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x46b467
lea eax, [edi + 1]
cmp eax, 2
jb 0x46b44b
mov dword [esi], edi
call fcn.0045b520
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x46b482
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.0045b520
push dword [esi]
call fcn.0045efa0
add esp, 4
mov dword [esi], 0
jmp 0x46b43c
mov byte [esi + 4], 1
int3

Function at 0x46c040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50fb08]
mov ecx, dword [0x4ffb48]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46c06b
mov ecx, 0x50fb00
pop ebp
jmp fcn.0045e730
push 0x50fb08
call fcn.0046ed57
add esp, 4
cmp dword [0x50fb08], 0xffffffff
jne 0x46c060
xor eax, eax
mov dword [0x50fb04], eax
mov dword [0x50fb00], eax
mov ecx, 0x50fb00
push eax
call fcn.00441b30
push 0x50fb08
call fcn.0046edcd
add esp, 4
jmp 0x46c060
Function at 0x47e5c7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047e76a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47e73f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47e73f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47e6ee
jg 0x47e620
test eax, eax
je 0x47e6e4
push 1
push 0x1000
call fcn.0045f0f0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47e646
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x47e6db
push 0x8000
push ebx
call fcn.00483113
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47e672
jg 0x47e66d
cmp ecx, 0x1000
jb 0x47e672
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00485e31
add esp, 0x10
cmp eax, 0xffffffff
je 0x47e6b7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x47e66d
jl 0x47e69e
test ecx, ecx
jne 0x47e65f
push dword [ebp - 0xc]
push ebx
call fcn.00483113
push esi
call fcn.0045f050
add esp, 0xc
xor edi, edi
jmp 0x47e750
cmp byte [edi + 0x24], 0
je 0x47e6ce
cmp dword [edi + 0x20], 5
jne 0x47e6ce
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x47e6d9
mov edi, dword [edi + 0x18]
jmp 0x47e6db
xor edi, edi
push esi
call fcn.0045f050
pop ecx
jmp 0x47e750
test ecx, ecx
jg 0x47e6b0
jl 0x47e6ee
test eax, eax
jae 0x47e6b0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00482217
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47e711
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x47e6b0
jmp 0x47e748
push ebx
call fcn.0048156a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47e6b0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x47e750
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x47e74d
mov edi, dword [edi + 0x18]
jmp 0x47e750
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00482217
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x482c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x500610]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x482c6c
cmp byte [ebx], 0xa
jne 0x482c6c
or byte [eax + edi + 0x28], 4
jmp 0x482c71
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x482d6f
mov al, byte [edx]
cmp al, 0x1a
je 0x482d51
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x482ca0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x482cc5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x482ccf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x482c82
jmp 0x482d6f
push 0
lea eax, [ebp - 0xc]
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 0x482d4c
cmp dword [ebp - 0xc], 0
je 0x482d4c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x500610]
test byte [eax + edi + 0x28], 0x48
je 0x482d26
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x482d11
mov byte [esi], dl
jmp 0x482d22
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x500610]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x482d6f
cmp byte [ebp - 1], 0xa
jne 0x482d35
cmp esi, ebx
jne 0x482d35
mov byte [esi], 0xa
jmp 0x482d6e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00482217
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x482d6f
mov byte [esi], 0xd
jmp 0x482d6e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x500610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x482d6b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x482d6f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x482d78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x500610]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x482dbb
cmp word [esi], dx
jne 0x482dbb
or byte [edi + eax + 0x28], 4
jmp 0x482dc0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x482ef9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x482ed9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x482e02
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x482e38
cmp eax, edx
jae 0x482e44
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x482dda
jmp 0x482ef9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482ed5
cmp dword [ebp - 0x14], 0
je 0x482ed5
mov eax, dword [ebx*4 + 0x500610]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x482ead
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x482ef3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x500610]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x500610]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x500610]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x482ef6
pop ebx
cmp word [ebp - 4], bx
jne 0x482ebe
cmp esi, dword [ebp + 0xc]
jne 0x482ebe
mov word [esi], bx
jmp 0x482ef6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00482217
add esp, 0x10
cmp word [ebp - 4], bx
je 0x482ef9
push 0xd
jmp 0x482ef2
mov ecx, dword [ebx*4 + 0x500610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x482ef0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x482ef9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4880ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00470070
mov eax, dword [0x4fc014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00481513
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4880ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x488249
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00404d30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x500610]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00482275
mov ecx, dword [esi*4 + 0x500610]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x488242
cmp eax, dword [edi + ecx + 0x24]
jne 0x488242
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x488242
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00482275
add esp, 0x14
test edx, edx
jl 0x488242
jg 0x4881b8
test eax, eax
jb 0x488242
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x488242
jl 0x4881d2
cmp dword [ebp - 0x1008], eax
ja 0x488242
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4881f0
test ebx, ebx
je 0x488229
cmp ecx, edi
jae 0x488229
mov al, byte [ecx]
cmp al, 0xd
jne 0x48820a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x488216
cmp byte [ecx + 1], 0xa
jne 0x488216
inc ecx
jmp 0x488216
movzx eax, al
movsx eax, byte [eax + 0x4fc280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4881f0
cmp edx, ebx
jne 0x4881f0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x488247
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046fc53
leave
ret

Function at 0x48d2c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4de5c8
push 0x4de5c0
push 0x4de5c8
push 0x1e
call fcn.0048d822
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48d2fa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48d300
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48d344
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4de5e4
push str.FlsGetValue
push 0x20
call fcn.0048d822
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48d37b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x492152
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4fc014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49219d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004922c8
test al, al
jne 0x492197
sub edx, 2
cmp edx, edi
jne 0x49217d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4921bf
lea eax, [edi + 2]
cmp edx, eax
je 0x4921bf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049209e
add esp, 0x10
jmp 0x4922b9
push esi
lea ecx, [ebp - 0x255]
call fcn.004922c8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x492202
push dword [ebp - 0x25c]
jmp 0x4921af
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49223f
cmp word [ebp - 0x226], 0
je 0x492260
cmp word [ebp - 0x226], ax
jne 0x49223f
cmp word [ebp - 0x224], 0
je 0x492260
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049209e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4922ac
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x492219
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x492294
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4922b9
push 0x4922f0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00489180
add esp, 0x10
jmp 0x492289
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046fc53
leave
ret
Function at 0x493748
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 0x4937e5
push ebx
push esi
call fcn.00493836
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.00493691
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x493792
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4937e4
push edi
push eax
call fcn.00443700
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4937b2
call fcn.0045f050
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4937e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00493691
add esp, 0x20
test eax, eax
jne 0x4937d1
push edi
call fcn.0045f050
jmp 0x4937d9
push ebx
call fcn.0045f050
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 0x4937e8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4937f9
pop esi
ret
push ebx
push edi
push esi
call fcn.00493836
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404d30
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x493821
push ebx
push esi
push edi
call fcn.00471e40
add esp, 0xc
push 0
call fcn.0045f050
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x493878
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00493ae1

Function at 0x497ede
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00497ee9
Function at 0x4b95d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.0046ecb1
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4b9620
push ecx
push ecx
call fcn.0047dfda
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4b960f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]