joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40645d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x426250
push esi
call fcn.00405a3b
push esi
call fcn.00405887
mov edi, eax
test edi, edi
jne 0x40647e
xor eax, eax
jmp 0x4064e2
push edi
call fcn.004063ac
test byte [0x42b8a8], 0x80
je 0x40649b
movzx eax, word [edi]
test ax, ax
je 0x40647a
cmp ax, 0x5c
je 0x40647a
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4064bc
call fcn.00405a6a
test eax, eax
je 0x4064b6
test byte [eax], 0x10
je 0x4064d5
push esi
call fcn.00406264
push esi
call ebx
cmp eax, edi
push esi
jg 0x4064a8
call fcn.00406235
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4064d9
xor eax, eax
jmp 0x4064e1
call fcn.00406111
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret 4
Function at 0x406775
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.00406111
push 0x409744
mov ebx, 0x426a50
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4067c8
push 1
push ebp
push edi
call fcn.0040631a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40693f
cmp eax, esi
jg 0x40693f
push esi
mov edi, 0x4288a0
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40693f
cmp eax, esi
jg 0x40693f
push ebp
push ebp
push esi
push 0x427250
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40693f
push ebp
push ebp
push esi
mov esi, 0x4278a0
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40693f
push esi
push 0x427250
push str._s_s_r_n
push 0x427ca0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42b84c]
push dword [eax + 0x128]
push edi
call fcn.004064e7
push 4
push 0xc0000000
push edi
call fcn.0040631a
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40693f
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406935
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406935
cmp edi, dword [esp + 0x10]
jne 0x406935
push str._Rename__r_n
push esi
call fcn.00406291
cmp eax, ebp
jne 0x4068cc
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4068fd
push 0x409738
add eax, 0xa
push eax
call fcn.00406291
mov ebp, eax
test ebp, ebp
je 0x4068fb
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4068ee
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4068e8
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4068ff
xor ebp, ebp
mov eax, edi
push ebx
push 0x427ca0
add eax, esi
push eax
call fcn.004062ed
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406978
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040645d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4069ad
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42b908], eax
jmp 0x406b53
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4069c8
test eax, eax
je 0x406afe
test cl, 2
je 0x406afe
push edi
push ebx
mov esi, 0x4280a0
push esi
call fcn.00405a3b
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4069eb
push str..
push esi
call edi
jmp 0x4069f1
push ebx
call fcn.00406264
cmp word [ebx], 0
jne 0x406a01
cmp word [0x4280a0], 0x5c
jne 0x406a09
push 0x4092e0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406aed
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405833
xor edi, edi
cmp word [eax], di
je 0x406a50
cmp word [ebp - 0x28], di
je 0x406a50
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406a6b
movzx eax, word [esi + 2]
cmp ax, di
je 0x406aca
cmp ax, 0x2e
jne 0x406a6b
cmp word [esi + 4], di
je 0x406aca
push esi
push dword [ebp - 4]
call fcn.00405a3b
test byte [ebp - 0x25c], 0x10
je 0x406a92
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406aca
push dword [ebp + 0xc]
push ebx
call fcn.00406978
jmp 0x406aca
push ebx
call fcn.004058e4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406ac2
test byte [ebp + 0xc], 4
je 0x406aba
push ebx
push 0xfffffffffffffff1
call fcn.00404b98
push edi
push ebx
call fcn.00406945
jmp 0x406aca
inc dword [0x42b908]
jmp 0x406aca
push ebx
push 0xfffffffffffffff2
call fcn.00404b98
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406a30
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406aef
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406afe
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406b52
cmp dword [ebp - 0xc], esi
je 0x406b42
push ebx
call fcn.00405a6a
test eax, eax
je 0x406b52
push ebx
call fcn.00406235
push ebx
call fcn.004058e4
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406b4a
test byte [ebp + 0xc], 4
je 0x406b42
push ebx
push 0xfffffffffffffff1
call fcn.00404b98
push esi
push ebx
call fcn.00406945
jmp 0x406b52
inc dword [0x42b908]
jmp 0x406b52
push ebx
push 0xffffffffffffffe5
call fcn.00404b98
pop esi
pop ebx
leave
ret 8
Function at 0x406f06
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4290a4], 0
jne 0x406f44
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406f1a
mov dword [ecx*4 + 0x4290a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406f15
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406f71
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4290a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406f52
not eax
pop ebp
ret 0xc

Function at 0x407e1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b0a0]
jne 0x407e26
repz ret
jmp fcn.004080cd
Function at 0x401014
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4011e0
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ebx, dword [eax + esi + 0x20]
mov ebp, dword [eax + esi + 0x1c]
mov ecx, dword [eax + esi + 0x24]
add eax, esi
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
add ebp, esi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x401237
mov ecx, dword [0x406008]
mov edx, dword [ebx + edi*4]
push ecx
add edx, esi
push edx
call fcn.00401078
add esp, 8
cmp eax, dword [esp + 0x1c]
je 0x40123f
inc edi
cmp edi, dword [esp + 0x18]
jb 0x401215
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp + ecx*4]
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40101e
Capabilities:
Read file on windows

