joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9bac
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffac
mov ebx, eax
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, 0x44
call fcn.004047a0
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], 0
push esp
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, ebx
call fcn.00406af4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4f9c0a
push 0xffffffffffffffff
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x1f4
call sub.kernel32.dll_Sleep_1
add esp, 0x54
pop ebx
ret

Function at 0x4fa814
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fa8d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004fb64c
mov esi, eax
dec esi
test esi, esi
jl 0x4fa88d
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004fb638
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0xc]
call fcn.00407158
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00411a08
push eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004fb700
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
pop ecx
call fcn.004ed2b8
inc edi
dec esi
jne 0x4fa84b
call fcn.004f99c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
call fcn.004ed638
test eax, eax
jge 0x4fa8a8
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x388]
xchg edx, eax
call fcn.004ed8c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa8dc
lea eax, [ebp - 0x10]
call fcn.004068f4
lea eax, [ebp - 0xc]
call fcn.00406ee0
ret
Function at 0x4faef4
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4fafd2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
call fcn.004b3f34
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov eax, edi
call fcn.004b5ac0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffff
lea eax, [ebp - 8]
push eax
push 2
push 0xa
push 0
call sub.NetApi32.dll_NetUserEnum
test eax, eax
jne 0x4fafb7
xor edx, edx
push ebp
push 0x4fafb0
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.004b6578
mov ebx, dword [ebp - 0xc]
dec ebx
test ebx, ebx
jl 0x4faf92
inc ebx
lea eax, [ebp - 0x18]
mov edx, dword [esi]
call fcn.00406a70
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov eax, edi
call fcn.004b5ac0
add esi, 0x10
dec ebx
jne 0x4faf76
mov eax, edi
call fcn.004b607c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fafb7
mov eax, dword [ebp - 8]
push eax
call sub.NetApi32.dll_NetApiBufferFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fafd9
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040690c
ret

Function at 0x4fc3a8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4fc47f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, esi
mov ecx, 0
call fcn.004063e0
mov eax, dword [ebp - 4]
call fcn.00406748
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
jne 0x4fc45c
cmp dword [0x5333ec], 0
jne 0x4fc402
mov dl, 1
mov eax, dword [0x4b34b4]
call fcn.00404da4
mov dword [0x5333ec], eax
mov edx, esi
mov eax, dword [0x5333ec]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edi, eax
test edi, edi
jl 0x4fc424
mov edx, edi
mov eax, dword [0x5333ec]
call fcn.004b64a4
mov dword [ebx], eax
jmp 0x4fc45c
lea eax, [ebp - 8]
mov edx, esi
mov ecx, 0
call fcn.004063e0
mov eax, dword [ebp - 8]
call fcn.00406748
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4fc45c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [ebx]
mov edx, esi
mov eax, dword [0x5333ec]
call fcn.004b5af0
cmp dword [ebx], 0xffffffff
setne al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc486
lea eax, [ebp - 8]
mov edx, 2
call fcn.004060ac
ret
Function at 0x4fda80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebp, ecx
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.004fdb58
xor eax, eax
mov dword [esi + 4], eax
xor ebx, ebx
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi + 8], eax
mov eax, esi
call fcn.004fdcbc
test al, al
je 0x4fdb45
call fcn.004fd6b4
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
push 4
lea eax, [esp + 8]
push eax
push 0x1006
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
push 4
lea eax, [esp + 8]
push eax
push 0x1005
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
mov edx, esp
mov eax, edi
call fcn.004fc3a8
test al, al
je 0x4fdb32
mov word [esp + 8], 2
mov eax, dword [esp]
mov dword [esp + 0xc], eax
push ebp
call sub.wsock32.dll_htons
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_connect
inc eax
setne bl
call sub.wsock32.dll_WSAGetLastError
mov dword [esi + 4], eax
test bl, bl
jne 0x4fdb45
mov eax, esi
call fcn.004fdb58
mov eax, esi
call fcn.004fdcbc
mov ebx, eax
mov eax, ebx
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4fdc04
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebp, eax
mov eax, ebp
call fcn.004fdcbc
mov ebx, eax
test bl, bl
je 0x4fdc6a
xor esi, esi
cmp esi, dword [esp + 4]
jge 0x4fdc6a
push 0
mov eax, dword [esp + 8]
sub eax, esi
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
je 0x4fdc4b
test edi, edi
jne 0x4fdc4f
xor ebx, ebx
jmp 0x4fdc51
mov bl, 1
test bl, bl
jne 0x4fdc5f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp + 4], eax
jmp 0x4fdc6a
add esi, edi
add dword [esp], edi
cmp esi, dword [esp + 4]
jl 0x4fdc29
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x508c74
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffd4c
mov eax, esp
xor ecx, ecx
mov edx, 0x2b4
call fcn.004047a0
push 0x4011
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
push 0x508cac
call sub.shell32.dll_SHGetFileInfoW
add esp, 0x2b4
ret

Function at 0x508c97
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffd4c
mov eax, esp
xor ecx, ecx
mov edx, 0x2b4
call fcn.004047a0
push 0x4011
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
push 0x508cac
call sub.shell32.dll_SHGetFileInfoW
add esp, 0x2b4
ret

Function at 0x50b408
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffd4c
push 0x4009
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
push edx
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [esp + 4]
add esp, 0x2b4
ret
Function at 0x517100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, 0x50fb30
call fcn.0040a61c
xor eax, eax
push ebp
push 0x51729e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004f58f4
test al, al
je 0x517283
mov eax, dword [0x51de0c]
mov eax, dword [eax]
cmp byte [eax + 0x30], 1
jne 0x5171cd
mov eax, 0x5335a8
call fcn.004068f4
push eax
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00406a70
mov eax, dword [ebp - 0x14]
mov edx, 0x5172b0
pop ecx
call fcn.004b2740
test al, al
je 0x51718a
mov eax, dword [0x51de0c]
mov eax, dword [eax]
mov edx, dword [0x5335a8]
call fcn.004f63d0
jmp 0x5171cd
lea eax, [ebp - 0x18]
call fcn.004b520c
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
call fcn.004b49f8
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.004b4504
test al, al
je 0x5171c3
push 0x10
push 0x5172bc
push 0x5172c8
push 0
call sub.user32.dll_MessageBoxW
jmp 0x517283
call fcn.004f99f4
jmp 0x517283
mov eax, dword [0x51dc78]
mov eax, dword [eax]
call fcn.004afff0
mov eax, dword [0x51dc78]
mov eax, dword [eax]
mov edx, 0x517304
call fcn.004afa0c
mov eax, dword [0x51de0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
call fcn.004f76b0
mov eax, dword [0x51de0c]
mov eax, dword [eax]
test byte [eax + 0x31], 8
je 0x517251
mov eax, dword [0x51de0c]
mov eax, dword [eax]
mov dl, 1
call fcn.004f6224
mov eax, dword [0x51de0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.004b64c8
test eax, eax
jle 0x517243
lea edx, [ebp - 0x20]
mov eax, dword [0x51de0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.004b5e6c
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.004ef9f8
mov eax, dword [0x51de0c]
mov eax, dword [eax]
call fcn.004f5be4
jmp 0x517283
mov eax, dword [0x51dc78]
mov eax, dword [eax]
mov dl, 1
call fcn.004b1c08
mov ecx, dword [0x51d920]
mov eax, dword [0x51dc78]
mov eax, dword [eax]
mov edx, dword [0x50eae8]
call fcn.004b0008
mov eax, dword [0x51dc78]
mov eax, dword [eax]
call fcn.004b0158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5172a5
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040690c
ret
Function at 0x10002820
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x100028b8
test ebx, ebx
je 0x10002932
cmp word [ebx], 0
je 0x10002928
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002850
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x100028a0
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10002890
test byte [0x10005048], 8
jne 0x100028f0
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AllocSplStr
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002838
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.returning__p_n
mov dword [esp + 8], str.AllocSplStr
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 4
mov eax, 2
jmp 0x1000285e
xor esi, esi
jmp 0x100028a9

Function at 0x10002ac0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test byte [0x10005048], 8
jne 0x10002b08
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__ld_____p_n
mov dword [esp + 8], str.DllAllocSplMem
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x10002b40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x10005048], 8
jne 0x10002b80
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.DllFreeSplMem
mov dword [esp + 4], 0x10005048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002b53
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4027f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
xor eax, eax
push eax
push eax
push eax
push 0x402729
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call fcn.00403d3d
push dword [esp + 4]
push ecx
push dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, 0x47aec0
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
push eax
call fcn.00403c92
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408657
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408678
jl 0x40866f
test edi, edi
jne 0x408678
xor eax, eax
xor edx, edx
jmp 0x408739
cmp dword [ebx + 0x38], 0
je 0x40868d
push eax
push edi
push dword [ebp + 8]
call fcn.0040873f
jmp 0x408739
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4086d4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4086d4
cmp eax, edi
jb 0x4086ae
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b950
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4086da
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40872e
mov ecx, ebx
call fcn.00407eee
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408719
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041689b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40872e
jmp 0x4086ec
test edx, edx
je 0x40872e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041689b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40b72e
Capabilities:
Parse pe header

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

Function at 0x41df31
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f398
push 0x42f390
push str.FlsAlloc
push 0x1e
call fcn.0041dd9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df65
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x41df6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41f4b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f157

Function at 0x41f4c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f2e6

Function at 0x41f8ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b8a0
mov eax, dword [0x436040]
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.0041cb8f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f8fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fa58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x47b870]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420a8a
mov ecx, dword [esi*4 + 0x47b870]
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 0x41fa51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fa51
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 0x41fa51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420a8a
add esp, 0x14
test edx, edx
jl 0x41fa51
jg 0x41f9c7
test eax, eax
jb 0x41fa51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fa51
jl 0x41f9e1
cmp dword [ebp - 0x1008], eax
ja 0x41fa51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f9ff
test ebx, ebx
je 0x41fa38
cmp ecx, edi
jae 0x41fa38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fa19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fa25
cmp byte [ecx + 1], 0xa
jne 0x41fa25
inc ecx
jmp 0x41fa25
movzx eax, al
movsx eax, byte [eax + 0x436300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f9ff
cmp edx, ebx
jne 0x41f9ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fa56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa76
leave
ret
Function at 0x41ff28
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 + 0x47b870]
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 0x41ff68
cmp byte [ebx], 0xa
jne 0x41ff68
or byte [eax + edi + 0x28], 4
jmp 0x41ff6d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42006b
mov al, byte [edx]
cmp al, 0x1a
je 0x42004d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ff9c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ffc1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ffcb
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 0x41ff7e
jmp 0x42006b
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 0x420048
cmp dword [ebp - 0xc], 0
je 0x420048
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47b870]
test byte [eax + edi + 0x28], 0x48
je 0x420022
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42000d
mov byte [esi], dl
jmp 0x42001e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47b870]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42006b
cmp byte [ebp - 1], 0xa
jne 0x420031
cmp esi, ebx
jne 0x420031
mov byte [esi], 0xa
jmp 0x42006a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42006b
mov byte [esi], 0xd
jmp 0x42006a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47b870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420067
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42006b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret