joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x70], 0x40a708
mov ecx, dword [ebp - 0x34]
mov dword [0x40a8b8], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx], 0x84
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x64], 0x300
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ATL.DLL_AtlModuleInit]
cmp dword [ebp + 0x10], 0
je 0x40593a
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push 0x40a8a8
call fcn.00405e50
add esp, 0xc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 1
jbe 0x405a1b
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x405984
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x20
jge 0x4059b1
mov ecx, dword [ebp - 0x28]
and ecx, 0x80000000
test ecx, ecx
je 0x405999
jmp 0x4059b1
mov edx, dword [ebp - 0x28]
shl edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
jmp 0x40597b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
lea edx, [ecx*4 + 4]
push edx
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], eax
mov dword [ebp - 0x30], 0
jmp 0x4059f4
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x74]
ja 0x405a19
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ebp - 0x30]
mov dword [edx + ecx*4], eax
jmp 0x4059eb
jmp 0x405a2f
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x74], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405b50
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x405b6d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x405bb4
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x405b9a
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
jne 0x405b78
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x405bb2
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405bce
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jle 0x405bce
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405bb4
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
test edx, edx
je 0x405bf2
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x405bf2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405bce
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x18]
and ecx, 1
test ecx, ecx
je 0x405c1b
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov dword [ebp - 0x50], edx
jmp 0x405c22
mov dword [ebp - 0x50], 0xa
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4041a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4041eb
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4041ba
jmp 0x4041eb
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4041db
pop esi
pop ebp
ret

Function at 0x40424b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.TestFastBernoulliTrial.exe_gMozillaPoisonSize]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x404283
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x4042ad
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x4042ad
test edi, edi
je 0x40427a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40427a
test edi, edi
je 0x4042b5
mov eax, edi
jmp 0x40427c
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40427c
int3

Function at 0x4042e4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [sym.TestFastBernoulliTrial.exe_gMozillaPoisonSize], eax
call fcn.0040424b
mov ecx, dword [sym.TestFastBernoulliTrial.exe_gMozillaPoisonSize]
mov dword [sym.TestFastBernoulliTrial.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40431a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFastBernoulliTrial.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40368e
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49fa68
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49fa79
pop esi
ret
push ebx
push edi
push esi
call fcn.0049f94f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040407f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49faa1
push ebx
push esi
push edi
call fcn.004057ea
add esp, 0xc
push 0
call fcn.00406366
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4049e4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x4163d0
sub esp, 0x220
mov eax, dword [0x638940]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x24], eax
mov eax, ecx
mov byte [esp + ecx + 0x28], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, 0x100
jl 0x416402
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x28]
movzx eax, byte [esp + esi + 0x128]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x416445
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jl 0x416422
mov ebp, dword [esp + 0x234]
xor ecx, ecx
xor eax, eax
xor edi, edi
test ebp, ebp
jle 0x416556
mov dword [esp + 0x20], eax
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x416485
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add eax, esi
mov dword [esp + 0x10], ecx
and eax, 0x800000ff
jns 0x4164a0
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push eax
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.004061a9
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov edx, dword [esp + 0x28]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x2c]
xor byte [edx + edi], al
mov edx, dword [esp + 0x18]
test edx, edx
je 0x416547
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x416521
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x41656e
push eax
push edx
call fcn.00401a64
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
inc edi
cmp edi, ebp
jge 0x416555
mov eax, dword [esp + 0x14]
jmp 0x416474
pop ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004030df
add esp, 0x220
ret
call fcn.0040487c
int3

Function at 0x4058b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x447409
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x447448
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447448
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447448
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x447448
cmp dword [ecx + 0x74], 0xe
jbe 0x447448
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x417c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x417bd0
sub esp, 0x6c
mov eax, dword [0x638940]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040135c
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.00402734
add esp, 4
mov edi, 0x4bb203
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x417c46
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.00402734
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417c58
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.004033f5
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x417d62
test ebx, ebx
je 0x417c88
push ebx
push edi
push ebp
call fcn.004057ea
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403210
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403210
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x417d35
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403d3c
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403d3c
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x417d49
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004030df
add esp, 0x6c
ret 8
call fcn.004010af
int3

Function at 0x445a6a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0040381e
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 0x445aa9
sub eax, 1
je 0x445aa4
sub eax, 1
je 0x445aa0
xor eax, eax
leave
ret
push 3
jmp 0x445aab
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4998e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401de8
mov eax, dword [0x638940]
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.00405f6f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499925
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x499a81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004060c3
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 + 0x63c368]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040330f
mov ecx, dword [esi*4 + 0x63c368]
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 0x499a7a
cmp eax, dword [edi + ecx + 0x24]
jne 0x499a7a
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 0x499a7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040330f
add esp, 0x14
test edx, edx
jl 0x499a7a
jg 0x4999f0
test eax, eax
jb 0x499a7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x499a7a
jl 0x499a0a
cmp dword [ebp - 0x1008], eax
ja 0x499a7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x499a28
test ebx, ebx
je 0x499a61
cmp ecx, edi
jae 0x499a61
mov al, byte [ecx]
cmp al, 0xd
jne 0x499a42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x499a4e
cmp byte [ecx + 1], 0xa
jne 0x499a4e
inc ecx
jmp 0x499a4e
movzx eax, al
movsx eax, byte [eax + 0x638ca8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x499a28
cmp edx, ebx
jne 0x499a28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x499a7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030df
leave
ret
Function at 0x49a1c0
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 + 0x63c368]
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 0x49a200
cmp byte [ebx], 0xa
jne 0x49a200
or byte [eax + edi + 0x28], 4
jmp 0x49a205
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49a303
mov al, byte [edx]
cmp al, 0x1a
je 0x49a2e5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49a234
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49a259
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49a263
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 0x49a216
jmp 0x49a303
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 0x49a2e0
cmp dword [ebp - 0xc], 0
je 0x49a2e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x63c368]
test byte [eax + edi + 0x28], 0x48
je 0x49a2ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49a2a5
mov byte [esi], dl
jmp 0x49a2b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x63c368]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49a303
cmp byte [ebp - 1], 0xa
jne 0x49a2c9
cmp esi, ebx
jne 0x49a2c9
mov byte [esi], 0xa
jmp 0x49a302
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49a303
mov byte [esi], 0xd
jmp 0x49a302
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x63c368]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a2ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a303
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49a35f
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 + 0x63c368]
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 0x49a3a2
cmp word [esi], dx
jne 0x49a3a2
or byte [edi + eax + 0x28], 4
jmp 0x49a3a7
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 0x49a4fa
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 0x49a4da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49a3e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49a41f
cmp eax, edx
jae 0x49a42b
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 0x49a3c1
jmp 0x49a4fa
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 0x49a4d6
cmp dword [ebp - 0x14], 0
je 0x49a4d6
mov eax, dword [ebx*4 + 0x63c368]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49a4ae
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49a477
mov word [esi], cx
jmp 0x49a4aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x63c368]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x63c368]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x63c368]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49a4fa
pop ebx
cmp word [ebp - 4], bx
jne 0x49a4bf
cmp esi, dword [ebp + 0xc]
jne 0x49a4bf
mov word [esi], bx
jmp 0x49a4f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49a4fa
push 0xd
jmp 0x49a4f3
mov ecx, dword [ebx*4 + 0x63c368]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a4f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a4fa
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 0x49e007
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x638940]
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 0x49e052
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e4c9
test al, al
jne 0x49e04c
sub edx, 2
cmp edx, edi
jne 0x49e032
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e074
lea eax, [edi + 2]
cmp edx, eax
je 0x49e074
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049dc00
add esp, 0x10
jmp 0x49e16e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e4c9
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 0x49e0b7
push dword [ebp - 0x25c]
jmp 0x49e064
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 0x49e0f4
cmp word [ebp - 0x226], 0
je 0x49e115
cmp word [ebp - 0x226], ax
jne 0x49e0f4
cmp word [ebp - 0x224], 0
je 0x49e115
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049dc00
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e161
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e0ce
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e149
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e16e
push 0x49d5e8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405641
add esp, 0x10
jmp 0x49e13e
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.004030df
leave
ret
Function at 0x10058143
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10058152
pop dword [ebp - 0x30]
mov eax, 0x10058152
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x391eff1d
sub dword [ebp - 0x40], 0xeaccb9d2
mov dword [ebp - 0x3c], 0x7d371e2e
add dword [ebp - 0x3c], 0xb4fc2e17
mov dword [ebp - 0x38], 0x5be4ad03
sub dword [ebp - 0x38], 0xf9868d5
mov dword [ebp - 0x34], 0x5d3b79f9
sub dword [ebp - 0x34], 0x5d3b79f9
lea eax, [ebp - 0x40]
push eax
mov eax, 0xef26a001
sub eax, 0xdf210ef5
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe21c2fd7
sub dword [ebp - 0x40], 0x6da9c681
mov dword [ebp - 0x3c], 0xaed95508
add dword [ebp - 0x3c], 0x92930c6d
mov dword [ebp - 0x38], 0xd8c713a5
sub dword [ebp - 0x38], 0x7557a739
mov dword [ebp - 0x34], 0x46f0713c
sub dword [ebp - 0x34], 0x46f0713c
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x5b0f7
push 0
call eax
mov ecx, 0x2541818b
add ecx, 0xdabebcb0
xor edx, edx
add edx, eax
mov esi, 0x10069400
add esi, dword [ebp - 0x30]
mov ebx, 0xc349e4c3
add ebx, 0x74e66b54
add dword [ebp - 0x18], 0x3ac44a0e
mov edi, dword [esi]
xor dword [ebp - 8], 0xda2515ac
add edi, ebx
xor dword [ebp - 8], 0x9f6fd462
mov dword [edx], edi
xor dword [ebp - 0xc], 0x2f2cee74
add edx, 4
add esi, 0xa3bc735b
sub esi, 0xa3bc7357
loop 0x10058266
add eax, 0xebbf
mov ebx, eax
add eax, 0xa99885af
sub eax, 0xa99885aa
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret