joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1002aaee
pop dword [ebp - 0x34]
mov eax, 0xd22af597
sub eax, 0xc2284aa9
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd1e62306
add dword [ebp - 0x44], 0x7c6c2245
mov dword [ebp - 0x40], 0xd3c75ecf
sub dword [ebp - 0x40], 0xa194128a
mov dword [ebp - 0x3c], 0x51cdfc21
sub dword [ebp - 0x3c], 0x581b7f3
mov dword [ebp - 0x38], 0x3e91b144
add dword [ebp - 0x38], 0xc16e4ebc
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xbd769774
add dword [ebp - 0x44], 0xb6fbd1e2
mov dword [ebp - 0x40], 0xd787385a
sub dword [ebp - 0x40], 0x961ad6e5
mov dword [ebp - 0x3c], 0xce82125f
sub dword [ebp - 0x3c], 0x6b12a5f3
mov dword [ebp - 0x38], 0x7569fca0
add dword [ebp - 0x38], 0x8a960360
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xf257aeb8
add eax, 0x1dab1170
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39040
push 0
call eax
mov ecx, 0x5622337e
sub ecx, 0x5621e14d
mov esi, eax
mov edi, 0x1f447fa4
add edi, 0xf0bf165c
add edi, dword [ebp - 0x34]
mov ebx, 0x2c9b086d
sub ebx, 0x67f93fa5
xor dword [ebp - 4], eax
mov edx, dword [edi]
xor dword [ebp - 0x18], 0x2b755b0e
add edx, ebx
mov dword [esi], edx
mov dword [ebp - 0x24], 0xf3b5de9
add esi, 0xe5cb3565
add esi, 0x1a34ca9f
add edi, 0x70770ed3
add edi, 0x8f88f131
loop 0x1002ac0b
add eax, 0x4ffde9ce
sub eax, 0x4ffcae37
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe2867e5e
sub ecx, 0xd2867e5e
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40b252
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40b261
pop dword [ebp - 0x40]
mov eax, 0x1d6bc6c4
sub eax, 0x1d2b1463
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3d2e7
push 0
mov eax, 0x6bc5d691
add eax, 0x947b0a47
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xa3888c3f
add ecx, 0x5c77cb31
mov edx, eax
mov ebx, 0x7f4ffdfd
add ebx, 0x80f13dc7
add ebx, dword [ebp - 0x40]
mov esi, 0xd945d047
sub esi, 0x6ea790be
xor dword [ebp - 0x18], edx
mov edi, dword [ebx]
add dword [ebp - 0x1c], 0x28d8380d
add edi, esi
xor dword [ebp - 0x18], 0xcb84f19b
mov dword [edx], edi
add edx, 4
add ebx, 0x2e5b9d1e
sub ebx, 0x2e5b9d1a
loop 0x40b2c0
add eax, 0x15093
mov ebx, eax
add eax, 0xd6c8894a
add eax, 0x293776bb
mov ecx, 0x7ef958a4
sub ecx, 0x7eb958a4
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40ac1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40ac29
pop dword [ebp - 0x20]
mov eax, 0x40ac29
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x10f6a516
sub dword [ebp - 0x30], 0xc2a45fcb
mov dword [ebp - 0x2c], 0xb981b40d
sub dword [ebp - 0x2c], 0x874e67c8
mov dword [ebp - 0x28], 0x4859fbbd
sub dword [ebp - 0x28], 0xfc0db78f
mov dword [ebp - 0x24], 0x225444b7
sub dword [ebp - 0x24], 0x225444b7
lea eax, [ebp - 0x30]
push eax
mov eax, 0xfa717dc
add eax, 0xf099b870
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2eed9919
add dword [ebp - 0x30], 0x4584d03d
mov dword [ebp - 0x2c], 0xd57ec193
sub dword [ebp - 0x2c], 0x9412601e
mov dword [ebp - 0x28], 0xfd320d17
add dword [ebp - 0x28], 0x663d5f55
mov dword [ebp - 0x24], 0x1db36323
sub dword [ebp - 0x24], 0x1db36323
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x394ac
push 0
call eax
mov ecx, 0x45f6
xor edi, edi
add edi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x20]
mov esi, 0xa59452bd
add esi, 0x4b5d1bd2
sub dword [ebp - 0x18], edx
mov ebx, dword [edx]
xor ebx, esi
xor dword [ebp - 0x10], ecx
mov dword [edi], ebx
sub dword [ebp - 0x10], 0xbac7e42c
add edi, 4
add edx, 0x66caddfa
sub edx, 0x66caddf6
loop 0x40ad37
add eax, 0x10aab
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x96558b3c
sub ecx, 0x96158b3c
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x405850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40585f
pop dword [ebp - 4]
mov eax, 0x1e3a6820
sub eax, 0x1dfa0fc1
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x33b40808
sub dword [ebp - 0x14], 0xe561c2bd
mov dword [ebp - 0x10], 0x488bb5f4
sub dword [ebp - 0x10], 0x165869af
mov dword [ebp - 0xc], 0x59d0ead1
sub dword [ebp - 0xc], 0xd84a6a3
mov dword [ebp - 8], 0x7331f0bf
add dword [ebp - 8], 0x8cce0f41
lea eax, [ebp - 0x14]
push eax
mov eax, 0x3dea1460
add eax, 0xc2571c30
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xcb141c36
sub dword [ebp - 0x14], 0x56a1b2e0
mov dword [ebp - 0x10], 0x88e6c648
add dword [ebp - 0x10], 0xb8859b2d
mov dword [ebp - 0xc], 0x38c2dd52
sub dword [ebp - 0xc], 0xd55370e6
mov dword [ebp - 8], 0x69bbff10
add dword [ebp - 8], 0x964400f0
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3a75f
push 0
call eax
mov ecx, 0xa93241b3
sub ecx, 0xa931fa17
mov edi, eax
mov edx, 0xa9384cf2
add edx, 0x5709530e
add edx, dword [ebp - 4]
mov esi, 0x41d7a365
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
add edi, 4
add edx, 0x4a8d9eac
sub edx, 0x4a8d9ea8
loop 0x405976
add eax, 0x11143
mov ebx, eax
add eax, 5
mov ecx, 0x45fc1988
sub ecx, 0x45bc1988
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0x1030cc0c
sub eax, 0xff0a37e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf61da2f8
add dword [ebp - 0x54], 0x5834a253
mov dword [ebp - 0x50], 0xb00e337a
sub dword [ebp - 0x50], 0x7ddae735
mov dword [ebp - 0x4c], 0x639e37b2
sub dword [ebp - 0x4c], 0x1751f384
mov dword [ebp - 0x48], 0x499fe4d8
add dword [ebp - 0x48], 0xb6601b28
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x1005e103
sub dword [ebp - 0x54], 0x9b9377ad
mov dword [ebp - 0x50], 0xbd1ae255
sub dword [ebp - 0x50], 0x7bae80e0
mov dword [ebp - 0x4c], 0xe00478ee
sub dword [ebp - 0x4c], 0x7c950c82
mov dword [ebp - 0x48], 0xa0730a7b
sub dword [ebp - 0x48], 0xa0730a7b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3a132
push 0
call eax
mov ecx, 0xbff3d8f
add ecx, 0xf401185b
mov edi, eax
mov edx, 0x426d25bb
add edx, 0xbdd3da45
add edx, dword [ebp - 0x44]
mov esi, 0x160cb59
add esi, 0x6c9b1b30
sub dword [ebp - 0x14], esi
mov ebx, dword [edx]
sub dword [ebp - 0x18], edx
xor ebx, esi
add dword [ebp - 0x20], ecx
mov dword [edi], ebx
xor dword [ebp - 0x28], edi
add edi, 4
add edx, 0x4cfb2773
add edx, 0xb304d891
loop 0x4029a6
add eax, 0x5f4ddab3
sub eax, 0x5f4c9038
xor ebx, ebx
add ebx, eax
add eax, 0x4fa475ba
sub eax, 0x4fa475b5
mov ecx, 0x3429e847
add ecx, 0xcc1617b9
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10008730
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x44], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x44], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x1001c540
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x10052008
mov eax, dword [ebp + 8]
push eax
call fcn.1002b00b
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1002b2fd
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.1002af24
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.1002b2fd
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 8]
add edx, 1
setb cl
neg ecx
or ecx, edx
push ecx
call fcn.10023122
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.1002b51d
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
mov byte [eax], 0
xor ecx, ecx
mov edx, dword [ebp - 8]
add edx, 0x64
setb cl
neg ecx
or ecx, edx
push ecx
call fcn.10023122
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.HTTP_1.1_200_OK_r_nContent_Type:_text_html_r_nContent_Length:__d_r_n_r_n_s
mov edx, dword [ebp - 0x18]
push edx
call fcn.10007ba0
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x1001c606
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1001c644
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x14]
push eax
call fcn.10022dbc
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10022dbc
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x1001c660
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1005602c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.10020050
add esp, 0xc
push str.handleCallback__success_:true__
push 0x21
push str.HTTP_1.1_200_OK_r_nContent_Type:_application_javascript_r_nServer:_http_v1.0.1_r_nContent_Length:__d_r_n_r_n_s
lea ecx, [ebp - 0x204]
push ecx
call fcn.10007ba0
add esp, 0x10
lea edx, [ebp - 0x204]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x20c]
mov dl, byte [ecx]
mov byte [ebp - 0x205], dl
add dword [ebp - 0x20c], 1
cmp byte [ebp - 0x205], 0
jne 0x1001c6bf
mov eax, dword [ebp - 0x20c]
sub eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
push 0
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1001c718
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001deaa
mov esp, ebp
pop ebp
ret
Function at 0x1002ad1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001f1b0
mov eax, dword [0x1005602c]
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.10033549
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002ad5f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002aebb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10041300
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 + 0x10057ad0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10034cb1
mov ecx, dword [esi*4 + 0x10057ad0]
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 0x1002aeb4
cmp eax, dword [edi + ecx + 0x24]
jne 0x1002aeb4
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 0x1002aeb4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10034cb1
add esp, 0x14
test edx, edx
jl 0x1002aeb4
jg 0x1002ae2a
test eax, eax
jb 0x1002aeb4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002aeb4
jl 0x1002ae44
cmp dword [ebp - 0x1008], eax
ja 0x1002aeb4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002ae62
test ebx, ebx
je 0x1002ae9b
cmp ecx, edi
jae 0x1002ae9b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002ae7c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002ae88
cmp byte [ecx + 1], 0xa
jne 0x1002ae88
inc ecx
jmp 0x1002ae88
movzx eax, al
movsx eax, byte [eax + 0x100562b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002ae62
cmp edx, ebx
jne 0x1002ae62
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002aeb9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001deaa
leave
ret

Function at 0x10030a29
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10047b30
push 0x10047b28
push str.FlsAlloc
push 0x1e
call fcn.100308f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030a5d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100441e4]
call esi
jmp 0x10030a63
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10030aa7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10047b40
push 0x10047b38
push str.FlsGetValue
push 0x20
call fcn.100308f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030ade
push dword [ebp + 8]
mov ecx, esi
call dword [0x100441e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10034d2d
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 + 0x10057ad0]
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 0x10034d6d
cmp byte [ebx], 0xa
jne 0x10034d6d
or byte [eax + edi + 0x28], 4
jmp 0x10034d72
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10034e70
mov al, byte [edx]
cmp al, 0x1a
je 0x10034e52
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10034da1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10034dc6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10034dd0
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 0x10034d83
jmp 0x10034e70
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 0x10034e4d
cmp dword [ebp - 0xc], 0
je 0x10034e4d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10057ad0]
test byte [eax + edi + 0x28], 0x48
je 0x10034e27
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10034e12
mov byte [esi], dl
jmp 0x10034e23
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10057ad0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10034e70
cmp byte [ebp - 1], 0xa
jne 0x10034e36
cmp esi, ebx
jne 0x10034e36
mov byte [esi], 0xa
jmp 0x10034e6f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10034ccf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10034e70
mov byte [esi], 0xd
jmp 0x10034e6f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10057ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10034e6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10034e70
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10034e79
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 + 0x10057ad0]
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 0x10034ebc
cmp word [esi], dx
jne 0x10034ebc
or byte [edi + eax + 0x28], 4
jmp 0x10034ec1
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 0x10034ffa
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 0x10034fda
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10034f03
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10034f39
cmp eax, edx
jae 0x10034f45
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 0x10034edb
jmp 0x10034ffa
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 0x10034fd6
cmp dword [ebp - 0x14], 0
je 0x10034fd6
mov eax, dword [ebx*4 + 0x10057ad0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10034fae
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10034ff4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10057ad0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10057ad0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10057ad0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10034ff7
pop ebx
cmp word [ebp - 4], bx
jne 0x10034fbf
cmp esi, dword [ebp + 0xc]
jne 0x10034fbf
mov word [esi], bx
jmp 0x10034ff7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10034ccf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10034ffa
push 0xd
jmp 0x10034ff3
mov ecx, dword [ebx*4 + 0x10057ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10034ff1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10034ffa
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 0x10036001
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10035e72
Function at 0x10038c82
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10038d1f
push ebx
push esi
call fcn.10038c4b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10037a1f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10038ccc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10038d1e
push edi
push eax
call fcn.1002fbec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10038cec
call fcn.1002fbb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10038d1d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10037a1f
add esp, 0x20
test eax, eax
jne 0x10038d0b
push edi
call fcn.1002fbb2
jmp 0x10038d13
push ebx
call fcn.1002fbb2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret