joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403910
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x420600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004163af
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.0041640f
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
mov byte [eax], 0x70
mov ecx, dword [esi + 0x14]
call fcn.004014f0
lea ecx, [esp + 0x18]
call fcn.004163af
mov ecx, dword [esi + 0x14]
push 0
push 0x64
lea edx, [esp + 0x20]
push 2
push edx
mov byte [esp + 0x44], 1
call fcn.004013a0
test eax, eax
pop esi
jne 0x4039b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], al
call fcn.004163e2
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.004163e2
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov eax, dword [esp + 0x18]
xor edx, edx
mov byte [esp + 0x30], 0
mov cl, byte [eax + 1]
mov eax, dword [esp + 0x38]
and cl, 0xc
cmp cl, 0xc
lea ecx, [esp + 0x14]
sete dl
mov dword [eax], edx
call fcn.004163e2
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.004163e2
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x404c40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x420bbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x588]
mov dword [esp + 0x10], 0x25
call fcn.00416b1c
lea ecx, [esi + 0x584]
mov byte [esp + 0x10], 0x24
call fcn.00416b1c
lea ecx, [esi + 0x580]
mov byte [esp + 0x10], 0x23
call fcn.00416b1c
lea ecx, [esi + 0x57c]
mov byte [esp + 0x10], 0x22
call fcn.00416b1c
lea ecx, [esi + 0x578]
mov byte [esp + 0x10], 0x21
call fcn.00416b1c
lea ecx, [esi + 0x574]
mov byte [esp + 0x10], 0x20
call fcn.00416b1c
lea ecx, [esi + 0x570]
mov byte [esp + 0x10], 0x1f
call fcn.00416b1c
lea ecx, [esi + 0x56c]
mov byte [esp + 0x10], 0x1e
call fcn.00416b1c
lea ecx, [esi + 0x568]
mov byte [esp + 0x10], 0x1d
call fcn.00416b1c
lea ecx, [esi + 0x564]
mov byte [esp + 0x10], 0x1c
call fcn.00416b1c
lea ecx, [esi + 0x560]
mov byte [esp + 0x10], 0x1b
call fcn.00416b1c
lea ecx, [esi + 0x55c]
mov byte [esp + 0x10], 0x1a
call fcn.00416b1c
lea ecx, [esi + 0x558]
mov byte [esp + 0x10], 0x19
call fcn.00416b1c
mov byte [esp + 0x10], 0x18
lea ecx, [esi + 0x554]
call fcn.00416b1c
lea ecx, [esi + 0x550]
mov byte [esp + 0x10], 0x17
call fcn.00416b1c
lea ecx, [esi + 0x54c]
mov byte [esp + 0x10], 0x16
call fcn.00416b1c
lea ecx, [esi + 0x548]
mov byte [esp + 0x10], 0x15
call fcn.00416b1c
lea ecx, [esi + 0x50c]
mov byte [esp + 0x10], 0x14
call fcn.0041e412
lea ecx, [esi + 0x4d0]
mov byte [esp + 0x10], 0x13
call fcn.0041e412
lea ecx, [esi + 0x494]
mov byte [esp + 0x10], 0x12
call fcn.0041e412
lea ecx, [esi + 0x458]
mov byte [esp + 0x10], 0x11
call fcn.0041e412
lea ecx, [esi + 0x41c]
mov byte [esp + 0x10], 0x10
call fcn.0041e412
lea ecx, [esi + 0x3e0]
mov byte [esp + 0x10], 0xf
call fcn.0041e412
lea ecx, [esi + 0x3a4]
mov byte [esp + 0x10], 0xe
call fcn.0041e412
lea ecx, [esi + 0x368]
mov byte [esp + 0x10], 0xd
call fcn.0041e412
lea ecx, [esi + 0x32c]
mov byte [esp + 0x10], 0xc
call fcn.0041e412
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x10], 0xb
call fcn.0041e412
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x10], 0xa
call fcn.0041e412
lea ecx, [esi + 0x278]
mov byte [esp + 0x10], 9
call fcn.0041e412
lea ecx, [esi + 0x23c]
mov byte [esp + 0x10], 8
call fcn.0041e412
lea ecx, [esi + 0x200]
mov byte [esp + 0x10], 7
call fcn.0041e412
lea ecx, [esi + 0x1c4]
mov byte [esp + 0x10], 6
call fcn.0041e412
lea ecx, [esi + 0x188]
mov byte [esp + 0x10], 5
call fcn.0041e412
lea ecx, [esi + 0x14c]
mov byte [esp + 0x10], 4
call fcn.0041e22c
lea ecx, [esi + 0x110]
mov byte [esp + 0x10], 3
call fcn.0041e412
lea ecx, [esi + 0xd4]
mov byte [esp + 0x10], 2
call fcn.0041e1f4
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 1
call fcn.0041e1f4
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0
call fcn.0041e1f4
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004170b2
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410bc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b248
cmp edx, dword [eax]
je 0x410bea
add eax, 8
inc ecx
cmp eax, 0x42b2d8
jl 0x410bdb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b248]
jne 0x410d18
mov eax, dword [0x42dbd8]
cmp eax, 1
je 0x410cf2
test eax, eax
jne 0x410c1b
cmp dword [0x42ab6c], 1
je 0x410cf2
cmp edx, 0xfc
je 0x410d18
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410c52
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f760
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cc70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410c95
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cc70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424ef4
push edi
call fcn.0040f5f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f760
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f770
lea eax, [ebp - 0xa0]
push 0x424ed4
push eax
call fcn.0040f770
push dword [esi + 0x42b24c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f770
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004133e9
add esp, 0x2c
pop edi
jmp 0x410d18
lea eax, [ebp + 8]
lea esi, [esi + 0x42b24c]
push 0
push eax
push dword [esi]
call fcn.0040cc70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4170f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x417112
cmp dword [edi + 0x3c], 0
jne 0x417112
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0041efcb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041713f
pop edi
pop esi
pop ebx
ret 8

Function at 0x4186bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4186f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00416da9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00416d81
jmp 0x4186ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x418703
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x42bc58
mov ecx, edi
call fcn.00416c59
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x418756
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x418769
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00416da9
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00416d81
jmp 0x418769
mov ecx, esi
call fcn.0041a369
test eax, eax
je 0x418769
push edi
mov ecx, eax
call fcn.004186bb
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x419c96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x419cd8
call fcn.0041efcb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x419cd8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419ccf
xor eax, eax
jmp 0x419ce0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00419ce6
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f9cf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f9fd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fa1b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f935
jmp 0x41fa1b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fa1b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f935
test edi, edi
mov eax, edi
jne 0x41fa05
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x8d69d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a2000]
push edi
jmp 0x8d69ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d69f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d69e0
mov eax, 1
add ebx, ebx
jne 0x8d6a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d6a14
jne 0x8d6a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6a33
dec eax
add ebx, ebx
jne 0x8d6a20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8d69f8
add ebx, ebx
jne 0x8d6a2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8d6a85
xor ecx, ecx
sub eax, 3
jb 0x8d6a4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d6aba
sar eax, 1
mov ebp, eax
jmp 0x8d6a56
add ebx, ebx
jne 0x8d6a56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6a24
inc ecx
add ebx, ebx
jne 0x8d6a64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6a24
add ebx, ebx
jne 0x8d6a71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d6a66
jne 0x8d6a82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d6a66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d6aa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d6a96
jmp 0x8d69e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d6aa4
add edi, ecx
jmp 0x8d69e6
pop esi
mov edi, esi
mov ecx, 0x1989fa
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8d6adf
cmp byte [edi], 0x67
jne 0x8d6ac4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8d6ac2
lea edi, [esi + 0x4ca000]
mov eax, dword [edi]
or eax, eax
je 0x8d6b30
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4e1454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4e1594]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d6ae5
mov ecx, edi
jns 0x8d6b14
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4e159c]
or eax, eax
je 0x8d6b2a
mov dword [ebx], eax
add ebx, 4
jmp 0x8d6b02
call dword [esi + 0x4e1598]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8d6b61
cmp al, 0xef
ja 0x8d6b54
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8d6b36
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8d6b43
mov ebp, dword [esi + 0x4e15a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8d6b95
sub esp, 0xffffff80
jmp 0x4cdf05
Function at 0x45b01e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x471e66
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 8]
call fcn.0045c10d
test eax, eax
je 0x471ef3
push esi
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x471ef2
push ebx
push ebp
mov ebx, 0x45649c
mov ebp, 0x7a7190
mov al, byte [edi + esi]
xor al, 0x73
push ebx
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
push ebx
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x5165e4
mov byte [edi + esi], al
call fcn.0045818e
xor byte [edi + esi], al
inc esi
pop ecx
cmp esi, dword [esp + 0x24]
jb 0x471e8d
pop ebp
pop ebx
pop esi
lea ecx, [esp + 8]
call fcn.00459b7e
pop edi
ret 0x14

