joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4b0070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
mov dword [eax + 0x5b8], 0
cmp dword [esi + 4], 0
jne 0x451f7c
lea eax, [ebp - 0xa4]
push eax
call fcn.00452000
mov ecx, dword [esi + 0x10]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xa4]
mov eax, esp
push ecx
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041d5b0
push eax
mov ecx, esi
call fcn.00420f90
mov ecx, dword [esi + 0x10]
call fcn.00438390
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00420490
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.00422970
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00409b60
test bl, bl
je 0x451fb2
mov eax, dword [esi + 0x10]
add eax, 0x5a8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, 0x5a8
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.0046780a
mov esp, ebp
pop ebp
ret 4
Function at 0x4596f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc17
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], 0
call fcn.00401cf0
mov ecx, eax
test ecx, ecx
je 0x4597e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x220], 1
call fcn.00469580
add esp, 0xc
lea eax, [ebp - 0x21c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4597cc
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4597a0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402220
push 0x13
push str.43994399GameHall_
mov ecx, esi
call fcn.0040c610
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046780a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402200
int3

Function at 0x459800
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
test esi, esi
je 0x4598ce
cmp word [esi], 0
je 0x4598ce
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459835
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4598c5
push ebx
push edi
call fcn.00467dc4
add esp, 4
mov ebx, eax
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4598bb
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x49a83c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4598bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 1
movzx eax, word [ecx + 0xa]
mov dword [0x4b3420], eax
movzx eax, word [ecx + 8]
mov dword [0x4b3424], eax
movzx eax, word [ecx + 0xe]
mov dword [0x4b3428], eax
movzx eax, word [ecx + 0xc]
mov dword [0x4b342c], eax
push ebx
call fcn.00467dcd
add esp, 4
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c0f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x4b0070]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c116
sub ecx, edi
mov dword [esp + 0x1c], 0
push ecx
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0
push eax
mov ecx, esi
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0045b820
lea eax, [esp + 8]
mov ecx, esi
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0045b900
xor esi, esi
lea edi, [esp + 0x70]
movzx eax, byte [esp + esi + 0x60]
push eax
push str._02x
push edi
call fcn.0040ec80
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x45c174
movups xmm0, xmmword [esp + 0x70]
mov ecx, dword [esp + 0x94]
mov eax, 0x4b3434
pop edi
movups xmmword [0x4b3434], xmm0
pop esi
movups xmm0, xmmword [esp + 0x78]
xor ecx, esp
movups xmmword [0x4b3444], xmm0
call fcn.0046780a
mov esp, ebp
pop ebp
ret 4

Function at 0x45c4d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x10], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x45c547
sub edx, dword [ebp - 0x10]
lea ecx, [esi + 0x18]
sar edx, 1
push edx
push eax
call fcn.00413340
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45dd80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bddb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov dword [ebp - 4], eax
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.0045d710
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 0xd4], xmm0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 7
mov word [esi + 0xd4], ax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov eax, esi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0xd0], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45e5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
push dword [ebx]
push 1
push dword [ebx + 8]
push dword [ebp + 8]
call fcn.00475289
mov esi, dword [ebx + 8]
mov ecx, eax
add esp, 0x10
cmp ecx, 1
sete al
mov byte [esp + 0xf], al
mov eax, esi
cdq
idiv dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
cmp ecx, 1
jne 0x45e744
add dword [ebx + 0x14], esi
cmp dword [ebx + 0x4c], 8
push 0xffffffffffffffff
push eax
lea eax, [ebx + 0x38]
push ecx
mov ecx, esp
jb 0x45e629
mov eax, dword [eax]
mov dword [ecx], eax
mov edx, 0x18
push ecx
mov eax, esp
lea ecx, [ebx + 0x20]
mov dword [eax], str.read
call fcn.0045c2d0
mov ecx, dword [ebx + 0x1c]
add esp, 0x10
mov esi, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebx + 0x18]
xor eax, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x45e6a7
cmp edx, 1
jne 0x45e760
mov ebx, edx
cmp byte [esi], 0
mov edx, ebx
jne 0x45e696
test eax, eax
je 0x45e68b
cmp esi, eax
je 0x45e68b
mov ecx, esi
imul ebx, edi
sub ecx, eax
push ecx
push eax
sub eax, ebx
push eax
call fcn.004696f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x14]
inc edi
mov edx, dword [eax + 0x18]
lea eax, [edx + esi]
add esi, edx
mov ebx, edx
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x45e664
mov ebx, dword [esp + 0x14]
mov ecx, edx
test eax, eax
je 0x45e6c3
cmp esi, eax
je 0x45e6c3
sub esi, eax
imul ecx, edi
push esi
push eax
sub eax, ecx
push eax
call fcn.004696f0
add esp, 0xc
lea esi, [ebx + 0x20]
test edi, edi
je 0x45e6f1
push 0xffffffffffffffff
push edi
push ecx
mov eax, esp
mov edx, 1
push ecx
mov ecx, esi
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.0045c2d0
add esp, 0x10
sub dword [ebx + 0x1c], edi
cmp dword [ebx + 0x18], 1
jle 0x45e744
test byte [ebx + 4], 0x80
je 0x45e744
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x45e722
mov edx, dword [ebp + 8]
nop word [eax + eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x45e710
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov ecx, esi
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.0045c2d0
add esp, 0x10
mov al, byte [esp + 0xf]
test al, al
jne 0x45e757
mov ecx, ebx
call fcn.0045de60
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp word [esi], 0
mov ecx, edx
jne 0x45e78b
test eax, eax
je 0x45e784
cmp esi, eax
je 0x45e784
mov ecx, esi
imul edx, edi
sub ecx, eax
push ecx
push eax
sub eax, edx
push eax
call fcn.004696f0
add esp, 0xc
mov ecx, dword [ebx + 0x18]
inc edi
lea eax, [ecx + esi]
add esi, ecx
mov edx, ecx
sub dword [esp + 0x10], 1
jne 0x45e760
jmp 0x45e6a9
Function at 0x465bb0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4b0070]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push str.User_Agent
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x465d39
mov eax, dword [esi + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 0xffffffff
je 0x465d36
test eax, eax
je 0x465d36
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00465a70
cmp dword [esp + 0x24], 0
je 0x465ce4
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push SysReAllocString
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x465c8e
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x465ccd
mov edx, dword [esp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x465c8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465d4d
push ecx
push edx
jmp 0x465cc5
push eax
call edi
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x465ccd
mov eax, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x465cc3
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x465d4d
push edx
push eax
call fcn.00467ca1
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00465a70
cmp dword [esp + 0x24], 0
jne 0x465c33
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x465d1c
mov edx, dword [esp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x465d12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465d4d
push ecx
push edx
call fcn.00467ca1
add esp, 8
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x465c14
push ebx
call edi
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046780a
mov esp, ebp
pop ebp
ret
call fcn.0046c9ef
int3
Function at 0x468721
Capabilities:
Parse pe header

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

Function at 0x475811
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00468970
mov eax, dword [0x4b0070]
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.0047a27d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x475853
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4759af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00488820
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 + 0x4b2c10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0047bce4
mov ecx, dword [esi*4 + 0x4b2c10]
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 0x4759a8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4759a8
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 0x4759a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047bce4
add esp, 0x14
test edx, edx
jl 0x4759a8
jg 0x47591e
test eax, eax
jb 0x4759a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4759a8
jl 0x475938
cmp dword [ebp - 0x1008], eax
ja 0x4759a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x475956
test ebx, ebx
je 0x47598f
cmp ecx, edi
jae 0x47598f
mov al, byte [ecx]
cmp al, 0xd
jne 0x475970
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47597c
cmp byte [ecx + 1], 0xa
jne 0x47597c
inc ecx
jmp 0x47597c
movzx eax, al
movsx eax, byte [eax + 0x4b0480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x475956
cmp edx, ebx
jne 0x475956
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4759ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046780a
leave
ret

Function at 0x47aa93
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49157c
push 0x491574
push str.FlsAlloc
push 0x1e
call fcn.0047a93c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47aac7
push dword [ebp + 8]
mov ecx, esi
call dword [0x48d56c]
call esi
jmp 0x47aacd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x47ab11
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49158c
push 0x491584
push str.FlsGetValue
push 0x20
call fcn.0047a93c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47ab48
push dword [ebp + 8]
mov ecx, esi
call dword [0x48d56c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x47c0be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047bd60

Function at 0x47c0c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047beef

Function at 0x47df8b
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 + 0x4b2c10]
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 0x47dfcb
cmp byte [ebx], 0xa
jne 0x47dfcb
or byte [eax + edi + 0x28], 4
jmp 0x47dfd0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47e0ce
mov al, byte [edx]
cmp al, 0x1a
je 0x47e0b0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47dfff
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x47e024
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47e02e
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 0x47dfe1
jmp 0x47e0ce
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 0x47e0ab
cmp dword [ebp - 0xc], 0
je 0x47e0ab
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b2c10]
test byte [eax + edi + 0x28], 0x48
je 0x47e085
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47e070
mov byte [esi], dl
jmp 0x47e081
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b2c10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47e0ce
cmp byte [ebp - 1], 0xa
jne 0x47e094
cmp esi, ebx
jne 0x47e094
mov byte [esi], 0xa
jmp 0x47e0cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047bd02
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47e0ce
mov byte [esi], 0xd
jmp 0x47e0cd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b2c10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47e0ca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47e0ce
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47e0d7
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 + 0x4b2c10]
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 0x47e11a
cmp word [esi], dx
jne 0x47e11a
or byte [edi + eax + 0x28], 4
jmp 0x47e11f
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 0x47e272
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 0x47e252
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x47e161
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47e197
cmp eax, edx
jae 0x47e1a3
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 0x47e139
jmp 0x47e272
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 0x47e24e
cmp dword [ebp - 0x14], 0
je 0x47e24e
mov eax, dword [ebx*4 + 0x4b2c10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x47e226
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47e1ef
mov word [esi], cx
jmp 0x47e222
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b2c10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b2c10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b2c10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x47e272
pop ebx
cmp word [ebp - 4], bx
jne 0x47e237
cmp esi, dword [ebp + 0xc]
jne 0x47e237
mov word [esi], bx
jmp 0x47e26f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047bd02
add esp, 0x10
cmp word [ebp - 4], bx
je 0x47e272
push 0xd
jmp 0x47e26b
mov ecx, dword [ebx*4 + 0x4b2c10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47e269
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47e272
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 0x480dec
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b0070]
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 0x480e37
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00480f8b
test al, al
jne 0x480e31
sub edx, 2
cmp edx, edi
jne 0x480e17
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x480e59
lea eax, [edi + 2]
cmp edx, eax
je 0x480e59
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00480d38
add esp, 0x10
jmp 0x480f53
push esi
lea ecx, [ebp - 0x255]
call fcn.00480f8b
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 0x480e9c
push dword [ebp - 0x25c]
jmp 0x480e49
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 0x480ed9
cmp word [ebp - 0x226], 0
je 0x480efa
cmp word [ebp - 0x226], ax
jne 0x480ed9
cmp word [ebp - 0x224], 0
je 0x480efa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00480d38
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x480f46
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x480eb3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x480f2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x480f53
push 0x480b68
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004873c0
add esp, 0x10
jmp 0x480f23
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.0046780a
leave
ret