joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c6a
Capabilities:
Terminate process

Disassembly:
jmp 0x462599
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4625aa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00406627
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 0x403dfa
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ab032
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ab043
pop esi
ret
push ebx
push edi
push esi
call fcn.004aaf19
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404895
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ab06b
push ebx
push esi
push edi
call fcn.004063cf
add esp, 0xc
push 0
call fcn.00407144
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x404d1d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x416fac
sub esp, 0x20
mov eax, dword [0x53e7c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x417015
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040207c
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.004031f7
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x41702d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402df6
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x416fdd
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035ee
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402df6
jmp 0x417017

Function at 0x40649c
Capabilities:
Parse pe header

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

Function at 0x44f299
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403e7c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44f2dc
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44f2dc
sub eax, 1
je 0x44f2d7
sub eax, 1
je 0x44f2d3
xor eax, eax
leave
ret
push 3
jmp 0x44f2de
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4a5b8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401fff
mov eax, dword [0x53e7c0]
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.00406cad
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a5bcf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a5d2b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e1f
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 + 0x542fb0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403873
mov ecx, dword [esi*4 + 0x542fb0]
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 0x4a5d24
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a5d24
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 0x4a5d24
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403873
add esp, 0x14
test edx, edx
jl 0x4a5d24
jg 0x4a5c9a
test eax, eax
jb 0x4a5d24
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a5d24
jl 0x4a5cb4
cmp dword [ebp - 0x1008], eax
ja 0x4a5d24
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a5cd2
test ebx, ebx
je 0x4a5d0b
cmp ecx, edi
jae 0x4a5d0b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a5cec
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a5cf8
cmp byte [ecx + 1], 0xa
jne 0x4a5cf8
inc ecx
jmp 0x4a5cf8
movzx eax, al
movsx eax, byte [eax + 0x53eb18]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a5cd2
cmp edx, ebx
jne 0x4a5cd2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a5d29
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035ee
leave
ret
Function at 0x4a5f30
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 + 0x542fb0]
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 0x4a5f70
cmp byte [ebx], 0xa
jne 0x4a5f70
or byte [eax + edi + 0x28], 4
jmp 0x4a5f75
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6073
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6055
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5fa4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a5fc9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a5fd3
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 0x4a5f86
jmp 0x4a6073
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 0x4a6050
cmp dword [ebp - 0xc], 0
je 0x4a6050
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x542fb0]
test byte [eax + edi + 0x28], 0x48
je 0x4a602a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6015
mov byte [esi], dl
jmp 0x4a6026
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x542fb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6073
cmp byte [ebp - 1], 0xa
jne 0x4a6039
cmp esi, ebx
jne 0x4a6039
mov byte [esi], 0xa
jmp 0x4a6072
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401ac3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6073
mov byte [esi], 0xd
jmp 0x4a6072
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x542fb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a606f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6073
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a60cf
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 + 0x542fb0]
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 0x4a6112
cmp word [esi], dx
jne 0x4a6112
or byte [edi + eax + 0x28], 4
jmp 0x4a6117
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 0x4a626a
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 0x4a624a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6159
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a618f
cmp eax, edx
jae 0x4a619b
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 0x4a6131
jmp 0x4a626a
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 0x4a6246
cmp dword [ebp - 0x14], 0
je 0x4a6246
mov eax, dword [ebx*4 + 0x542fb0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a621e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a61e7
mov word [esi], cx
jmp 0x4a621a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x542fb0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x542fb0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x542fb0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a626a
pop ebx
cmp word [ebp - 4], bx
jne 0x4a622f
cmp esi, dword [ebp + 0xc]
jne 0x4a622f
mov word [esi], bx
jmp 0x4a6267
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401ac3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a626a
push 0xd
jmp 0x4a6263
mov ecx, dword [ebx*4 + 0x542fb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6261
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a626a
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 0x4a950b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53e7c0]
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 0x4a9556
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a99cd
test al, al
jne 0x4a9550
sub edx, 2
cmp edx, edi
jne 0x4a9536
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a9578
lea eax, [edi + 2]
cmp edx, eax
je 0x4a9578
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a9104
add esp, 0x10
jmp 0x4a9672
push esi
lea ecx, [ebp - 0x255]
call fcn.004a99cd
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 0x4a95bb
push dword [ebp - 0x25c]
jmp 0x4a9568
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 0x4a95f8
cmp word [ebp - 0x226], 0
je 0x4a9619
cmp word [ebp - 0x226], ax
jne 0x4a95f8
cmp word [ebp - 0x224], 0
je 0x4a9619
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a9104
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9665
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a95d2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a964d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9672
push 0x4a8aec
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061fe
add esp, 0x10
jmp 0x4a9642
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.004035ee
leave
ret
Function at 0x402dfb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x48f400]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e64
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004021d2
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00404a64
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402e7c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403cdf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402e2c
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040677c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403cdf
jmp 0x402e66

Function at 0x4053ff
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x40541f
jl 0x405416
test ebx, ebx
jne 0x40541f
xor eax, eax
xor edx, edx
jmp 0x4054e2
cmp dword [ebp + 0x38], 0
je 0x405435
push esi
push ebx
push dword [esp + 0x18]
call fcn.004054e8
jmp 0x4054e2
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x405479
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x405479
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00403f4c
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x405481
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x4054d8
mov ecx, ebp
call fcn.00403bb6
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4054c3
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0040c09c
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4054d8
jmp 0x405494
test edx, edx
je 0x4054d8
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0040c09c
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4057b2
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x48f400]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406739
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x405818
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004021d2
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.0040222b
mov esi, eax
inc ebx
jmp 0x40581a
mov esi, ebx
test bl, 1
je 0x40582b
lea ecx, [esp + 0xc4]
call fcn.00403cdf
test esi, esi
je 0x40584c
mov ecx, esi
call fcn.0040307d
test esi, esi
je 0x40584c
lea ecx, [esi + 0xc]
call fcn.00403cdf
push 0x24
push esi
call fcn.00406769
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x490370], eax
push 0x27
push 0x48ee18
push 0x547
mov edi, 0x48ee40
push edi
call fcn.00402e9a
push 1
push 0x424458
call fcn.00405974
push 0x8aafdc01
push dword [0x490370]
call fcn.00402dfb
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.0040201e
lea eax, [esp + 0x14]
push 0x424468
push eax
call fcn.004010ef
push eax
call fcn.00401dba
add esp, 0xc
sub ebp, 1
jne 0x4058b2
lea ecx, [esp + 0x14]
call fcn.00403f1c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4058fb
call fcn.00404efa
lea ecx, [esp + 4]
call fcn.00402baa
mov ecx, dword [esp + 0xcc]
xor eax, eax
xor ecx, esp
call fcn.0040677c
add esp, 0xd0
ret 0x10

Function at 0x4074c6
Capabilities:
Parse pe header

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

Function at 0x4154d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282f0
push 0x4282e8
push str.FlsAlloc
push 0x1e
call fcn.004153a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41550b
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
jmp 0x415511
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415555
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428300
push 0x4282f8
push str.FlsGetValue
push 0x20
call fcn.004153a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41558c
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416aa7

Function at 0x417030
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407630
mov eax, dword [0x48f400]
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.00415b0a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417072
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4171ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423400
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 + 0x490e10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418027
mov ecx, dword [esi*4 + 0x490e10]
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 0x4171c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4171c7
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 0x4171c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418027
add esp, 0x14
test edx, edx
jl 0x4171c7
jg 0x41713d
test eax, eax
jb 0x4171c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4171c7
jl 0x417157
cmp dword [ebp - 0x1008], eax
ja 0x4171c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417175
test ebx, ebx
je 0x4171ae
cmp ecx, edi
jae 0x4171ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x41718f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41719b
cmp byte [ecx + 1], 0xa
jne 0x41719b
inc ecx
jmp 0x41719b
movzx eax, al
movsx eax, byte [eax + 0x48f6d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417175
cmp edx, ebx
jne 0x417175
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4171cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040677c
leave
ret
Function at 0x4174c5
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 + 0x490e10]
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 0x417505
cmp byte [ebx], 0xa
jne 0x417505
or byte [eax + edi + 0x28], 4
jmp 0x41750a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417608
mov al, byte [edx]
cmp al, 0x1a
je 0x4175ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417539
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41755e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417568
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 0x41751b
jmp 0x417608
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 0x4175e5
cmp dword [ebp - 0xc], 0
je 0x4175e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x490e10]
test byte [eax + edi + 0x28], 0x48
je 0x4175bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4175aa
mov byte [esi], dl
jmp 0x4175bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x490e10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417608
cmp byte [ebp - 1], 0xa
jne 0x4175ce
cmp esi, ebx
jne 0x4175ce
mov byte [esi], 0xa
jmp 0x417607
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418045
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417608
mov byte [esi], 0xd
jmp 0x417607
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x490e10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417604
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417608
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret