joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5031e3
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, str.ws2_32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x503236
mov ecx, esi
call fcn.0050313e
mov edi, eax
test edi, edi
jne 0x503236
push str.module
push str.expr__s_:_assert_failed_n
push str.pl_ws2_32_instance_init
push 0x10
push str.srcliblibpaloswindowsinterws2_32.c
push 0x5a9534
push 3
push eax
call fcn.004e8a0a
add esp, 0x20
call fcn.004ee4bf
xor al, al
jmp 0x5033eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push edi
call esi
push str.WSACleanup
push edi
mov dword [0x8bf898], eax
call esi
push str.WSASocketA
push edi
mov dword [0x8bf89c], eax
call esi
push 0x5b0388
push edi
mov dword [0x8bf8a0], eax
call esi
push str.WSAGetLastError
push edi
mov dword [0x8bf8a4], eax
call esi
push str.WSAEnumProtocolsW
push edi
mov dword [0x8bf8a8], eax
call esi
push 0x5b03cc
push edi
mov dword [0x8bf8ac], eax
call esi
push 0x5b03c4
push edi
mov dword [0x8bf8b0], eax
call esi
push 0x5b03e0
push edi
mov dword [0x8bf8b4], eax
call esi
push 0x5b03d4
push edi
mov dword [0x8bf8b8], eax
call esi
push str.bind
push edi
mov dword [0x8bf8bc], eax
call esi
push str.send
push edi
mov dword [0x8bf8c0], eax
call esi
push str.recv
push edi
mov dword [0x8bf8c4], eax
call esi
push str.sendto
push edi
mov dword [0x8bf8c8], eax
call esi
push str.recvfrom
push edi
mov dword [0x8bf8cc], eax
call esi
push str.accept
push edi
mov dword [0x8bf8d0], eax
call esi
push str.listen
push edi
mov dword [0x8bf8d4], eax
call esi
push str.select
push edi
mov dword [0x8bf8d8], eax
call esi
push str.connect
push edi
mov dword [0x8bf8dc], eax
call esi
push str.shutdown
push edi
mov dword [0x8bf8e0], eax
call esi
mov dword [0x8bf8e4], eax
push str.getsockname
push edi
call esi
push str.getpeername
push edi
mov dword [0x8bf8e8], eax
call esi
push str.getsockopt
push edi
mov dword [0x8bf8ec], eax
call esi
push str.setsockopt
push edi
mov dword [0x8bf8f0], eax
call esi
push str.ioctlsocket
push edi
mov dword [0x8bf8f4], eax
call esi
push str.closesocket
push edi
mov dword [0x8bf8f8], eax
call esi
push str.gethostname
push edi
mov dword [0x8bf8fc], eax
call esi
push 0x58622c
push edi
mov dword [0x8bf900], eax
call esi
push 0x5b0440
push edi
mov dword [0x8bf904], eax
call esi
push 0x586244
push edi
mov dword [0x8bf908], eax
call esi
push str.gethostbyname
push edi
mov dword [0x8bf90c], eax
call esi
push str.gethostbyaddr
push edi
mov dword [0x8bf910], eax
call esi
push str.__WSAFDIsSet
push edi
mov dword [0x8bf914], eax
call esi
mov dword [0x8bf918], eax
mov al, 1
pop edi
pop esi
ret
Function at 0x5040f9
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x33dc
call fcn.0054e7e0
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x33d8], eax
push ebx
push esi
push edi
push ecx
push str..PhysicalDrive_d
lea eax, [esp + 0x24]
mov ebx, edx
push 0x100
push eax
xor esi, esi
call fcn.004ea423
add esp, 0x10
lea eax, [esp + 0x1c]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x504294
push ebp
push 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x14], esi
push esi
push eax
call fcn.0051c010
mov ebp, 0x2710
mov dword [esp + 0x20], esi
push ebp
lea eax, [esp + 0xce8]
mov dword [esp + 0x28], esi
push esi
push eax
call fcn.0051c010
add esp, 0x18
lea eax, [esp + 0x10]
push esi
push eax
push ebp
lea eax, [esp + 0xce4]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x504289
mov ecx, dword [esp + 0xce4]
lea eax, [esp + 0x8f0]
push eax
lea eax, [esp + 0xcdc]
push eax
call fcn.00503fc8
mov ecx, dword [esp + 0xcf0]
lea eax, [esp + 0x510]
push eax
lea eax, [esp + 0xce4]
push eax
call fcn.00503fc8
mov ecx, dword [esp + 0xcfc]
lea eax, [esp + 0x900]
push eax
lea eax, [esp + 0xcec]
push eax
call fcn.00503fc8
mov ecx, dword [esp + 0xd08]
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0xcf4]
push eax
call fcn.00503fc8
movsx ax, byte [esp + 0x140]
mov ebp, 0x107
push ebp
movzx eax, ax
push eax
call fcn.00538058
add esp, 0x28
test eax, eax
jne 0x504253
movsx ax, byte [esp + 0x133]
push ebp
movzx eax, ax
push eax
call fcn.00538058
pop ecx
pop ecx
test eax, eax
je 0x504289
push ecx
lea eax, [esp + 0x124]
mov esi, 0x80
push eax
lea ecx, [ebx + 0x100]
mov edx, esi
call fcn.004ea31a
pop ecx
lea eax, [esp + 0x50c]
mov edx, esi
push eax
lea ecx, [ebx + 0x80]
call fcn.004ea31a
pop ecx
xor esi, esi
pop ecx
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 1]
pop ebp
mov ecx, dword [esp + 0x33e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x33dc
ret

Function at 0x505b73
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x505b7e
xor eax, eax
pop esi
ret
push ebx
push edi
push esi
call fcn.00520660
mov ebx, eax
xor edx, edx
mov edi, edx
pop ecx
test ebx, ebx
je 0x505ba9
movsx ecx, byte [esi + edi]
add ecx, edx
imul edx, ecx, 0x401
mov eax, edx
shr eax, 6
xor edx, eax
inc edi
cmp edi, ebx
jb 0x505b91
imul ecx, edx, 9
pop edi
pop ebx
pop esi
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x5091cc
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov byte [0x8bff1f], 0
push ebx
inc edx
mov byte [0x8bfd00], 0xff
xor ebx, ebx
mov byte [ebx + 0x8bfe20], dl
mov byte [edx + 0x8bfd00], bl
add edx, edx
mov ecx, edx
xor ecx, 0x11d
test edx, 0x100
cmove ecx, edx
inc ebx
movzx edx, cl
cmp ebx, 0xff
jb 0x5091e0
pop ebx
push 0x1d
push 0
push 0x8bfe00
call fcn.0051c010
add esp, 0xc
mov dword [0x8bf96c], 1
ret
Function at 0x509228
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x80
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0xc], 1
xor edi, edi
mov esi, edi
test ebx, ebx
je 0x5092a9
push ebp
mov ebp, 0xff
mov dword [esp + esi*4 + 0x14], 1
mov ecx, esi
test esi, esi
je 0x509287
mov eax, dword [esp + ecx*4 + 0x10]
xor edx, edx
movzx eax, byte [eax + 0x8bfd00]
add eax, esi
div ebp
movzx eax, byte [edx + 0x8bfe20]
xor eax, dword [esp + ecx*4 + 0xc]
mov dword [esp + ecx*4 + 0x10], eax
sub ecx, 1
jne 0x509262
mov eax, dword [esp + 0x10]
xor edx, edx
movzx eax, byte [eax + 0x8bfd00]
add eax, esi
div ebp
inc esi
movzx eax, byte [edx + 0x8bfe20]
mov dword [esp + 0x10], eax
cmp esi, ebx
jb 0x509254
pop ebp
lea eax, [ebx - 2]
imul ecx, eax, 0x1f
add ecx, 0x8bf970
mov eax, dword [esp + edi*4 + 0xc]
inc edi
mov al, byte [eax + 0x8bfd00]
mov byte [ecx], al
inc ecx
cmp edi, ebx
jbe 0x5092b5
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov byte [ebx + 0x8bfdfe], 1
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x80
ret

Function at 0x5092e6
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
cmp dword [0x8bf96c], 0
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, edx
mov dword [esp + 0x10], ecx
jne 0x509303
call fcn.005091cc
cmp esi, 0x1e
jbe 0x509310
or eax, 0xffffffff
jmp 0x5093fb
push esi
push 0
push edi
call fcn.0051c010
add esp, 0xc
cmp byte [esi + 0x8bfdfe], 0
jne 0x50932c
mov ecx, esi
call fcn.00509228
push ebx
lea eax, [esi - 2]
imul ebx, eax, 0x1f
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
add ebx, 0x8bf970
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x18], ebp
jbe 0x5093f7
mov edx, 0xff
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + ebp]
movzx eax, byte [edi]
xor ecx, eax
mov al, byte [ecx + 0x8bfd00]
mov byte [esp + 0x13], al
cmp al, dl
je 0x5093a9
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x5093a9
movzx ebp, al
lea eax, [esi - 1]
add eax, ebx
mov dword [esp + 0x1c], eax
mov ebx, eax
movzx eax, byte [ebx]
xor edx, edx
add eax, ebp
div dword [esp + 0x20]
mov al, byte [edx + 0x8bfe20]
xor byte [edi + ecx], al
inc ecx
dec ebx
cmp ecx, esi
jb 0x509387
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
push edi
call fcn.0051c650
mov cl, byte [esp + 0x1f]
mov edx, 0xff
add esp, 0xc
cmp cl, dl
je 0x5093e2
movzx eax, byte [ebx]
xor edx, edx
movzx ecx, cl
add eax, ecx
mov ecx, 0xff
div ecx
mov al, byte [edx + 0x8bfe20]
mov edx, ecx
jmp 0x5093e4
xor al, al
inc ebp
mov byte [esi + edi - 1], al
mov dword [esp + 0x14], ebp
cmp ebp, dword [esp + 0x18]
jb 0x509357
pop ebp
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x5148f2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
call fcn.00530c3c
push eax
call fcn.00536e50
pop ecx
pop ecx
mov edi, esi
call fcn.00536e2f
cdq
mov ecx, 0xff
idiv ecx
push 0xa
pop ecx
inc dl
cmp dl, 9
movzx eax, dl
cmove eax, ecx
mov byte [ebx + esi + 0xc], al
movzx eax, al
push eax
push str._02x
push 0x21
pop eax
sub eax, edi
push eax
lea eax, [ebx + 0x1c]
add eax, edi
push eax
call fcn.004ea423
add esp, 0x10
add edi, 2
inc esi
cmp edi, 0x20
jl 0x51490b
pop edi
pop esi
pop ebx
push 6
pop eax
pop ecx
pop ecx
ret
Function at 0x514b0f
Capabilities:
Link many functions at runtime

Disassembly:
push 0x38
mov eax, 0x54ee66
call fcn.0054e4ad
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
and dword [ebp - 0x44], 0
push 0x55f293
call fcn.005145c2
and dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x514b5c
mov ebx, str.gmcrypto.dll
mov byte [ebp - 4], 1
push ebx
call fcn.00520660
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00514cf7
jmp 0x514b9e
lea ecx, [ebp - 0x28]
cmp ecx, esi
je 0x514b75
cmp dword [esi + 0x14], 0xf
jbe 0x514b6b
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00514cf7
mov ebx, str.gmcrypto.dll
lea ecx, [ebp - 0x40]
push ebx
call fcn.005145c2
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00514de9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0051459e
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
jne 0x514bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x103
mov dword [ebp - 0x44], str.load___s___d_error:
push 0x30
jmp 0x514c6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GMC_New_CTX
push eax
call esi
push str.GMC_Delete_CTX
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.GMC_set_Key
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.GMC_ECKEY_set_PublicKey
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.GMC_ECKEY_set_PrivateKey
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.GMC_Encrypt
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.GMC_Decrypt
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.GMC_GetLastErrMsg
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
xor ecx, ecx
mov dword [edi + 0x20], eax
cmp dword [edi + 4], ecx
je 0x514c5d
cmp dword [edi + 8], ecx
je 0x514c5d
cmp dword [edi + 0xc], ecx
je 0x514c5d
cmp dword [edi + 0x10], ecx
je 0x514c5d
cmp dword [edi + 0x14], ecx
je 0x514c5d
cmp dword [edi + 0x18], ecx
je 0x514c5d
cmp dword [edi + 0x1c], ecx
je 0x514c5d
test eax, eax
jne 0x514cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
pop ecx
push 0x3f
mov dword [ebp - 0x44], str._get___s__interface_function_error__d_.
pop edx
mov esi, eax
xor eax, eax
push esi
push ebx
push dword [ebp - 0x44]
push str.CGMCrypto::Initialize
push edx
push str.srcliblibsmGMCrypto.cpp
push 0x55ed0c
push ecx
push eax
call fcn.004e8a0a
add esp, 0x24
test esi, esi
je 0x514cc9
cmp dword [edi], 0
je 0x514caa
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [edi], eax
jmp 0x514cac
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
jmp 0x514cc9
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0051459e
mov eax, esi
call fcn.0054e46b
ret 4
Function at 0x517c8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call fcn.005178dd
push 2
pop edx
mov ecx, esi
pop esi
jmp fcn.00517ca1
Function at 0x51841f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
inc ebp
push edi
mov dword [esi + 0x5c], edx
mov dword [esi + 0x94], ebp
mov edx, 0x7ff89425
mov ecx, esi
call fcn.005178dd
mov ecx, eax
lea edi, [esi + 0x2c]
cmp ecx, 0x2000000
je 0x5185bf
cmp ecx, 0x8000
je 0x518432
cmp ecx, 0x800000
jne 0x51847d
lea eax, [esi + 8]
mov edx, 0x1000
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.005178dd
mov ecx, esi
call fcn.00518134
lea edi, [esi + 0x2c]
jmp 0x51849d
cmp ecx, 0x1000000
jne 0x5184b8
lea eax, [esi + 0x20]
mov edx, 0x1000
mov ecx, esi
mov dword [edi], eax
call fcn.005178dd
mov ecx, esi
call fcn.00518134
mov edx, 0x7ff8d425
mov ecx, esi
call fcn.005178dd
mov ecx, eax
cmp ecx, 0x4000
jne 0x518443
jmp 0x518432
cmp ecx, 0x400000
jne 0x51855d
mov edx, 0x10000000
mov ecx, esi
call fcn.005178dd
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x40]
call fcn.0051ae96
mov ebx, eax
mov ecx, esi
cmp dword [ebx + 4], 0
jne 0x5185b8
mov dword [ebx + 4], ebp
jmp 0x518519
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x3c]
call fcn.0051ae96
mov ecx, dword [ebx]
mov edx, 0x102
mov dword [eax + 0x10], ecx
mov ecx, esi
inc dword [ebx]
call fcn.005178dd
cmp eax, 2
je 0x518531
mov ecx, esi
mov edx, 0x4000002
call fcn.005178dd
cmp eax, 2
jne 0x5184f1
cmp dword [ebx], 0
jne 0x5185c5
lea eax, [ebx + 8]
mov dword [edi], eax
mov edx, 0x9000
mov ecx, esi
call fcn.005178dd
cmp eax, 0x8000
je 0x518536
mov ecx, esi
call fcn.00518134
mov ecx, dword [esi + 0x3c]
call fcn.0051ad15
jmp 0x51849d
lea eax, [esi + 0x14]
mov dword [edi], eax
test ecx, 0x7c380425
je 0x518496
mov edx, 0xd00
mov dword [esi + 0x78], ebp
mov ecx, esi
call fcn.00517ffe
mov edx, 0x200d000
mov ecx, esi
mov ebx, eax
call fcn.00517ca1
mov dword [ebx + 8], eax
mov ecx, esi
cmp dword [esi + 0x8c], 0x1000
jne 0x5185a3
call fcn.00518134
jmp 0x5185ad
mov edx, 0x400
call fcn.00517ffe
mov eax, dword [esi + 0x18]
mov dword [ebx + 0xc], eax
jmp 0x51849d
mov edx, str.Duplicate_function
jmp 0x5185cc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, str.Unexpected_token
mov ecx, esi
call fcn.005173cb
int3
Function at 0x51ba6a
Capabilities:
Parse pe header

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

Function at 0x5290ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0054e7e0
mov eax, dword [0x5c9040]
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.005298f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x52912e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x52928a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0054e670
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 + 0x605108]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0052dafa
mov ecx, dword [esi*4 + 0x605108]
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 0x529283
cmp eax, dword [edi + ecx + 0x24]
jne 0x529283
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 0x529283
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052dafa
add esp, 0x14
test edx, edx
jl 0x529283
jg 0x5291f9
test eax, eax
jb 0x529283
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x529283
jl 0x529213
cmp dword [ebp - 0x1008], eax
ja 0x529283
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x529231
test ebx, ebx
je 0x52926a
cmp ecx, edi
jae 0x52926a
mov al, byte [ecx]
cmp al, 0xd
jne 0x52924b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x529257
cmp byte [ecx + 1], 0xa
jne 0x529257
inc ecx
jmp 0x529257
movzx eax, al
movsx eax, byte [eax + 0x5c9190]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x529231
cmp edx, ebx
jne 0x529231
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x529288
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051b034
leave
ret
Function at 0x52e0e8
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 + 0x605108]
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 0x52e128
cmp byte [ebx], 0xa
jne 0x52e128
or byte [eax + edi + 0x28], 4
jmp 0x52e12d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x52e22b
mov al, byte [edx]
cmp al, 0x1a
je 0x52e20d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x52e15c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x52e181
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x52e18b
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 0x52e13e
jmp 0x52e22b
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 0x52e208
cmp dword [ebp - 0xc], 0
je 0x52e208
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x605108]
test byte [eax + edi + 0x28], 0x48
je 0x52e1e2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x52e1cd
mov byte [esi], dl
jmp 0x52e1de
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x605108]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x52e22b
cmp byte [ebp - 1], 0xa
jne 0x52e1f1
cmp esi, ebx
jne 0x52e1f1
mov byte [esi], 0xa
jmp 0x52e22a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0052db18
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x52e22b
mov byte [esi], 0xd
jmp 0x52e22a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x605108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x52e227
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52e22b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52e234
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 + 0x605108]
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 0x52e277
cmp word [esi], dx
jne 0x52e277
or byte [edi + eax + 0x28], 4
jmp 0x52e27c
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 0x52e3cf
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 0x52e3af
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x52e2be
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x52e2f4
cmp eax, edx
jae 0x52e300
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 0x52e296
jmp 0x52e3cf
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 0x52e3ab
cmp dword [ebp - 0x14], 0
je 0x52e3ab
mov eax, dword [ebx*4 + 0x605108]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x52e383
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x52e34c
mov word [esi], cx
jmp 0x52e37f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x605108]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x605108]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x605108]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x52e3cf
pop ebx
cmp word [ebp - 4], bx
jne 0x52e394
cmp esi, dword [ebp + 0xc]
jne 0x52e394
mov word [esi], bx
jmp 0x52e3cc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0052db18
add esp, 0x10
cmp word [ebp - 4], bx
je 0x52e3cf
push 0xd
jmp 0x52e3c8
mov ecx, dword [ebx*4 + 0x605108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x52e3c6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x52e3cf
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 0x536d61
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5518c8
push esi
call fcn.0053059e
pop ecx
pop ecx
test eax, eax
jne 0x536d8f
xor al, al
jmp 0x536e0c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00536a98
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x536dc9
push dword [ebp - 0x210]
call fcn.00528163
xor al, al
jmp 0x536e0a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x536dcf
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x536def
push edx
call fcn.00536c97
pop ecx
test al, al
je 0x536dba
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x536dfd
mov bl, 1
push dword [ebp - 0x210]
call fcn.00528163
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051b034
leave
ret

Function at 0x53bd1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55233c
push 0x552334
push str.FlsAlloc
push 0x1e
call fcn.0053bb4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53bd51
push dword [ebp + 8]
mov ecx, esi
call dword [0x54f668]
call esi
jmp 0x53bd57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x53bd9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55234c
push 0x552344
push str.FlsGetValue
push 0x20
call fcn.0053bb4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53bdd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x54f668]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5452c7
Capabilities:
Read file on windows

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