joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448330
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x47f145
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x48ec3c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4484c1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4484c1
test ebx, ebx
je 0x4484c1
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.00426280
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x4483e0
xor bl, bl
jmp 0x4484ab
xor edi, edi
mov byte [ebp + 0x68], 0
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448455
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x448455
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x448446
push ecx
push esi
lea ecx, [ebp]
call fcn.00404f40
add edi, dword [ebp - 0x10]
jmp 0x448410
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.00404f40
lea ecx, [ebp]
call fcn.00405010
cmp byte [ebp + 0x68], 0
jne 0x448467
xor bl, bl
jmp 0x4484a8
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x448470
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push esi
call fcn.00452f38
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x4484c3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x48ec3c
test edi, edi
je 0x4484e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x44ac40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f7cd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x44ad54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0044ab80
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44acf7
cmp dword [ebp + 0x10], eax
je 0x44acf7
mov esi, 0x2ee2
jmp 0x44ad0f
test esi, esi
jne 0x44ad0f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x44ad0d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x44ad3e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402f30
int3
Function at 0x44d550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fe36
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x44d64b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0x48f2b0
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00424a20
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x44d5f6
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404cb0
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00422e30
add esp, 0x10
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44d637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f30
int3
Function at 0x44de60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x44dea6
mov ecx, dword [ebp + 0xc]
lea ebx, [edi + 0x40]
mov dword [esp + 0xc], 1
cmp ecx, 0x110
jne 0x44deb1
sub esp, 8
mov dword [ebx], 1
mov ecx, edi
call fcn.0044e210
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [ebx], 0
jne 0x44e070
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0x10]
cmp ecx, 0x111
jne 0x44dfd0
movzx eax, si
mov edx, eax
cmp word [esp + 0xc], ax
jne 0x44df47
sub esp, 0x10
lea eax, [edi + 0x44]
mov ecx, ebx
push eax
push 0x425
call fcn.0044e3d0
sub esp, 0x10
lea eax, [edi + 0x48]
mov ecx, ebx
push eax
push 0x426
call fcn.0044e3d0
mov ecx, 4
lea eax, [ebx - 0x3c]
test ebx, ebx
push 0x427
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp + 0x18]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 2
cmp ax, dx
jne 0x44df72
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, esi
mov dword [esp + 0xc], 0x300
shr eax, 0x10
cmp word [esp + 0xc], ax
jne 0x44dfd0
mov eax, 0x425
cmp dx, ax
jne 0x44dfbc
sub esp, 0x10
lea esi, [edi + 0x44]
mov ecx, ebx
push esi
push eax
call fcn.0044e3d0
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea edx, [edi + 0x20]
cmp ecx, 5
jne 0x44e043
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x44e011
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x44e002
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44e016
test esi, esi
jne 0x44e011
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44e016
cmp esi, 1
je 0x44e067
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.0044e960
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x24
jne 0x44dea6
cmp dword [edx + 0x14], 0xffffffff
je 0x44e067
cmp dword [edx + 0x18], 0xffffffff
je 0x44e067
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x44e3d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 8], 1
push esi
push edi
push dword [ebp + 8]
lea eax, [ebx - 0x40]
neg ebx
sbb ebx, ebx
and ebx, eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
js 0x44e4cc
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x44e42e
push edi
mov ecx, esi
call fcn.00404db0
mov ecx, dword [esi]
cmp edi, dword [ecx - 8]
jg 0x44e4cc
mov dword [ecx - 0xc], edi
xor edx, edx
mov eax, dword [esi]
mov word [eax + edi*2], dx
test ecx, ecx
je 0x44e493
lea eax, [edi + 1]
push eax
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, eax
mov eax, dword [esi]
mov dword [esp + 0x14], edx
test eax, eax
jne 0x44e467
xor ecx, ecx
jmp 0x44e47d
push dword [eax - 8]
push eax
call fcn.00457f54
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44e4cc
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x44e4cc
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor esi, esi
mov word [eax + ecx*2], si
cmp edx, edi
jge 0x44e4bf
push 0xffffffffffffffff
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
lea ecx, [ebx + 0x40]
neg ecx
sbb ecx, ecx
and ecx, ebx
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.00402f30
int3
Function at 0x45348e
Capabilities:
Parse pe header

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

Function at 0x463c93
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x485c6c
push 0x485c64
push str.FlsAlloc
push 0x1e
call fcn.00463adf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x463cc7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4813f4]
call esi
jmp 0x463ccd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x463d11
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x485c7c
push 0x485c74
push str.FlsGetValue
push 0x20
call fcn.00463adf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x463d48
push dword [ebp + 8]
mov ecx, esi
call dword [0x4813f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4691a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468e45

Function at 0x4691ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468fd4

Function at 0x469c44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004538c0
mov eax, dword [0x4a6024]
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.004643f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x469c86
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x469de2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00471700
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 + 0x4a8618]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046a06a
mov ecx, dword [esi*4 + 0x4a8618]
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 0x469ddb
cmp eax, dword [edi + ecx + 0x24]
jne 0x469ddb
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 0x469ddb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046a06a
add esp, 0x14
test edx, edx
jl 0x469ddb
jg 0x469d51
test eax, eax
jb 0x469ddb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x469ddb
jl 0x469d6b
cmp dword [ebp - 0x1008], eax
ja 0x469ddb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x469d89
test ebx, ebx
je 0x469dc2
cmp ecx, edi
jae 0x469dc2
mov al, byte [ecx]
cmp al, 0xd
jne 0x469da3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x469daf
cmp byte [ecx + 1], 0xa
jne 0x469daf
inc ecx
jmp 0x469daf
movzx eax, al
movsx eax, byte [eax + 0x4a6960]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x469d89
cmp edx, ebx
jne 0x469d89
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x469de0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00452869
leave
ret
Function at 0x46a49d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a6024]
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 0x46a4e8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046a63c
test al, al
jne 0x46a4e2
sub edx, 2
cmp edx, edi
jne 0x46a4c8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46a50a
lea eax, [edi + 2]
cmp edx, eax
je 0x46a50a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046a3e9
add esp, 0x10
jmp 0x46a604
push esi
lea ecx, [ebp - 0x255]
call fcn.0046a63c
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 0x46a54d
push dword [ebp - 0x25c]
jmp 0x46a4fa
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 0x46a58a
cmp word [ebp - 0x226], 0
je 0x46a5ab
cmp word [ebp - 0x226], ax
jne 0x46a58a
cmp word [ebp - 0x224], 0
je 0x46a5ab
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046a3e9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46a5f7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46a564
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46a5df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46a604
push 0x46a219
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045e140
add esp, 0x10
jmp 0x46a5d4
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.00452869
leave
ret
Function at 0x46faad
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 + 0x4a8618]
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 0x46faed
cmp byte [ebx], 0xa
jne 0x46faed
or byte [eax + edi + 0x28], 4
jmp 0x46faf2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46fbf0
mov al, byte [edx]
cmp al, 0x1a
je 0x46fbd2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46fb21
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46fb46
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46fb50
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 0x46fb03
jmp 0x46fbf0
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 0x46fbcd
cmp dword [ebp - 0xc], 0
je 0x46fbcd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a8618]
test byte [eax + edi + 0x28], 0x48
je 0x46fba7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46fb92
mov byte [esi], dl
jmp 0x46fba3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a8618]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46fbf0
cmp byte [ebp - 1], 0xa
jne 0x46fbb6
cmp esi, ebx
jne 0x46fbb6
mov byte [esi], 0xa
jmp 0x46fbef
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046a088
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46fbf0
mov byte [esi], 0xd
jmp 0x46fbef
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a8618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46fbec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46fbf0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46fbf9
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 + 0x4a8618]
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 0x46fc3c
cmp word [esi], dx
jne 0x46fc3c
or byte [edi + eax + 0x28], 4
jmp 0x46fc41
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 0x46fd94
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 0x46fd74
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46fc83
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46fcb9
cmp eax, edx
jae 0x46fcc5
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 0x46fc5b
jmp 0x46fd94
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 0x46fd70
cmp dword [ebp - 0x14], 0
je 0x46fd70
mov eax, dword [ebx*4 + 0x4a8618]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46fd48
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46fd11
mov word [esi], cx
jmp 0x46fd44
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a8618]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a8618]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a8618]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46fd94
pop ebx
cmp word [ebp - 4], bx
jne 0x46fd59
cmp esi, dword [ebp + 0xc]
jne 0x46fd59
mov word [esi], bx
jmp 0x46fd91
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046a088
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46fd94
push 0xd
jmp 0x46fd8d
mov ecx, dword [ebx*4 + 0x4a8618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46fd8b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46fd94
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 0x4715e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47160d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47160d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403297
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00407fb0
mov dword [esp], eax
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.0040811d
lea eax, [esp + 8]
push eax
call fcn.0040ab90
push dword [esp]
push 0
push 0x40d01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40e7a8]
push dword [0x40e7a8]
push dword [esp + 8]
call fcn.00407ec0
lea eax, [0x40e4b0]
push eax
call fcn.0040ab90
push dword [esp]
call fcn.00407fd0
push dword [0x40e4b0]
call fcn.004081ac
push dword [0x40e4b0]
call fcn.004081ba
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.00408055
lea eax, [0x40e44c]
push eax
call fcn.0040ab90
push dword [esp + 0x14]
pop eax
call fcn.00407ff0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403370
mov edx, dword [0x40e4b0]
push dword [0x40e7a8]
call fcn.0040ac40
lea eax, [0x40e44c]
push eax
call fcn.0040ab90
mov dword [esp + 0xc], 2
jmp 0x403382
mov ebx, 1
cmp ebx, dword [esp]
jne 0x403382
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e47c], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e3e0], eax
mov eax, 1
jmp 0x4033b5
push dword [esp + 4]
call fcn.0040aca0
add esp, 0xc
pop ebx
ret 4

Function at 0x4033c5
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033cc
mov edx, dword [esp + 0x34]
lea ecx, [esp]
jmp loc.00412c6f

Function at 0x4037f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403842
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40e3e4], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3f8], eax
mov eax, dword [esp + 4]
jmp 0x40384a
push dword [esp]
call fcn.0040aca0
add esp, 8
ret 8