joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419a80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x45f9f8
mov esi, ecx
push 0x45f86c
push 0
push dword [esi + 4]
call fcn.0043b949
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x419ac5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
test edx, edx
je 0x419ad8
mov eax, dword [edx]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call dword [eax + 0x60]
push 5
mov ecx, esi
call fcn.00419a00
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
mov dword [ebp - 8], 0
call dword [eax + 0x274]
cmp word [ebp - 8], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.00427d5e
mov esp, ebp
pop ebp
ret

Function at 0x419b20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x45f9f8
mov esi, ecx
push 0x45f86c
push 0
push dword [esi + 4]
call fcn.0043b949
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x419b65
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
push 0
mov ecx, esi
call fcn.00419a00
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x419b88
mov eax, dword [ecx]
push 0
push 0xffffffffffffffff
push 0
push ecx
call dword [eax + 0x60]
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
mov dword [ebp - 8], 0
call dword [eax + 0x270]
cmp word [ebp - 8], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
Function at 0x41e150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45a8b8
push 0x4294b0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x45d01c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x434], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41e1aa
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041e290
mov bl, al
mov byte [ebp - 0x42d], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x41e1ed
test bl, bl
jne 0x41e26e
cmp edi, 0x1a
jne 0x41e26e
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41e207
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x42c]
push eax
call fcn.0042a240
add esp, 0xc
push 0x207
lea eax, [ebp - 0x42c]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e241
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.004076f0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret
Function at 0x4214d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f658
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45d01c]
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]
lea eax, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.00421d90
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.00413ba0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x38], 0
test eax, eax
jne 0x421554
xor bl, bl
jmp 0x421572
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42156c
cmp eax, 0x80
je 0x42156c
xor bl, bl
jmp 0x421572
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x31]
push eax
push edi
push esi
mov byte [ebp - 0x31], 0
call fcn.00421660
test al, al
jne 0x4215a0
cmp byte [ebp - 0x31], al
je 0x4215a0
cmp dword [esi + 0x14], 8
jb 0x421599
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x4215ba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4215b6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4215da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x42161d
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421613
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42164f
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
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.00427d5e
mov esp, ebp
pop ebp
ret 8
call fcn.0042d453
int3
Function at 0x423060
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45d01c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.0042a240
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4230f7
cmp dword [esp + 8], 6
jb 0x4230f7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00427d5e
add esp, 0x118
ret
Function at 0x423110
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f900
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45d01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004076f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004177c0
mov ecx, eax
call fcn.00417880
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4231c5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4231bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232fe
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xb
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.crypt32.dll
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004076f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004177c0
mov ecx, eax
call fcn.00417880
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42325a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42324d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423303
push edx
push ecx
call fcn.00428145
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x4232ec
test eax, eax
je 0x4232ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042d453
call fcn.0042d453
int3
Function at 0x424e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x461018], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x460d18], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x460f18], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x460e18], al
inc esi
cmp esi, 0x100
jl 0x424f50
pop esi
add esp, 0x80
ret
Function at 0x402b00
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb48
mov eax, dword [0x430010]
xor eax, esp
mov dword [esp + 0xb44], eax
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x348]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esi], 0x4550
jne 0x402bf1
push 0x44
lea eax, [esp + 0x304]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x2c], xmm0
call fcn.0040a610
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x304]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402bf1
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x10007
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x402bf1
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x402c0a
call fcn.00405870
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403370
push eax
call fcn.00405b20
add esp, 4
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xb44]
xor ecx, esp
call fcn.00408b9d
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [esp + 0x14], 0
cmp ax, word [esi + 6]
jae 0x402c79
xor ecx, ecx
mov dword [esp + 0x18], ecx
add ecx, dword [edi + 0x3c]
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [esp + 0x28]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc edx
movzx eax, word [esi + 6]
add ecx, 0x28
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x402c31
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0xe0]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x1c]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0xb4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00408b9d
mov esp, ebp
pop ebp
ret
Function at 0x406991
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040696d
pop esi
leave
ret 8

Function at 0x406b7c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.004069e1
mov edi, eax
test edi, edi
jne 0x406ba3
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x406bec
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x406be7
test al, 0x10
je 0x406be7
test eax, 0x400
je 0x406be3
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00406bf2
push dword [ebp - 4]
mov esi, eax
call fcn.00406a1d
test esi, esi
jne 0x406be7
xor edx, edx
jmp 0x406be9
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x407d1d
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 0x407d3e
jl 0x407d35
test edi, edi
jne 0x407d3e
xor eax, eax
xor edx, edx
jmp 0x407dff
cmp dword [ebx + 0x38], 0
je 0x407d53
push eax
push edi
push dword [ebp + 8]
call fcn.00407e05
jmp 0x407dff
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407d9a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d9a
cmp eax, edi
jb 0x407d74
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a070
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 0x407da0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407df4
mov ecx, ebx
call fcn.004075bd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407ddf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410698
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 0x407df4
jmp 0x407db2
test edx, edx
je 0x407df4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410698
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 0x409850
Capabilities:
Parse pe header

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

Function at 0x417c07
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429130
push 0x429128
push str.FlsAlloc
push 0x1f
call fcn.00417a91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417c3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x425180]
call esi
jmp 0x417c41
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417c85
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429140
push 0x429138
push str.FlsGetValue
push 0x21
call fcn.00417a91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417cbc
push dword [ebp + 8]
mov ecx, esi
call dword [0x425180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417cc4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429148
push 0x429140
push str.FlsSetValue
push 0x22
call fcn.00417a91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417cfe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x425180]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4193da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004099c0
mov eax, dword [0x430010]
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.00415ea9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41941c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419578
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423730
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 + 0x431a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041a3d7
mov ecx, dword [esi*4 + 0x431a58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x419571
cmp eax, dword [ecx + edi + 0x24]
jne 0x419571
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419571
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a3d7
add esp, 0x14
test edx, edx
jl 0x419571
jg 0x4194e7
test eax, eax
jb 0x419571
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419571
jl 0x419501
cmp dword [ebp - 0x1008], eax
ja 0x419571
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41951f
test ebx, ebx
je 0x419558
cmp ecx, edi
jae 0x419558
mov al, byte [ecx]
cmp al, 0xd
jne 0x419539
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419545
cmp byte [ecx + 1], 0xa
jne 0x419545
inc ecx
jmp 0x419545
movzx eax, al
movsx eax, byte [eax + 0x430290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41951f
cmp edx, ebx
jne 0x41951f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419576
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408b9d
leave
ret
Function at 0x41986f
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 + 0x431a58]
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 0x4198af
cmp byte [ebx], 0xa
jne 0x4198af
or byte [edi + eax + 0x28], 4
jmp 0x4198b4
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 0x4199b3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419996
inc eax
cmp dl, 0xd
je 0x4198e0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419906
cmp eax, ecx
jae 0x419914
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 0x4198c8
jmp 0x4199b3
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 0x419991
cmp dword [ebp - 0x10], 0
je 0x419991
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x431a58]
test byte [eax + edi + 0x28], 0x48
je 0x41996b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419956
mov byte [esi], dl
jmp 0x419967
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x431a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4199b3
cmp byte [ebp - 1], 0xa
jne 0x41997a
cmp esi, ebx
jne 0x41997a
mov byte [esi], 0xa
jmp 0x4199b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a3f5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4199b3
mov byte [esi], 0xd
jmp 0x4199b2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x431a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4199b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4199b3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret