joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f3b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], 0x106bb
mov dword [ebp - 0x58], 0xb789
mov dword [ebp - 0x48], 0x81c
mov dword [ebp - 0x5c], 0xa074
mov dword [ebp - 0x60], 0x2c8f
mov dword [ebp - 0x18], 0x1030f
mov dword [ebp - 0x24], 0x922f
mov dword [ebp - 0x34], 0x128c9
mov dword [ebp - 0xc], 0x4ce0
mov dword [ebp - 0x44], 0x13508
mov dword [ebp - 0x3c], 0x1f58
mov dword [ebp - 0x64], 0x1722
mov dword [ebp - 0x68], 0xb5d3
mov dword [ebp - 0x6c], 0xcce6
mov dword [ebp - 8], 0x6712
mov dword [ebp - 0x70], 0x12ec1
mov dword [ebp - 0x30], 0x16225
mov dword [ebp - 0x38], 0x1c8
mov dword [ebp - 0x54], 0x69ab
mov dword [ebp - 0x74], 0x11ef0
mov dword [ebp - 0x1c], 0xec91
mov dword [ebp - 0x40], 0xacc1
mov dword [ebp - 0x20], 0x12e3d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0xc]
jge 0x41f468
mov dword [ebp - 0x14], 1
jmp 0x41f46f
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x38]
or ecx, dword [ebp - 0x14]
je 0x41f58c
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 8]
jne 0x41f58c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x3c]
jne 0x41f58c
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 8]
jne 0x41f58c
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x44]
jne 0x41f58c
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jne 0x41f58c
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jge 0x41f4cb
mov dword [ebp - 0x28], 1
jmp 0x41f4d2
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0x14]
add ecx, 1
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x50]
jge 0x41f4fb
mov dword [ebp - 0x2c], 1
jmp 0x41f502
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x2c]
je 0x41f58c
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jne 0x41f58c
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 8]
jne 0x41f58c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x41f58c
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jne 0x41f58c
push 0xbe26
push 0x8d01
push 0xc904
push 0x12057
push 0xcda1
push 0x9884
push 0xd6da
call dword [sym.imp.KERNEL32.dll_GetFileBandwidthReservation]
add esp, 0x1c
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
push 0xc76b
push 0x17e9f
push 0x706e
push 0x44f6
push 0x38c2
push 0x14fb7
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x18
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x41f5a7
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
sub edx, 0x106bb
cmp dword [ebp - 0x10], edx
jge 0x41f5c0
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
jmp 0x41f59e
mov esp, ebp
pop ebp
ret
Function at 0x424ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x3c], 0x16210
mov dword [ebp - 0x20], 0xb96f
mov dword [ebp - 0x40], 0x170f0
mov dword [ebp - 0x30], 0x4d50
mov dword [ebp - 0x14], 0x157ac
mov dword [ebp - 0x28], 0x112c7
mov dword [ebp - 0x44], 0x14c23
mov dword [ebp - 0x18], 0x7dad
mov dword [ebp - 0xc], 0x112f
mov dword [ebp - 0x10], 0x7fd7
mov dword [ebp - 0x48], 0x6ac8
mov dword [ebp - 0x4c], 0xee9d
mov dword [ebp - 0x50], 0x28b0
mov dword [ebp - 0x54], 0x3c0
mov dword [ebp - 8], 0x17f09
mov dword [ebp - 0x58], 0x11efb
mov dword [ebp - 0x1c], 0x12f03
mov dword [ebp - 0x2c], 0x42cd
mov dword [ebp - 0x5c], 0xbfaa
mov dword [ebp - 0x34], 0x88fc
mov dword [ebp - 0x60], 0x14eb
mov dword [ebp - 0x24], 0x1275e
mov dword [ebp - 0x38], 0xf48f
mov eax, dword [0x48701c]
add eax, 0x17bb
push eax
call fcn.00414d60
add esp, 4
mov ecx, dword [0x487004]
add ecx, 0xa547
push ecx
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 4], 0
jmp 0x424fa1
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 0x17f08
cmp dword [ebp - 4], eax
jge 0x424fbf
mov ecx, dword [0x487018]
add ecx, 1
mov dword [0x487018], ecx
jmp 0x424f98
mov edx, dword [0x487030]
sub edx, 0xeaeb
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd7fb
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x450c
push ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x169b
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xed36
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x128ab
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x8eac
push edx
mov eax, dword [0x487018]
add eax, 0x1dcc
push eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x12e23
push ecx
mov edx, dword [0x487024]
add edx, 0x924f
push edx
call fcn.00405ee0
add esp, 0x28
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x43298a
Capabilities:
Parse pe header

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