Disassembly:
jmp 0x401860
push ecx
mov ecx, dword [0x406148]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40188d
cmp dword [esp + 4], 4
jne 0x40188d
mov eax, dword [esi]
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x401032
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x401270
sub esp, 0x204
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
mov edi, dword [esp + 0x224]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
mov byte [esp + ecx + 0x10], cl
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x10f], al
jl 0x4012a1
xor eax, eax
nop
mov cl, byte [esp + eax + 0x10]
movzx edx, byte [esp + eax + 0x110]
movzx edi, cl
add edx, esi
add edi, edx
mov esi, edi
and esi, 0x800000ff
jns 0x4012e5
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], cl
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x100
jl 0x4012c0
mov edx, dword [esp + 0x21c]
xor esi, esi
test edx, edx
jle 0x401374
mov edi, dword [esp + 0x218]
mov ecx, ebp
sub edi, ebp
mov ebp, edx
inc eax
and eax, 0x800000ff
jns 0x401322
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [esp + eax + 0x10]
add esi, edx
and esi, 0x800000ff
jns 0x401339
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + eax + 0x10]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + eax + 0x10], dl
movzx ebx, byte [esp + esi + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x401363
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [esp + edx + 0x10]
xor dl, byte [edi + ecx]
inc ecx
sub ebp, 1
mov byte [ecx - 1], dl
jne 0x401313
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402258
add esp, 0x204
ret
Function at 0x401041
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x4014a0
mov eax, dword [esp + 4]
mov ecx, dword [section..data]
sub esp, 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [0x406160]
mov ecx, dword [0x406154]
lea edx, [esp]
push edx
mov edx, dword [section..data]
push eax
push ecx
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov ecx, dword [section..data]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [0x406160]
mov ecx, dword [0x406154]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [section..data]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov ecx, dword [0x406160]
mov edx, dword [section..data]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add esp, 0x1c
ret

Function at 0x401046
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x401550
mov eax, dword [section..data]
sub esp, 0x1c
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [0x406164]
mov eax, dword [0x406154]
lea ecx, [esp]
push ecx
mov ecx, dword [section..data]
push edx
push eax
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov eax, dword [section..data]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edx, dword [0x406164]
mov eax, dword [0x406154]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [section..data]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov eax, dword [0x406164]
mov ecx, dword [section..data]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add esp, 0x1c
ret
Function at 0x40104b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x401940
sub esp, 0x420
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x406148]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x401b19
cmp dword [esp + 0xc], 4
jne 0x401b19
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x18
movsx ecx, cl
cmp ecx, 6
ja case.default.0x4019a6
jmp dword [ecx*4 + 0x401b34]
and eax, 0xffffff
mov esi, eax
je case.default.0x4019a6
jmp 0x4019c0
mov eax, 0x400
cmp esi, 0x400
ja 0x4019cf
mov eax, esi
mov ecx, dword [0x406148]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call edi
test eax, eax
je 0x401b19
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [section..data]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call ebp
test eax, eax
je 0x401b19
sub esi, dword [esp + 0xc]
jne 0x4019c0
jmp case.default.0x4019a6
lea eax, [esp + 0x1c]
push eax
call fcn.0040101e
mov ecx, dword [esp + 0x20]
mov edx, dword [section..data]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov esi, dword [esp + 0x10]
and esi, 0xffffff
je case.default.0x4019a6
lea esp, [esp]
mov eax, 0x400
cmp esi, 0x400
ja 0x401a5f
mov eax, esi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [0x406148]
lea edx, [esp + 0x34]
push edx
push eax
call edi
test eax, eax
je 0x401b19
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [section..data]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call ebp
test eax, eax
je 0x401b19
sub esi, dword [esp + 0xc]
jne 0x401a50
jmp case.default.0x4019a6
call fcn.00401046
jmp case.default.0x4019a6
lea edx, [esp + 0x24]
push edx
call fcn.0040101e
mov eax, dword [esp + 0x28]
push eax
call fcn.00401041
add esp, 8
jmp case.default.0x4019a6
lea ecx, [esp + 0x18]
push ecx
call fcn.0040101e
mov eax, dword [esp + 0x1c]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
call fcn.0040105f
add esp, 0xc
jmp case.default.0x4019a6
call fcn.00401055
jmp case.default.0x4019a6
lea eax, [esp + 0x20]
push eax
call fcn.0040101e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00401028
add esp, 8
jmp case.default.0x4019a6
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00402258
add esp, 0x420
ret
Function at 0x401050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x4013e0
sub esp, 0x40c
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
mov edx, dword [0x406148]
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
jne 0x401437
call edi
cmp eax, 0xea
jne 0x401454
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [section..data]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
jne 0x401410
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00402258
add esp, 0x40c
ret

Function at 0x401270
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x401270
sub esp, 0x204
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
mov edi, dword [esp + 0x224]
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
mov byte [esp + ecx + 0x10], cl
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x10f], al
jl 0x4012a1
xor eax, eax
nop
mov cl, byte [esp + eax + 0x10]
movzx edx, byte [esp + eax + 0x110]
movzx edi, cl
add edx, esi
add edi, edx
mov esi, edi
and esi, 0x800000ff
jns 0x4012e5
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], cl
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x100
jl 0x4012c0
mov edx, dword [esp + 0x21c]
xor esi, esi
test edx, edx
jle 0x401374
mov edi, dword [esp + 0x218]
mov ecx, ebp
sub edi, ebp
mov ebp, edx
inc eax
and eax, 0x800000ff
jns 0x401322
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [esp + eax + 0x10]
add esi, edx
and esi, 0x800000ff
jns 0x401339
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esp + eax + 0x10]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + eax + 0x10], dl
movzx ebx, byte [esp + esi + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x401363
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [esp + edx + 0x10]
xor dl, byte [edi + ecx]
inc ecx
sub ebp, 1
mov byte [ecx - 1], dl
jne 0x401313
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402258
add esp, 0x204
ret
Function at 0x4013e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x4013e0
sub esp, 0x40c
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
mov edx, dword [0x406148]
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
jne 0x401437
call edi
cmp eax, 0xea
jne 0x401454
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [section..data]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
jne 0x401410
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00402258
add esp, 0x40c
ret
Function at 0x401940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x401940
sub esp, 0x420
mov eax, dword [0x406010]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x406148]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x401b19
cmp dword [esp + 0xc], 4
jne 0x401b19
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x18
movsx ecx, cl
cmp ecx, 6
ja case.default.0x4019a6
jmp dword [ecx*4 + 0x401b34]
and eax, 0xffffff
mov esi, eax
je case.default.0x4019a6
jmp 0x4019c0
mov eax, 0x400
cmp esi, 0x400
ja 0x4019cf
mov eax, esi
mov ecx, dword [0x406148]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call edi
test eax, eax
je 0x401b19
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [section..data]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call ebp
test eax, eax
je 0x401b19
sub esi, dword [esp + 0xc]
jne 0x4019c0
jmp case.default.0x4019a6
lea eax, [esp + 0x1c]
push eax
call fcn.0040101e
mov ecx, dword [esp + 0x20]
mov edx, dword [section..data]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov esi, dword [esp + 0x10]
and esi, 0xffffff
je case.default.0x4019a6
lea esp, [esp]
mov eax, 0x400
cmp esi, 0x400
ja 0x401a5f
mov eax, esi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [0x406148]
lea edx, [esp + 0x34]
push edx
push eax
call edi
test eax, eax
je 0x401b19
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [section..data]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call ebp
test eax, eax
je 0x401b19
sub esi, dword [esp + 0xc]
jne 0x401a50
jmp case.default.0x4019a6
call fcn.00401046
jmp case.default.0x4019a6
lea edx, [esp + 0x24]
push edx
call fcn.0040101e
mov eax, dword [esp + 0x28]
push eax
call fcn.00401041
add esp, 8
jmp case.default.0x4019a6
lea ecx, [esp + 0x18]
push ecx
call fcn.0040101e
mov eax, dword [esp + 0x1c]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
call fcn.0040105f
add esp, 0xc
jmp case.default.0x4019a6
call fcn.00401055
jmp case.default.0x4019a6
lea eax, [esp + 0x20]
push eax
call fcn.0040101e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00401028
add esp, 8
jmp case.default.0x4019a6
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00402258
add esp, 0x420
ret
Function at 0x402258
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406010]
jne 0x402262
repz ret
jmp fcn.0040260d
Function at 0x42dd60
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 0x42dd81
jl 0x42dd78
test edi, edi
jne 0x42dd81
xor eax, eax
xor edx, edx
jmp 0x42de42
cmp dword [ebx + 0x38], 0
je 0x42dd96
push eax
push edi
push dword [ebp + 8]
call fcn.0042d690
jmp 0x42de42
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42dddd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42dddd
cmp eax, edi
jb 0x42ddb7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004319d0
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 0x42dde3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x42de37
mov ecx, ebx
call fcn.0042e2a3
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x42de22
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0043841d
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 0x42de37
jmp 0x42ddf5
test edx, edx
je 0x42de37
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043841d
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 0x42eccf
Capabilities:
Parse pe header

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

Function at 0x43ab10
Capabilities:
Parse pe header

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

Function at 0x43cd36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ec48
push 0x44ec40
push str.FlsAlloc
push 0x1f
call fcn.0043d14d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43cd6a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x43cd70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43cdb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ec58
push 0x44ec50
push str.FlsGetValue
push 0x21
call fcn.0043d14d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43cdeb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43cdf3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ec60
push 0x44ec58
push str.FlsSetValue
push 0x22
call fcn.0043d14d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ce2d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]