joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437d20
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x4b9be8]
test esi, esi
je 0x437d68
mov ecx, esi
push 0x4a75ec
call fcn.004067e0
test al, al
jne 0x437e15
mov ecx, esi
push str.vmodule
call fcn.004067e0
test al, al
jne 0x437e15
mov eax, dword [edi]
mov dword [0x4b701c], eax
test al, 1
jne 0x437d87
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov al, 1
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x4b9ba4]
test eax, eax
jne 0x437d9c
mov ecx, dword [0x4b9b9c]
test ecx, ecx
je 0x437dbe
jmp 0x437ddd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b9ba4], 0
mov ecx, dword [0x4b9b9c]
test ecx, ecx
jne 0x437ddd
and byte [0x4b701c], 0xfe
push 0xc
call fcn.0045e423
add esp, 4
mov ecx, eax
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [0x4b9b9c], eax
push dword [edi + 4]
call fcn.0040aa80
cmp dword [edi + 0xc], 0
jne 0x437dff
mov eax, dword [0x4b9b9c]
cmp byte [eax + 0xb], 0
jns 0x437df8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00497350
lea eax, [ebp - 0x1c]
mov ecx, esi
push 7
push str.vmodule
push eax
call fcn.0044f470
lea ebx, [ebp - 0x28]
mov ecx, esi
push 1
push 0x4a75ec
push ebx
call fcn.0044f470
push 0x10
call fcn.0045e423
add esp, 4
mov esi, eax
mov ecx, eax
push 0x4b9ba0
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0049baa0
cmp byte [ebx + 0xb], 0
jns 0x437e67
push dword [ebp - 0x28]
call fcn.0045e41e
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x437e78
push dword [ebp - 0x1c]
call fcn.0045e41e
add esp, 4
test esi, esi
je 0x437d68
xor eax, eax
lock cmpxchg dword [0x4b9ba8], esi
je 0x437d68
mov ecx, esi
call fcn.0049bb50
push esi
call fcn.0045e41e
add esp, 4
jmp 0x437d68
Function at 0x439250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [0x4b9be8]
test ebx, ebx
jne 0x4392ca
push 0x28
call fcn.0045e423
add esp, 4
mov esi, eax
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov byte [eax + 8], 0
push 0xc
call fcn.0045e423
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x14], ecx
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x1c]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 1
mov dword [0x4b9be8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push eax
call fcn.0045fe10
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.0040eb90
test ebx, ebx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43da70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa34], 0x8000
jne 0x43db57
cmp dword [esi + 0x434], 0x200
jne 0x43db5a
push 0x4b7058
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x43db60
cmp byte [0x4c4b24], 0
jne 0x43daea
cmp dword [0x4c7038], 0
jne 0x43db6f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x43db72
mov dword [0x4c4ad0], eax
mov dword [0x4c703c], eax
mov dword [0x4c7038], 0x43d990
mov byte [0x4c4b24], 1
push 0x4b7058
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg dword [0x4c4b28], esi
jne 0x43db5d
mov dword [0x4c7040], 0x43dc70
add esi, 0x48
mov eax, 0xffffffb0
jmp 0x43db27
mov cl, 0x40
jmp 0x43db1b
mov cl, 0x80
mov byte [eax + 0x4c4b24], cl
add esi, 0x20
inc eax
je 0x43db50
cmp dword [esi], 0
je 0x43db53
mov ecx, dword [esi + 0xc]
cmp ecx, 0x81
jb 0x43db19
cmp ecx, 0x101
jb 0x43db15
cmp ecx, 0x201
setb cl
shl cl, 4
add cl, 0x10
jmp 0x43db1b
pop esi
pop ebp
ret
xor ecx, ecx
jmp 0x43db1b
int3
int3
int3
mov ecx, 0x4b7058
call fcn.0044bf60
jmp 0x43daaa
int3
int3

Function at 0x43db80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0xc], eax
test edi, edi
je 0x43dc66
mov eax, dword [0x4c84c0]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x43dc0a
mov ecx, 0x4c7080
push 0
push 0x340
call fcn.00406c40
mov esi, eax
mov ecx, eax
push edi
call fcn.00406a20
push esi
push dword [0x4c4ad0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x4b80e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xa8], esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00461246
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret
push 0x4c84c0
call fcn.0045e453
add esp, 4
cmp dword [0x4c84c0], 0xffffffff
jne 0x43dbba
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x28]
movdqu xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0xffffffff
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], cl
mov byte [eax + 0x14], cl
mov dword [eax + 0x18], ecx
mov dword [eax], ecx
mov byte [eax + 4], cl
mov ecx, 0x4c7080
push eax
call fcn.00440af0
push 0x4c84c0
call fcn.0045e4a2
add esp, 4
jmp 0x43dbba
int3
Function at 0x440a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x440a87
test eax, eax
je 0x440a87
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x440a95
mov ecx, dword [0x4c7040]
test ecx, ecx
jne 0x440ad1
cmp dword [0x4c7038], 0
je 0x440a81
mov esi, dword [0x4c703c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x440adb
test esi, esi
je 0x440a81
mov ecx, dword [0x4c7038]
call dword [0x4b1788]
push esi
call ecx
add esp, 4
jmp 0x440a81
call dword [0x4b1788]
call ecx
jmp 0x440a95
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x440ab9

Function at 0x44f180
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 8], eax
push 0x4c84d0
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x44f2d6
cmp byte [0x4c84d4], 0
je 0x44f273
mov edi, dword [0x4c84d8]
mov edx, dword [0x4c84dc]
mov esi, edx
shld esi, edi, 0x17
mov eax, dword [0x4c84e4]
mov ecx, edi
shl ecx, 0x17
xor ecx, edi
xor esi, edx
mov edx, esi
mov edi, eax
shr edi, 0x1a
xor edi, eax
xor edi, esi
shr esi, 0x11
xor esi, edi
mov edi, dword [0x4c84e0]
shld edx, ecx, 0xf
mov ebx, eax
shld ebx, edi, 6
xor ebx, edi
xor ebx, ecx
xor ebx, edx
mov dword [0x4c84d8], edi
mov dword [0x4c84dc], eax
mov dword [0x4c84e0], ebx
add ebx, edi
mov dword [0x4c84e4], esi
adc esi, eax
push 0x4c84d0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x4b809c]
cmp eax, 0xffffffff
je 0x44f256
test eax, eax
je 0x44f23f
and esi, 0x3fff0000
add esi, 0x20000000
jmp 0x44f241
xor esi, esi
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.00461246
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4b809c
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x44f2e5
mov eax, dword [0x4b809c]
jmp 0x44f22d
xorps xmm0, xmm0
movups xmmword [0x4c84d8], xmm0
xor edi, edi
dec edi
mov esi, esp
mov dword [esi + 4], edi
mov dword [esi], edi
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x44f2f4
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [0x4c84dc], ecx
mov dword [0x4c84d8], eax
mov dword [esp + 4], edi
mov dword [esp], edi
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x44f2f7
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [0x4c84e4], ecx
mov dword [0x4c84e0], eax
mov byte [0x4c84d4], 1
jmp 0x44f1b7
mov ecx, 0x4c84d0
call fcn.0044bf60
jmp 0x44f1aa
mov dword [0x4b809c], 0
jmp 0x44f23f
int3
int3
Function at 0x457390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x42d6d0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
mov dword [esi + 0x18], eax
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x10], ecx
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x1002
mov dword [esi + 0xc], eax
mov dword [esi + 8], 6
xorps xmm0, xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [esi + 0x40], xmm0
mov eax, dword [0x4b9408]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45743b
mov eax, dword [0x4b9404]
mov dword [esi + 0x1c], eax
cmp eax, 0x4b9360
jne 0x4574fa
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x4b9408
call fcn.0045e453
add esp, 4
cmp dword [0x4b9408], 0xffffffff
jne 0x457415
mov eax, dword [0x4b9400]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4574a2
mov eax, dword [0x4b93fc]
mov dword [0x4b9404], eax
cmp eax, 0x4b9360
jne 0x457503
push 0x487b90
call fcn.004600a4
add esp, 4
push 0x4b9408
call fcn.0045e4a2
add esp, 4
jmp 0x457415
push 0x4b9400
call fcn.0045e453
add esp, 4
cmp dword [0x4b9400], 0xffffffff
jne 0x45746e
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
mov ecx, 0x4b9360
push 1
call fcn.004180a0
mov dword [0x4b93fc], 0x4b9360
push 0x487b90
call fcn.004600a4
add esp, 4
push 0x4b9400
call fcn.0045e4a2
add esp, 4
mov esi, dword [ebp - 0x20]
jmp 0x45746e
lock inc dword [eax + 4]
jmp 0x457428
lock inc dword [eax + 4]
jmp 0x457483
Function at 0x4586c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4c4410]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x458710
mov esi, dword [0x4c440c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c4410
call fcn.0045e453
add esp, 4
cmp dword [0x4c4410], 0xffffffff
jne 0x4586f3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004628e0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea ebx, [ebp - 0x12c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edi, [ebp - 0x130]
mov dword [edi], esi
push edi
push esi
push esi
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0045e423
add esp, 4
mov esi, eax
mov edi, dword [edi]
mov eax, dword [0x4c4440]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4587bc
lea edx, [ebp - 0x12c]
mov ecx, esi
push edi
call fcn.00417530
add esp, 4
mov dword [0x4c440c], esi
push 0x4c4410
call fcn.0045e4a2
add esp, 4
jmp 0x4586f3
push 0x4c4440
call fcn.0045e453
add esp, 4
cmp dword [0x4c4440], 0xffffffff
jne 0x458793
xorps xmm0, xmm0
movups xmmword [0x4c442c], xmm0
movups xmmword [0x4c441c], xmm0
mov dword [0x4c443c], 0
push 0x4c441c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4c4440
call fcn.0045e4a2
add esp, 4
jmp 0x458793
Function at 0x460b19
Capabilities:
Parse pe header

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

Function at 0x46b722
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0046b8b9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46b891
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46b891
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46b846
jg 0x46b77e
test eax, eax
je 0x46b83c
push 1
push 0x1000
call fcn.0044a4c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46b7a1
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46b833
push 0x8000
push ebx
call fcn.0046f767
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46b7ca
jg 0x46b7c5
cmp ecx, 0x1000
jb 0x46b7ca
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00471f5f
add esp, 0x10
cmp eax, 0xffffffff
je 0x46b80f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46b7c5
jl 0x46b7f6
test ecx, ecx
jne 0x46b7b7
push dword [ebp - 0xc]
push ebx
call fcn.0046f767
push esi
call fcn.0045d230
add esp, 0xc
xor ebx, ebx
jmp 0x46b89f
cmp byte [edi + 0x24], 0
je 0x46b826
cmp dword [edi + 0x20], 5
jne 0x46b826
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46b831
mov ebx, dword [edi + 0x18]
jmp 0x46b833
xor ebx, ebx
push esi
call fcn.0045d230
pop ecx
jmp 0x46b89f
test ecx, ecx
jg 0x46b808
jl 0x46b846
test eax, eax
jae 0x46b808
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047ac7d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46b866
cmp byte [edi + 0x1c], 0
je 0x46b808
jmp 0x46b897
push ebx
call fcn.004601bf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46b808
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46b89f
cmp byte [edi + 0x1c], 0
je 0x46b89c
mov ebx, dword [edi + 0x18]
jmp 0x46b89f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047ac7d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f257
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 + 0x4b8af0]
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 0x46f297
cmp byte [ebx], 0xa
jne 0x46f297
or byte [edi + eax + 0x28], 4
jmp 0x46f29c
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 0x46f39b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46f37e
inc eax
cmp dl, 0xd
je 0x46f2c8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46f2ee
cmp eax, ecx
jae 0x46f2fc
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 0x46f2b0
jmp 0x46f39b
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 0x46f379
cmp dword [ebp - 0x10], 0
je 0x46f379
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b8af0]
test byte [eax + edi + 0x28], 0x48
je 0x46f353
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f33e
mov byte [esi], dl
jmp 0x46f34f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b8af0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f39b
cmp byte [ebp - 1], 0xa
jne 0x46f362
cmp esi, ebx
jne 0x46f362
mov byte [esi], 0xa
jmp 0x46f39a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047ac7d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f39b
mov byte [esi], 0xd
jmp 0x46f39a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b8af0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f398
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f39b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46f3a4
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 + 0x4b8af0]
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 0x46f3ea
cmp word [ebx], dx
jne 0x46f3ea
or byte [eax + edi + 0x28], 4
jmp 0x46f3ef
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 0x46f552
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 0x46f532
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46f430
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f466
cmp eax, edx
jae 0x46f474
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 0x46f40b
jmp 0x46f552
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 0x46f52d
cmp dword [ebp - 0x18], 0
je 0x46f52d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b8af0]
test byte [eax + edi + 0x28], 0x48
je 0x46f503
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 0x46f4c7
mov word [esi], cx
jmp 0x46f4fe
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b8af0]
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 + 0x4b8af0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b8af0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46f552
pop eax
cmp word [ebp - 4], ax
jne 0x46f513
cmp esi, ebx
jne 0x46f513
mov word [esi], ax
jmp 0x46f54f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047ac7d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46f552
push 0xd
pop eax
jmp 0x46f50e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b8af0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46f54c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46f552
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 0x473d73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00461670
mov eax, dword [0x4b5040]
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.004600d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x473db5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x473f11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047e5a0
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 + 0x4b8af0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047acdb
mov ecx, dword [esi*4 + 0x4b8af0]
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 0x473f0a
cmp eax, dword [ecx + edi + 0x24]
jne 0x473f0a
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 0x473f0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047acdb
add esp, 0x14
test edx, edx
jl 0x473f0a
jg 0x473e80
test eax, eax
jb 0x473f0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x473f0a
jl 0x473e9a
cmp dword [ebp - 0x1008], eax
ja 0x473f0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x473eb8
test ebx, ebx
je 0x473ef1
cmp ecx, edi
jae 0x473ef1
mov al, byte [ecx]
cmp al, 0xd
jne 0x473ed2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x473ede
cmp byte [ecx + 1], 0xa
jne 0x473ede
inc ecx
jmp 0x473ede
movzx eax, al
movsx eax, byte [eax + 0x4b52f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x473eb8
cmp edx, ebx
jne 0x473eb8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x473f0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00461246
leave
ret

Function at 0x477480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4774ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4774ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x478536
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49ff88
push 0x49ff80
push str.FlsAlloc
push 0x1f
call fcn.004789e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47856a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b1788]
call esi
jmp 0x478570
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4785b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49ff98
push 0x49ff90
push str.FlsGetValue
push 0x21
call fcn.004789e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4785eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b1788]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4785f3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49ffa0
push 0x49ff98
push str.FlsSetValue
push 0x22
call fcn.004789e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47862d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b1788]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]