Function at 0x43f044
Capabilities:
Parse pe header

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

Function at 0x45ecc9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045eb9d
Function at 0x45f7c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4871c0]
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 0x45f80f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045fc64
test al, al
jne 0x45f809
sub edx, 2
cmp edx, edi
jne 0x45f7ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45f831
lea eax, [edi + 2]
cmp edx, eax
je 0x45f831
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045f48b
add esp, 0x10
jmp 0x45f92b
push esi
lea ecx, [ebp - 0x255]
call fcn.0045fc64
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 0x45f874
push dword [ebp - 0x25c]
jmp 0x45f821
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 0x45f8b1
cmp word [ebp - 0x226], 0
je 0x45f8d2
cmp word [ebp - 0x226], ax
jne 0x45f8b1
cmp word [ebp - 0x224], 0
je 0x45f8d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045f48b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45f91e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45f88b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45f906
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45f92b
push 0x45eedb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0046aa50
add esp, 0x10
jmp 0x45f8fb
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.00432f09
leave
ret
Function at 0x4611ab
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 0x461248
push ebx
push esi
call fcn.00461167
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.004610a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4611f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x461247
push edi
push eax
call fcn.004639b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x461215
call fcn.0045ee89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x461246
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004610a4
add esp, 0x20
test eax, eax
jne 0x461234
push edi
call fcn.0045ee89
jmp 0x46123c
push ebx
call fcn.0045ee89
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 0x46124b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46125c
pop esi
ret
push ebx
push edi
push esi
call fcn.00461167
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004639b1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x461284
push ebx
push esi
push edi
call fcn.0043bab0
add esp, 0xc
push 0
call fcn.0045ee89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x461b73
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004614f9

Function at 0x465cc9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045e1e3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x465d38
cmp esi, dword [ebp - 4]
je 0x465d33
cmp dword [ebp + 0xc], 0
je 0x465d33
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x465d10
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046581b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x465d3a
xor eax, eax
inc eax
jmp 0x465d3a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x465d9f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4871c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0045e1e3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0045e1e3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x465e16
cmp word [ecx], dx
je 0x465e16
mov eax, dword [0x47ed2c]
push edi
dec eax
push eax
push 0x47ec18
call fcn.00465d3e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x465e89
cmp word [eax], dx
je 0x465e89
mov eax, dword [edi]
test eax, eax
je 0x465e3a
cmp word [eax], dx
je 0x465e3a
lea eax, [ebp - 0x10]
push eax
call fcn.00465721
jmp 0x465e43
lea eax, [ebp - 0x10]
push eax
call fcn.004657bc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x465eb3
mov eax, dword [0x47ec14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x47e908
call fcn.00465d3e
add esp, 0xc
test al, al
je 0x465eb3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x465e7e
cmp word [eax], di
je 0x465e7e
lea eax, [ebp - 0x10]
push eax
call fcn.00465721
pop ecx
jmp 0x465eb5
lea eax, [ebp - 0x10]
push eax
call fcn.004657bc
jmp 0x465e7b
mov eax, dword [edi]
test eax, eax
je 0x465ea0
cmp word [eax], dx
je 0x465ea0
lea eax, [ebp - 0x10]
push eax
call fcn.004656b8
pop ecx
jmp 0x465eb3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x465f7e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00465bc3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x465f7e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x465f7e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x465f7e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x465f0b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00466c8c
test ebx, ebx
je 0x465f79
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00466c8c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x465f7e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x465f7e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0046bf13
add esp, 0x10
xor eax, eax
inc eax
jmp 0x465f80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432f09
leave
ret
Function at 0x4668fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ff54
push 0x47ff4c
push str.FlsAlloc
push 0x1f
call fcn.004665cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x466932
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c34c]
call esi
jmp 0x466938
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46697c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ff64
push 0x47ff5c
push str.FlsGetValue
push 0x21
call fcn.004665cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4669b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c34c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4669bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ff6c
push 0x47ff64
push str.FlsSetValue
push 0x22
call fcn.004665cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4669f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47c34c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47307b
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 + 0x488b30]
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 0x4730bb
cmp byte [ebx], 0xa
jne 0x4730bb
or byte [edi + eax + 0x28], 4
jmp 0x4730c0
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 0x4731bf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4731a2
inc eax
cmp dl, 0xd
je 0x4730ec
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x473112
cmp eax, ecx
jae 0x473120
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 0x4730d4
jmp 0x4731bf
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 0x47319d
cmp dword [ebp - 0x10], 0
je 0x47319d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x488b30]
test byte [eax + edi + 0x28], 0x48
je 0x473177
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x473162
mov byte [esi], dl
jmp 0x473173
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x488b30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4731bf
cmp byte [ebp - 1], 0xa
jne 0x473186
cmp esi, ebx
jne 0x473186
mov byte [esi], 0xa
jmp 0x4731be
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00472ecd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4731bf
mov byte [esi], 0xd
jmp 0x4731be
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x488b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4731bc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4731bf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4731c8
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 + 0x488b30]
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 0x47320e
cmp word [ebx], dx
jne 0x47320e
or byte [eax + edi + 0x28], 4
jmp 0x473213
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 0x473376
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 0x473356
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x473254
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47328a
cmp eax, edx
jae 0x473298
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 0x47322f
jmp 0x473376
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 0x473351
cmp dword [ebp - 0x18], 0
je 0x473351
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x488b30]
test byte [eax + edi + 0x28], 0x48
je 0x473327
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 0x4732eb
mov word [esi], cx
jmp 0x473322
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x488b30]
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 + 0x488b30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x488b30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x473376
pop eax
cmp word [ebp - 4], ax
jne 0x473337
cmp esi, ebx
jne 0x473337
mov word [esi], ax
jmp 0x473373
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00472ecd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x473376
push 0xd
pop eax
jmp 0x473332
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x488b30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x473370
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x473376
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 0x477e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x477e5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x477e5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xe346d5
Capabilities:
Check http status code
Encrypt data using speck

Disassembly:
push ebp
inc ecx
rcl eax, 0x27
rcr bp, 0x95
mov ebp, esp
sub esp, 0x50
push ebx
rcl ecx, 0xe9
push esi
push edi
cmc
rcl bx, 0x58
bsr esi, ecx
mov edi, dword [ebp + 8]
btr ax, 0x9b
mov ecx, dword [edi + 0x38]
xor bh, ch
mov eax, dword [edi + 0x10]
add edx, ebx
bsr esi, edx
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
movzx eax, sp
shrd eax, edi, 0xa6
mov eax, dword [edi + 0x40]
rcl bh, 0xc3
btr esi, ebx
mov ebx, dword [edi + 0x34]
mov dword [ebp - 0x18], ecx
bt si, 0x33
btc cx, dx
mov ecx, dword [edi + 0x44]
add si, 0x798b
xchg si, si
mov esi, dword [edi + 0x20]
test al, al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
cmc
sal ax, cl
stc
mov ecx, dword [edi + 8]
cmc
mov dword [ebp - 0x2c], edx
mov edx, 1
xor ax, cx
dec eax
bsf ax, bp
shl edx, cl
bsf ecx, ebx
mov ecx, dword [edi + 4]
movzx eax, dx
clc
mov eax, 1
shl eax, cl
xchg ch, cl
dec cl
mov ecx, ebp
mov ecx, dword [edi + 0x14]
dec edx
mov dword [ebp - 0x34], ecx
bswap ecx
mov ecx, 0x4ebc019f
mov ecx, dword [edi + 0x24]
dec eax
stc
cmp ebp, ebp
mov dword [ebp - 0x48], eax
mov eax, dword [edi]
cmp ebx, ecx
mov dword [ebp - 0x40], eax
xor eax, 0x517c30bb
sub ah, bl
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x24], eax
shr ah, cl
movsx ax, dh
mov eax, dword [edi + 0x2c]
test esp, 0x128368af
mov dword [ebp - 0x10], eax
not al
and ax, 0x288b
mov eax, dword [edi + 0x18]
test sp, bp
cmp ax, 0x5031
mov dword [ebp - 0xc], ecx
mov cx, cx
bts ecx, esp
dec cl
mov ecx, dword [edi + 0x30]
test edi, 0x15e17552
cmp bl, 0xc0
mov dword [ebp - 4], eax
sbb ax, bp
mov eax, dword [edi + 0x1c]
stc
mov dword [ebp - 0x14], ebx
test dl, bl
test ebp, 0x265f647e
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], 0
sbb cl, ch
sar cx, cl