joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f28
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x417f4c
jl 0x417f43
test ebx, ebx
jne 0x417f4c
xor eax, eax
xor edx, edx
jmp 0x418009
cmp dword [esi + 0x38], 0
je 0x417f61
push eax
push ebx
push dword [ebp + 8]
call fcn.0041800f
jmp 0x418009
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x417fa4
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x417fa4
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004524c0
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x417faa
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x417ffe
mov ecx, esi
call fcn.004171cd
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x417fe9
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0045ad2d
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x417ffe
jmp 0x417fbc
test edx, edx
je 0x417ffe
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0045ad2d
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4183ad
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x419ba9
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp + 0x10]
push 0x47d5cc
push eax
mov dword [ebp - 0x264], ecx
call fcn.0045871f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419cd7
push esi
push 2
xor edi, edi
push edi
push ebx
call fcn.0045b1b8
push ebx
call fcn.0045bf3c
push edi
push edi
push ebx
mov esi, eax
call fcn.0045b1b8
add esp, 0x1c
mov eax, 0x258
cmp esi, eax
pop esi
jne 0x419cd7
push ebx
push 1
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0045ad2d
push ebx
call fcn.0045862d
add esp, 0x14
cmp byte [ebp - 0x1dc], 0x39
jne 0x419cd7
cmp byte [ebp - 0x1db], 0xd5
jne 0x419cd7
cmp byte [ebp - 0x150], 0x4d
jne 0x419cd7
cmp byte [ebp - 0x14f], 0xe7
jne 0x419cd7
mov eax, dword [ebp - 0x1d8]
mov ecx, edi
test eax, eax
je 0x419c7f
xor byte [ebp + ecx - 0x1d4], 0x5a
inc ecx
mov eax, dword [ebp - 0x1d8]
cmp ecx, eax
jb 0x419c6c
cmp dword [ebp - 0x154], edi
jbe 0x419c9e
xor byte [ebp + edi - 0x14e], 0x5a
inc edi
cmp edi, dword [ebp - 0x154]
jb 0x419c87
mov eax, dword [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp - 0x260]
call fcn.004524c0
push dword [ebp - 0x154]
lea ecx, [ebp - 0x14e]
push ecx
push dword [ebp - 0x264]
call fcn.004524c0
add esp, 0x18
mov byte [0x6b3f28], 1
mov al, 1
jmp 0x419cd9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004510dc
leave
ret

Function at 0x419d85
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x419db0
push dword [ebp + 8]
call fcn.00456390
pop ecx
test eax, eax
je 0x419db0
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x41bb85
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f58
call fcn.004516d0
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x1504]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00452360
push esi
lea eax, [ebp - 0x1d04]
push ebx
push eax
call fcn.00452360
push 0x400
lea eax, [ebp - 0x904]
push ebx
push eax
call fcn.00452360
mov edi, 0x6a9f00
lea eax, [ebp - 0x904]
push edi
push str._slocalization_.
push eax
call fcn.0040674a
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x1504]
add esp, 0x30
push 0x7f
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x904]
push eax
push ebx
push 0xfde9
call esi
push 0x7f
lea eax, [ebp - 0x1d04]
push eax
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call esi
lea eax, [ebp - 0x1f54]
push eax
lea eax, [ebp - 0x1504]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bc4b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41bda7
lea eax, [ebp - 0x1f28]
push 0x47e764
push eax
call fcn.00458bc3
pop ecx
pop ecx
test eax, eax
je 0x41bd88
lea eax, [ebp - 0x1f28]
push 0x47e768
push eax
call fcn.00458bc3
pop ecx
pop ecx
test eax, eax
je 0x41bd88
cmp dword [ebp - 0x1f54], 0x10
jbe 0x41bd88
mov esi, 0x400
lea eax, [ebp - 0xd04]
push esi
push ebx
push eax
call fcn.00452360
push esi
lea eax, [ebp - 0x504]
push ebx
push eax
call fcn.00452360
push 0x100
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00452360
add esp, 0x24
lea eax, [ebp - 0xd04]
push ebx
push ebx
push 0x3ff
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1f28]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xd04]
push eax
push 0x6a9f00
lea eax, [ebp - 0x504]
push str._slocalization__s
push eax
call fcn.0040674a
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.0041baed
add esp, 0x18
test al, al
je 0x41bd88
push 0x118
call fcn.004510ea
mov dword [ebp - 0x1f58], eax
pop ecx
test eax, eax
je 0x41bd3e
mov ecx, eax
call fcn.0041be9b
mov esi, eax
jmp 0x41bd40
mov esi, ebx
lea eax, [ebp - 0x504]
mov dword [ebp - 0x1f58], esi
push eax
call fcn.00456390
pop ecx
push eax
lea eax, [ebp - 0x504]
mov ecx, esi
push eax
call fcn.00407860
push 0x7f
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0046137e
add esp, 0xc
lea eax, [ebp - 0x1f58]
mov ecx, 0x6b41dc
push eax
call fcn.00407538
lea eax, [ebp - 0x1f54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41bc4b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004510dc
leave
ret
Function at 0x41f9e1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.004510dc
leave
ret

Function at 0x41fa42
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x47fc24
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x41fa79
or dword [esi + 0x704], 0xffffffff
xor al, al
jmp 0x41fbaa
push edi
push 0
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41fa9e
mov dword [esi + 0x704], 0xfffffffe
jmp 0x41fb96
push 2
pop eax
push 0x50
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebx + 0xc]
push 8
push 0
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00452360
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x11c]
add esp, 0xc
mov dword [ebp - 0x11c], 1
push eax
push 0x8004667e
push edi
call ebx
cmp eax, 0xffffffff
jne 0x41fafe
mov dword [esi + 0x704], 0xfffffffd
jmp 0x41fb96
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x41fb71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41fb28
mov dword [esi + 0x704], 0xfffffffc
jmp 0x41fb96
xor ecx, ecx
mov dword [ebp - 0x114], edi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x118], 1
push eax
push ecx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x124], 0xfa
push eax
push ecx
push ecx
mov dword [ebp - 0x120], ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x41fb71
mov dword [esi + 0x704], 0xfffffffb
jmp 0x41fb96
and dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
push eax
push 0x8004667e
push edi
call ebx
cmp eax, 0xffffffff
jne 0x41fb9a
mov dword [esi + 0x704], 0xfffffffa
xor al, al
jmp 0x41fba9
and dword [esi + 0x704], 0
mov al, 1
mov dword [esi + 0x700], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004510dc
leave
ret
Function at 0x41fbb8
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0x434
mov eax, 0x477ef0
call fcn.004512c8
mov edi, dword [ebp + 8]
cmp dword [edi + 0x700], 0xffffffff
jne 0x41fbe4
mov dword [edi + 0x704], 0xfffffff9
xor al, al
jmp 0x41fcc1
push dword [edi]
call fcn.00456390
mov esi, eax
mov dword [esp], 0x400
xor ebx, ebx
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00452360
push esi
lea eax, [edi + 0x84]
push eax
push str.gpuscore.top
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x410]
push str.POST__s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:__lu_r_n_r_n
push eax
call fcn.0040674a
add esp, 0x24
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x428]
push eax
call fcn.004132d7
push dword [edi]
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], ebx
call fcn.004132d7
cmp dword [eax + 0x14], 0xf
mov ecx, eax
mov byte [ebp - 4], 1
jbe 0x41fc58
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x428]
call fcn.0041333b
lea ecx, [ebp - 0x440]
call fcn.00408b38
cmp dword [ebp - 0x414], 0xf
lea eax, [ebp - 0x428]
push ebx
push dword [ebp - 0x418]
cmova eax, dword [ebp - 0x428]
push eax
push dword [edi + 0x700]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41fcb2
push edi
call fcn.0041fa18
pop ecx
mov dword [edi + 0x704], 0xfffffff8
jmp 0x41fcb4
mov bl, 1
lea ecx, [ebp - 0x428]
call fcn.00408b38
mov al, bl
call fcn.00451286
ret
Function at 0x41fcc7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8104
call fcn.004516d0
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
cmp dword [esi + 0x700], edi
jne 0x41fcff
mov dword [esi + 0x704], 0xfffffff7
xor al, al
jmp 0x41fe84
push ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x8000
lea eax, [ebp - 0x8104]
push ebx
push 0
push eax
call fcn.00452360
add esp, 0xc
lea eax, [ebp - 0x8104]
push 0
push ebx
push eax
push dword [esi + 0x700]
call dword [sym.imp.WS2_32.dll_recv]
push esi
mov ebx, eax
call fcn.0041fa18
pop ecx
test ebx, ebx
jle 0x41fe77
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00452360
add esp, 0xc
cmp ebx, 0x8000
jae 0x41fe92
lea eax, [ebp - 0x8104]
mov byte [ebp + ebx - 0x8104], 0
push 0x47f7c8
push eax
call fcn.00452ee0
mov ebx, eax
lea eax, [ebp - 0x8104]
push 0x47f7cc
push eax
call fcn.00452ee0
add esp, 0x10
test ebx, ebx
je 0x41fe77
test eax, eax
je 0x41fe77
lea eax, [ebx + 1]
xor edx, edx
mov cl, byte [eax]
cmp cl, 0x5d
je 0x41fdd2
lea ebx, [ebp - 0x104]
sub ebx, eax
cmp edx, 0xff
jge 0x41fe25
mov byte [ebx + eax], cl
inc edx
inc eax
mov cl, byte [eax]
cmp cl, 0x5d
jne 0x41fdbe
lea eax, [ebp - 0x104]
push eax
call fcn.00456390
pop ecx
cmp eax, 4
jbe 0x41fe31
cmp byte [ebp - 0x104], 0x4d
jne 0x41fe31
cmp byte [ebp - 0x103], 0x53
jne 0x41fe31
cmp byte [ebp - 0x102], 0x47
jne 0x41fe31
cmp byte [ebp - 0x101], 0x3d
jne 0x41fe31
push 0xfb
lea eax, [ebp - 0x100]
push eax
lea eax, [esi + 0x454]
push eax
call fcn.00458770
add esp, 0xc
jmp 0x41fe6d
mov dword [esi + 0x704], 0xfffffffc
jmp 0x41fe81
lea eax, [ebp - 0x104]
push 0x47f7d0
push eax
call fcn.00452ee0
pop ecx
test eax, eax
lea eax, [ebp - 0x104]
pop ecx
je 0x41fe64
push 0x7f
push eax
lea eax, [esi + 0x354]
push eax
call fcn.00458770
add esp, 0xc
xor edi, edi
jmp 0x41fe6d
push eax
call fcn.00459aed
pop ecx
mov edi, eax
mov dword [esi + 0x704], edi
mov al, 1
jmp 0x41fe83
mov dword [esi + 0x704], 0xfffffff6
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004510dc
leave
ret
call fcn.004515ed
int3
Function at 0x41fe98
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], ebx
call edi
cmp eax, 0x6f
je 0x41fece
xor al, al
jmp 0x41ff51
push esi
push dword [ebp - 0x18]
call fcn.00458b75
push dword [ebp - 0x18]
mov esi, eax
push ebx
push esi
call fcn.00452360
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x41ff47
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x41ff45
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov edx, 0x47f7d4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, byte [esi + ebx + 0x194]
push eax
lea eax, [ecx - 1]
mov ecx, str._.2X_
cmp ebx, eax
lea eax, [ebp - 0x14]
cmove ecx, edx
push ecx
push eax
call fcn.0040674a
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.00458a40
mov ecx, dword [esi + 0x190]
add esp, 0x18
inc ebx
cmp ebx, ecx
jb 0x41fefb
mov bl, 1
push esi
call fcn.00458ee2
pop ecx
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004510dc
leave
ret

Function at 0x4238ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 4], 0
jne 0x4238f7
xor eax, eax
jmp 0x42390a
push dword [ecx + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0045ad2d
add esp, 0x10
pop ebp
ret 8

Function at 0x426b30
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov ecx, dword [0x6b451c]
mov ecx, dword [ecx + 8]
jmp fcn.00428000
Function at 0x431c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044dc40
Function at 0x439e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x439eaa
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x439eaa
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0x90
movups xmmword [esi + 0x10], xmm0
push 0
movq qword [esi + 0x20], xmm0
mov dword [esi], 0x10028
movzx eax, byte [ecx + 0x108b4]
mov byte [esi + 0x18], al
movzx eax, byte [ecx + 0x108ac]
mov byte [esi + 9], al
movzx eax, byte [ecx + 0x108b0]
mov byte [esi + 0x17], al
lea eax, [ebp - 0x94]
push eax
mov dword [esi + 4], 0x25
call fcn.00452360
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x439eaa
cmp dword [ebp - 0x94], 6
jb 0x439eaa
or dword [esi + 4], 0x8000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004510dc
mov esp, ebp
pop ebp
ret
Function at 0x44c7f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6673c0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.Unknown_version]
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x94]
push 0x90
push 0
push eax
movups xmmword [esi + 0x23c], xmm0
mov dword [esi + 0xecc], 0
xor bl, bl
call fcn.00452360
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x44c88c
cmp dword [ebp - 0x94], 6
mov ecx, esi
jb 0x44c877
call fcn.0044c8b0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
call fcn.0044d350
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004510dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004510dc
mov esp, ebp
pop ebp
ret
Function at 0x45214c
Capabilities:
Parse pe header

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

Function at 0x45bcff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004516d0
mov eax, dword [0x6673c0]
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.00466d11
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45bd41
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45be9d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004519f0
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 + 0x6b94f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046afc8
mov ecx, dword [esi*4 + 0x6b94f0]
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 0x45be96
cmp eax, dword [edi + ecx + 0x24]
jne 0x45be96
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 0x45be96
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046afc8
add esp, 0x14
test edx, edx
jl 0x45be96
jg 0x45be0c
test eax, eax
jb 0x45be96
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45be96
jl 0x45be26
cmp dword [ebp - 0x1008], eax
ja 0x45be96
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45be44
test ebx, ebx
je 0x45be7d
cmp ecx, edi
jae 0x45be7d
mov al, byte [ecx]
cmp al, 0xd
jne 0x45be5e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45be6a
cmp byte [ecx + 1], 0xa
jne 0x45be6a
inc ecx
jmp 0x45be6a
movzx eax, al
movsx eax, byte [eax + 0x6676a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45be44
cmp edx, ebx
jne 0x45be44
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45be9b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004510dc
leave
ret

Function at 0x469081
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b3b90
push 0x4b3b88
push str.FlsAlloc
push 0x1e
call fcn.00468eec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4690b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x47969c]
call esi
jmp 0x4690bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4690ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b3ba0
push 0x4b3b98
push str.FlsGetValue
push 0x20
call fcn.00468eec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469136
push dword [ebp + 8]
mov ecx, esi
call dword [0x47969c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46a21d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046a08e

Function at 0x46a480
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 + 0x6b94f0]
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 0x46a4c0
cmp byte [ebx], 0xa
jne 0x46a4c0
or byte [eax + edi + 0x28], 4
jmp 0x46a4c5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46a5c3
mov al, byte [edx]
cmp al, 0x1a
je 0x46a5a5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46a4f4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46a519
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46a523
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 0x46a4d6
jmp 0x46a5c3
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 0x46a5a0
cmp dword [ebp - 0xc], 0
je 0x46a5a0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6b94f0]
test byte [eax + edi + 0x28], 0x48
je 0x46a57a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46a565
mov byte [esi], dl
jmp 0x46a576
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6b94f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46a5c3
cmp byte [ebp - 1], 0xa
jne 0x46a589
cmp esi, ebx
jne 0x46a589
mov byte [esi], 0xa
jmp 0x46a5c2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046afe6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46a5c3
mov byte [esi], 0xd
jmp 0x46a5c2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6b94f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46a5bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46a5c3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret