joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x4dd1dc
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x4dd0c6
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd0d1
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd0dc
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [edi + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [edi + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd10e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd11b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd125
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd12f
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd13a
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4dd145
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
mov dword [esi], ebx
mov esi, dword [ebp - 4]
lea eax, [edi + 0x1cb2]
push 0x3e
call fcn.004dc7f0
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x140]
push edx
call esi
test eax, eax
jns 0x4dd19b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.004c1e70
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
call fcn.004dd5a0
mov edx, dword [ebx + 0x140]
add esp, 8
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
test eax, eax
jns 0x4dd1dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.004c1e70
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ddb90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005106b4
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4ddbf4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x4ddbf4
lea edx, [ebp - 0x108]
push edx
call dword [0x56e854]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004f6bad
mov esp, ebp
pop ebp
ret

Function at 0x4ddc10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ddb90
Function at 0x4e11f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4e1380
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x4e1362
push esi
nop
cmp dword [edi + 4], 2
jne 0x4e12ea
cmp dword [edi + 0x18], ebx
je 0x4e12ea
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4e12ea
cmp eax, 0x10
jb 0x4e12ea
push 0x20
call dword [0x56e848]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4e12f7
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x56e848]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4e1300
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4e12d5
push eax
call dword [0x56e854]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4e1313
cmp dword [ebp - 4], ebx
jne 0x4e12dd
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4e12e7
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4e1230
jmp 0x4e132e
mov dword [ebp - 8], 8
jmp 0x4e132e
push esi
mov dword [ebp - 8], 8
call dword [0x56e84c]
add esp, 4
jmp 0x4e132e
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x56e84c]
push esi
call dword [0x56e84c]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x4e133d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x4e135d
mov eax, dword [ebp - 4]
call fcn.004e11b0
mov ecx, dword [ebp + 0x10]
mov eax, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x4e1374
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e1580
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x4c1270
push 0
push 0
call fcn.0052a35f
add esp, 0x18
test eax, eax
je 0x4e159f
cmp eax, 0xffffffff
jne 0x4e15a1
xor eax, eax
ret
Function at 0x4e2660
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4e2693
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x4e3140
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x4e3155
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004c2720
push edx
push eax
call fcn.004c2750
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x4e31a2
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0x130]
push eax
push ecx
call fcn.004c2720
push edx
push eax
call fcn.004c2750
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4e31a4
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4e4650
Capabilities:
Get hostname

Disassembly:
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0x4e467e
push 0x2e
push esi
call fcn.004f7ad0
add esp, 8
test eax, eax
je 0x4e467c
mov byte [eax], 0
xor eax, eax
ret

Function at 0x4e4680
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x2c
mov ebx, eax
mov edi, ecx
call dword [0x56e848]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e46a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi], fcn.004e2660
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp ebx, 0x40
jbe 0x4e46e8
push eax
call dword [0x542260]
mov edx, dword [esi + 4]
push ebx
push edi
push edx
call dword [0x542264]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
push eax
add edi, 8
push edi
call dword [0x542268]
add esp, 0x18
mov ebx, 0x10
mov ecx, dword [esi + 4]
push ecx
call dword [0x542260]
mov edx, dword [esi + 8]
push edx
call dword [0x542260]
add esp, 8
xor eax, eax
test ebx, ebx
je 0x4e4751
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jmp 0x4e4710
movzx eax, byte [edi]
xor al, 0x36
push 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], al
mov edx, dword [esi + 4]
push ecx
push edx
call dword [0x542264]
movzx eax, byte [edi]
xor al, 0x5c
push 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], al
mov edx, dword [esi + 8]
push ecx
push edx
inc edi
call dword [0x542264]
add esp, 0x18
dec dword [ebp - 8]
jne 0x4e4710
cmp ebx, 0x40
jae 0x4e4788
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
jmp 0x4e4760
mov eax, dword [esi + 4]
push 1
push 0x542248
push eax
call dword [0x542264]
mov ecx, dword [esi + 8]
push 1
push 0x542249
push ecx
call dword [0x542264]
add esp, 0x18
dec edi
jne 0x4e4760
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f6bad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56adc0]
jne 0x4f6bb7
repz ret
jmp fcn.004fbd8c

Function at 0x50495e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fd848
and dword [ebp - 0x14], 0
cmp dword [0x57154c], 0
mov dword [ebp - 0x18], eax
jne 0x504a11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x504ab9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x504ab9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x57154c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x571550], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x571554], eax
call edi
push eax
call esi
mov dword [0x57155c], eax
test eax, eax
je 0x504a11
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x571558], eax
mov eax, dword [0x571558]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x504a6a
cmp dword [0x57155c], ecx
je 0x504a6a
push eax
call esi
push dword [0x57155c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x504a6a
test ebx, ebx
je 0x504a6a
call edi
test eax, eax
je 0x504a61
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x504a61
test byte [ebp - 8], 1
jne 0x504a6a
or dword [ebp + 0x10], 0x200000
jmp 0x504a9d
mov eax, dword [0x571550]
cmp eax, dword [ebp - 0x18]
je 0x504a9d
push eax
call esi
test eax, eax
je 0x504a9d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x504a9d
mov eax, dword [0x571554]
cmp eax, dword [ebp - 0x18]
je 0x504a9d
push eax
call esi
test eax, eax
je 0x504a9d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57154c]
call esi
test eax, eax
je 0x504ab9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x504abb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6bad
leave
ret
Function at 0x51aa00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d4f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004f6d68
mov dword [esi], vtable.boost::program_options::error_with_option_name.0
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov dword [esp + 0x1c], 0
mov dword [esi + 0xc], eax
call fcn.00519890
lea eax, [edi + 0x20]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x1c], 1
call fcn.00519e50
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
push 0
lea edx, [edi + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [esp + 0x24], 2
mov byte [ecx], 0
call fcn.00404243
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
push 0
add edi, 0x4c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [esp + 0x24], 3
mov byte [ecx], 0
call fcn.00404243
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4028ce
Capabilities:
Terminate process

Disassembly:
jmp 0x44ec47
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x44ec58
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403fc6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402973
Capabilities:
Query environment variable

Disassembly:
jmp 0x45ae20
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45ae31
pop esi
ret
push ebx
push edi
push esi
call fcn.0045ad07
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402f13
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45ae59
push ebx
push esi
push edi
call fcn.00403e59
add esp, 0xc
push 0
call fcn.004045c5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403ee0
Capabilities:
Parse pe header

Disassembly:
jmp 0x409006
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409045
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409045
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409045
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409045
cmp dword [ecx + 0x74], 0xe
jbe 0x409045
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x458dc1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4860c0]
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 0x458e0c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004592cc
test al, al
jne 0x458e06
sub edx, 2
cmp edx, edi
jne 0x458dec
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x458e2e
lea eax, [edi + 2]
cmp edx, eax
je 0x458e2e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004589ba
add esp, 0x10
jmp 0x458f28
push esi
lea ecx, [ebp - 0x255]
call fcn.004592cc
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 0x458e71
push dword [ebp - 0x25c]
jmp 0x458e1e
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 0x458eae
cmp word [ebp - 0x226], 0
je 0x458ecf
cmp word [ebp - 0x226], ax
jne 0x458eae
cmp word [ebp - 0x224], 0
je 0x458ecf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004589ba
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x458f1b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x458e88
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x458f03
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x458f28
push 0x4582a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403d3c
add esp, 0x10
jmp 0x458ef8
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.00402518
leave
ret
Function at 0x46bd4a
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 + 0x488190]
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 0x46bd8a
cmp byte [ebx], 0xa
jne 0x46bd8a
or byte [eax + edi + 0x28], 4
jmp 0x46bd8f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46be8d
mov al, byte [edx]
cmp al, 0x1a
je 0x46be6f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46bdbe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46bde3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46bded
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 0x46bda0
jmp 0x46be8d
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 0x46be6a
cmp dword [ebp - 0xc], 0
je 0x46be6a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x488190]
test byte [eax + edi + 0x28], 0x48
je 0x46be44
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46be2f
mov byte [esi], dl
jmp 0x46be40
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x488190]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46be8d
cmp byte [ebp - 1], 0xa
jne 0x46be53
cmp esi, ebx
jne 0x46be53
mov byte [esi], 0xa
jmp 0x46be8c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004015f5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46be8d
mov byte [esi], 0xd
jmp 0x46be8c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x488190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46be89
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46be8d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46bee9
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 + 0x488190]
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 0x46bf2c
cmp word [esi], dx
jne 0x46bf2c
or byte [edi + eax + 0x28], 4
jmp 0x46bf31
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 0x46c084
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 0x46c064
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46bf73
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46bfa9
cmp eax, edx
jae 0x46bfb5
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 0x46bf4b
jmp 0x46c084
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 0x46c060
cmp dword [ebp - 0x14], 0
je 0x46c060
mov eax, dword [ebx*4 + 0x488190]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46c038
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46c001
mov word [esi], cx
jmp 0x46c034
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x488190]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x488190]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x488190]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46c084
pop ebx
cmp word [ebp - 4], bx
jne 0x46c049
cmp esi, dword [ebp + 0xc]
jne 0x46c049
mov word [esi], bx
jmp 0x46c081
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004015f5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46c084
push 0xd
jmp 0x46c07d
mov ecx, dword [ebx*4 + 0x488190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46c07b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46c084
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 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5fb063e1
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1d2059e1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ba2
Capabilities:
Parse pe header

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

Function at 0x407c5d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415610
push 0x415608
push str.FlsAlloc
push 0x1f
call fcn.00407b1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407c91
push dword [ebp + 8]
mov ecx, esi
call dword [0x414138]
call esi
jmp 0x407c97
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407cdb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415620
push 0x415618
push str.FlsGetValue
push 0x21
call fcn.00407b1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d12
push dword [ebp + 8]
mov ecx, esi
call dword [0x414138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407d1a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415628
push 0x415620
push str.FlsSetValue
push 0x22
call fcn.00407b1c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d54
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]