joyce8/EMBER2024-capa huggingface dataset:
Function at 0x551ba0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x114], 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [esi + 0x100]
jb 0x551bcf
mov eax, dword [eax]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x551c51
cmp dword [ebp + 8], 0
je 0x551c3b
cmp dword [esi + 0x12c], 8
lea eax, [esi + 0x118]
jb 0x551c06
mov eax, dword [eax]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [esi + 0xd8], eax
test eax, eax
je 0x551c3b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd8], 0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x551c91
cmp dword [esi + 0x12c], 8
lea eax, [esi + 0x118]
jb 0x551c68
mov eax, dword [eax]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x551aa0
push 0
push 0
mov dword [esi + 0xd8], eax
call fcn.005a1b03
add esp, 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 4

Function at 0x5520e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0059a8e0
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
lea eax, [ebp - 0x1004]
mov esi, ecx
push 0
push eax
call fcn.0059dbb0
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x800
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], eax
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1040], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x619ad0
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x103c], 0
push eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 0
mov dword [ebp - 0x1048], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x552228
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1058]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1054]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
Function at 0x553cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov edx, esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
jmp 0x553cf0
mov al, byte [edx]
inc edx
test al, al
jne 0x553cf0
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.004057b8
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + 8]
mov ebx, dword [ebp - 0xc]
cmovae esi, edi
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x553d38
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x553d24
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00552990
mov ebx, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
jne 0x553d55
mov esi, dword [ebx + 0xc]
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x553d84
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x553d7a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x553da0
push ecx
push edi
call fcn.00599f8e
add esp, 8
cmp esi, dword [ebx + 0xc]
je 0x553d95
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.005a1930
int3

Function at 0x553db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov edx, esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea ecx, [edx + 1]
jmp 0x553de0
mov al, byte [edx]
inc edx
test al, al
jne 0x553de0
sub edx, ecx
lea ecx, [ebp - 0x1c]
push edx
push esi
call fcn.004057b8
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
lea eax, [ebx + 0x28]
mov ebx, dword [ebp - 0xc]
cmovae esi, edi
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x553e28
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x553e14
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00552990
mov ebx, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
jne 0x553e45
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x553e74
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x553e6a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x553e90
push ecx
push edi
call fcn.00599f8e
add esp, 8
cmp esi, dword [ebx + 0x2c]
je 0x553e85
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.005a1930
int3
Function at 0x55aa90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e628e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 0x14]
mov dword [ebp - 0x30], 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x55ac4c
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x55ac43
mov eax, dword [ebp - 0x24]
xor ecx, ecx
inc eax
mov edx, 2
xor ebx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005649e3
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], ebx
jbe 0x55ac3a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push edi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x28]
mov word [edi + eax*2], dx
test ecx, ecx
jne 0x55ac30
call fcn.0056500f
test eax, eax
je 0x55ac6a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00404e34
test al, al
jne 0x55abe9
test edi, edi
jne 0x55abca
xor eax, eax
jmp 0x55abdf
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55abd0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405684
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
push ecx
cmp eax, dword [esi + 8]
je 0x55ac09
mov ecx, eax
call fcn.0048b8d0
add dword [esi + 4], 4
jmp 0x55ac11
push eax
mov ecx, esi
call fcn.004069fc
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x55ac30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x55ab53
push edi
call fcn.005649de
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404e0e
int3
Function at 0x55c020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
test esi, esi
je 0x55c06a
mov eax, dword [edi + 0x28]
test eax, eax
je 0x55c06a
push ebx
xor ebx, ebx
test eax, eax
je 0x55c069
add esi, 0x29
lea esp, [esp]
lea ecx, [eax - 1]
xor edx, edx
mov eax, 0xff
lea esi, [esi + 4]
div ecx
movzx ecx, bl
inc ebx
movzx eax, al
imul eax, ecx
mov byte [esi - 3], al
mov byte [esi - 4], al
mov byte [esi - 5], al
mov eax, dword [edi + 0x28]
cmp ebx, eax
jb 0x55c040
pop ebx
pop edi
pop esi
ret

Function at 0x55cb80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x55cb8e
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005ae0a8
add esp, 0x10
pop ebp
ret 0xc