Function at 0x45b933
Capabilities:
Parse pe header

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

Function at 0x49f952
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004590fc
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x49f991
sub eax, 1
je 0x49f98c
sub eax, 1
je 0x49f988
xor eax, eax
leave
ret
push 3
jmp 0x49f993
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4f6c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00457108
mov eax, dword [0x7a3f40]
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.0045c176
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f6c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f6dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045c2fc
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 + 0x7a8798]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00458ab7
mov ecx, dword [esi*4 + 0x7a8798]
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 0x4f6dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f6dcd
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 0x4f6dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458ab7
add esp, 0x14
test edx, edx
jl 0x4f6dcd
jg 0x4f6d43
test eax, eax
jb 0x4f6dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f6dcd
jl 0x4f6d5d
cmp dword [ebp - 0x1008], eax
ja 0x4f6dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f6d7b
test ebx, ebx
je 0x4f6db4
cmp ecx, edi
jae 0x4f6db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f6d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f6da1
cmp byte [ecx + 1], 0xa
jne 0x4f6da1
inc ecx
jmp 0x4f6da1
movzx eax, al
movsx eax, byte [eax + 0x7a42b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f6d7b
cmp edx, ebx
jne 0x4f6d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f6dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045880f
leave
ret
Function at 0x4f6fd9
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 + 0x7a8798]
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 0x4f7019
cmp byte [ebx], 0xa
jne 0x4f7019
or byte [eax + edi + 0x28], 4
jmp 0x4f701e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f711c
mov al, byte [edx]
cmp al, 0x1a
je 0x4f70fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f704d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f7072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f707c
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 0x4f702f
jmp 0x4f711c
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 0x4f70f9
cmp dword [ebp - 0xc], 0
je 0x4f70f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7a8798]
test byte [eax + edi + 0x28], 0x48
je 0x4f70d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f70be
mov byte [esi], dl
jmp 0x4f70cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7a8798]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f711c
cmp byte [ebp - 1], 0xa
jne 0x4f70e2
cmp esi, ebx
jne 0x4f70e2
mov byte [esi], 0xa
jmp 0x4f711b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f711c
mov byte [esi], 0xd
jmp 0x4f711b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7a8798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f7118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f711c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f7178
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 + 0x7a8798]
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 0x4f71bb
cmp word [esi], dx
jne 0x4f71bb
or byte [edi + eax + 0x28], 4
jmp 0x4f71c0
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 0x4f7313
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 0x4f72f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f7202
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f7238
cmp eax, edx
jae 0x4f7244
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 0x4f71da
jmp 0x4f7313
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 0x4f72ef
cmp dword [ebp - 0x14], 0
je 0x4f72ef
mov eax, dword [ebx*4 + 0x7a8798]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f72c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4f7290
mov word [esi], cx
jmp 0x4f72c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7a8798]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7a8798]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7a8798]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4f7313
pop ebx
cmp word [ebp - 4], bx
jne 0x4f72d8
cmp esi, dword [ebp + 0xc]
jne 0x4f72d8
mov word [esi], bx
jmp 0x4f7310
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f7313
push 0xd
jmp 0x4f730c
mov ecx, dword [ebx*4 + 0x7a8798]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f730a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f7313
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 0x4fa1b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x7a3f40]
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 0x4fa1ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fa676
test al, al
jne 0x4fa1f9
sub edx, 2
cmp edx, edi
jne 0x4fa1df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fa221
lea eax, [edi + 2]
cmp edx, eax
je 0x4fa221
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f9dad
add esp, 0x10
jmp 0x4fa31b
push esi
lea ecx, [ebp - 0x255]
call fcn.004fa676
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 0x4fa264
push dword [ebp - 0x25c]
jmp 0x4fa211
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 0x4fa2a1
cmp word [ebp - 0x226], 0
je 0x4fa2c2
cmp word [ebp - 0x226], ax
jne 0x4fa2a1
cmp word [ebp - 0x224], 0
je 0x4fa2c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f9dad
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fa30e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fa27b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fa2f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fa31b
push 0x4f9795
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045b64f
add esp, 0x10
jmp 0x4fa2eb
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.0045880f
leave
ret