Function at 0x567812
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x567851
call fcn.005710c5
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x567851
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x567859
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0056445e
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x5680d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x568160
cmp dword [esi + 0x20], 0
je 0x568160
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x568160
cmp dword [ebp + 8], 0
je 0x568160
xor edi, edi
mov ebx, edi
call fcn.005710c5
push 0x61b490
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x568144
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x568160
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0058ac25
mov edi, eax
add esp, 0xc
test edi, edi
je 0x56815c
mov ecx, esi
call fcn.00567e72
mov eax, edi
jmp 0x568162
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x56c9aa
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5d06bd
call fcn.00599fdc
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x56c9d0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x56ca2a
lea ecx, [ebp - 0x10]
call fcn.00404c19
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5eab58]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005b7cc3
push eax
call fcn.00404d28
add esp, 0x14
test esi, esi
je 0x56ca1d
push esi
call fcn.005a1d66
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405641
mov eax, ebx
call fcn.00599faa
ret 8

Function at 0x56d230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x56d25b
cmp dword [edi + 0x80], 0
jne 0x56d25b
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.005710c5
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0056d488
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x56fde3
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x56fe36
push esi
push dword [ebp + 8]
call fcn.0056ffcc
mov edi, eax
test edi, edi
je 0x56fe31
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x56fe31
mov eax, dword [ebp - 8]
jmp 0x56fe48
mov eax, dword [ebp + 0x10]
jmp 0x56fe48
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x579d0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x579d54
call fcn.005710c5
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x579d51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x579d9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x579d77
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5eab58]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x579d98
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5eab58]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x5861b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.005710c5
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x586289
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x586289
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x586289
movzx eax, word [edi + 6]
xor ecx, ecx
push ebx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005649e3
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x586243
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x58622f
mov eax, esi
mov ecx, dword [ebp - 4]
movzx eax, ax
push eax
push ebx
call fcn.00586291
push ebx
mov esi, eax
call fcn.005649de
pop ecx
test esi, esi
je 0x586284
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 4]
lea edx, [esi + 7]
push eax
push edx
call fcn.00586418
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00586167
mov esi, eax
mov eax, esi
pop ebx
jmp 0x58628b
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x58825d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x588286
call fcn.005710c5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x5882b3
push esi
push eax
mov ecx, 0x66bfe4
call fcn.005890cd
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.005886cb
int3
Function at 0x5ae90a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0059a8e0
mov eax, dword [0x65eb68]
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.005ace60
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5ae94c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5aeaa8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0059aa20
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 + 0x66d078]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005c607b
mov ecx, dword [esi*4 + 0x66d078]
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 0x5aeaa1
cmp eax, dword [edi + ecx + 0x24]
jne 0x5aeaa1
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 0x5aeaa1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005c607b
add esp, 0x14
test edx, edx
jl 0x5aeaa1
jg 0x5aea17
test eax, eax
jb 0x5aeaa1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5aeaa1
jl 0x5aea31
cmp dword [ebp - 0x1008], eax
ja 0x5aeaa1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5aea4f
test ebx, ebx
je 0x5aea88
cmp ecx, edi
jae 0x5aea88
mov al, byte [ecx]
cmp al, 0xd
jne 0x5aea69
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5aea75
cmp byte [ecx + 1], 0xa
jne 0x5aea75
inc ecx
jmp 0x5aea75
movzx eax, al
movsx eax, byte [eax + 0x65f508]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5aea4f
cmp edx, ebx
jne 0x5aea4f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5aeaa6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00599f9c
leave
ret

Function at 0x5bec82
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x624f74
push 0x624f6c
push 0x621818
push 0x1e
call fcn.005beaaf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5becb6
push dword [ebp + 8]
mov ecx, esi
call dword [0x5eab58]
call esi
jmp 0x5becbc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5bed00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x624f84
push 0x624f7c
push 0x62182c
push 0x20
call fcn.005beaaf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5bed37
push dword [ebp + 8]
mov ecx, esi
call dword [0x5eab58]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5c6455
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c60f7

Function at 0x5c6460
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c6286

Function at 0x5c646b
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 + 0x66d078]
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 0x5c64ab
cmp byte [ebx], 0xa
jne 0x5c64ab
or byte [eax + edi + 0x28], 4
jmp 0x5c64b0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5c65ae
mov al, byte [edx]
cmp al, 0x1a
je 0x5c6590
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5c64df
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5c6504
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5c650e
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 0x5c64c1
jmp 0x5c65ae
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 0x5c658b
cmp dword [ebp - 0xc], 0
je 0x5c658b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x66d078]
test byte [eax + edi + 0x28], 0x48
je 0x5c6565
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5c6550
mov byte [esi], dl
jmp 0x5c6561
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x66d078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5c65ae
cmp byte [ebp - 1], 0xa
jne 0x5c6574
cmp esi, ebx
jne 0x5c6574
mov byte [esi], 0xa
jmp 0x5c65ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005c6099
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5c65ae
mov byte [esi], 0xd
jmp 0x5c65ad
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x66d078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5c65aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5c65ae
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret