joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1eca
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x555120]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4e1f7d
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004e1d86
test eax, eax
pop ecx
pop ecx
je 0x4e1f7d
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004d821a
push dword [ebp + 8]
call dword [0x55511c]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4e1f7d
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4e1f7d
lea eax, [esi + 0x10]
push eax
push 0x4e1dfa
call fcn.004e95cc
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4e1f97
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004e1e78
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4e1f9a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e5afc
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4e5b30
cmp ebx, esi
jne 0x4e5b30
mov eax, dword [ebp + 0x7c]
call fcn.004e5add
jmp 0x4e5ccd
cmp dword [ebp + 0x7c], edx
jle 0x4e5b45
mov edi, dword [ebp + 0x7c]
call fcn.004e70c4
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4e5b75
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4e5bcc
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4e5ba8
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4e5ba8
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4e5b96
cmp eax, dword [ebp - 0xa8]
jne 0x4e5bc6
cmp dword [ebp - 0xa8], 0x40
jae 0x4e5bc6
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4e5bcc
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4e5bd5
xor ebx, ebx
jmp 0x4e5bd8
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4e5bf7
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4e5bfc
jne 0x4e5bff
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4e5c58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4e5c32
cmp eax, 0x2714
jne 0x4e5c5c
cmp dword [ebp + 0x7c], 0
jle 0x4e5bdb
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004e70c4
push edx
push eax
call fcn.004e70da
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4e5bdb
jmp 0x4e5c5c
test eax, eax
jge 0x4e5c61
or eax, 0xffffffff
jmp 0x4e5ccd
jne 0x4e5c67
xor eax, eax
jmp 0x4e5ccd
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4e5c99
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e5c83
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e5c99
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4e5ccb
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e5cb5
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e5ccb
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4e7c1d
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4e7c2a
jmp dword [eax*4 + 0x4e7c85]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4e95cc
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4e95ee
cmp eax, 0xffffffff
jne 0x4e95f0
xor eax, eax
ret

Function at 0x4e9980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4e99a4
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4e99d7
cmp dword [esi + 8], 0
jne 0x4e99c6
push 0x519118
push dword [eax + 8]
call dword [sym.imp.MSVCR80.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4e99c6
or eax, 0xffffffff
jmp 0x4e99fe
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4e99e5
cmp edi, dword [ebp + 0xc]
jbe 0x4e99fc
test ebx, ebx
jne 0x4e99f6
push dword [esi + 8]
call dword [sym.imp.MSVCR80.dll_fclose]
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401873
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x402140
call fcn.00401b5c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4018b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018b3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4018cb
cmp eax, 0x20b
je 0x4018b8
mov dword [ebp - 0x1c], ebx
jmp 0x4018df
cmp dword [ecx + 0x84], 0xe
jbe 0x4018b3
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4018d9
cmp dword [ecx + 0x74], 0xe
jbe 0x4018b3
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x403474], 0xffffffff
or dword [0x403478], 0xffffffff
or eax, 0x403474
inc dword [ebx + 0x4034780d]
add bh, bh
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403134]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403130]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403470], eax
call fcn.00495000
call fcn.00401b56
cmp dword [0x403014], ebx
jne 0x40193f
push fcn.00401b56
mov dh, 0xd0
cmp esi, 0x28
jb 0x4018ec
add byte [edi], cl
and byte [esi + 0x5affffff], 0x3c
jecxz 0x4019b3
pop edx
cmp al, 0xe3
imul esi, edx, 0x66e9307d
test eax, 0x8bb0e1f
imul esi, ecx
movsx ebp, dl
test ecx, edi
lea ecx, [0x6e5e7da1]
dec esi
jmp 0x40196c
bnd jge 0x40197d
jmp 0x200110b8
mov esi, edi
add edi, ecx
lea eax, [0xe8d13469]
mov bh, 0x80
inc edi
or eax, 0xdebf84bb
imul ecx, ecx
fimul word [edi]
scasd eax, dword es:[edi]
leave
dec ch
ja 0x40198b
imul ebx, esi, 0xbc504b05
xchg bh, bh
test esi, 0x11b9d39a
jne 0x40199d
xor al, 0x21
movzx ebx, dl
and ch, 0xda
xor bh, bl
ja 0x4019a9
lea edi, [0x35bcf28f]
inc edi
ja 0x4019ac
inc ebp
mov esi, 0x9eac
adc ah, dh
sub ecx, edi
test edi, ebp
xor esi, 0xf348
js 0x4019c7
sub ebx, 0x6e27537a
test eax, ebx
xor esi, 0x335f
add edx, esi
test edi, edi
add edx, 0xeb2
adc ecx, ebp
sub ch, 0x7b
imul ecx, eax
lea eax, [0xec30e8ce]
sbb bh, al
mov esi, eax
imul ecx, edi
mov eax, edi
push edx
test bl, 0xf7
ret
Function at 0x100040f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
mov ecx, 9
mov esi, 0x100c4f6c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x6c], 0x10003de0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x1e0
push 0x280
push 0x80000000
push 0x80000000
push 0x10cf0000
push 0x100c4f94
lea edx, [ebp - 0x48]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000419b
push 0x30
push 0x100c4fb4
push 0x100c4fe8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x100041f3
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x100041e8
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x100041be
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10018060
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062c6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.10018e00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.100190c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10003a70
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x35], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x36
call fcn.10003a70
mov ecx, dword [ebp - 0x10]
add ecx, 0x37
call fcn.10018fe0
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x18]
call fcn.10018e50
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.1001b260
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10019630
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1001b730
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1001a710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062dad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.1001d200
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.1001d280
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1001c8b0
mov dword [ebp - 0x20], 0x1001d2c0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10001970
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.1004f325
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1001a79c
lea ecx, [ebp - 0x14]
call fcn.10018680
jmp 0x1001a7ad
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.10048e0c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1001c8b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005226f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100522ae
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100522ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100522ae
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100522ae
cmp dword [ecx + 0x74], 0xe
jbe 0x100522ae
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10056e90
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c12e4
push 0x100c12dc
push 0x100bfacc
push 0x1f
call fcn.10056d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056ec4
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bdd04]
call esi
jmp 0x10056eca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10056f0e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c12f4
push 0x100c12ec
push 0x100bfaf0
push 0x21
call fcn.10056d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056f45
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bdd04]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10056f4d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c12fc
push 0x100c12f4
push 0x100bfb04
push 0x22
call fcn.10056d18
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056f87
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100bdd04]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10057db7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004ae70
mov eax, dword [0x100650c0]
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.10053502
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10057df9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10057f55
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10062340
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 + 0x100ba770]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10058b5c
mov ecx, dword [esi*4 + 0x100ba770]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10057f4e
cmp eax, dword [ecx + edi + 0x24]
jne 0x10057f4e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10057f4e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058b5c
add esp, 0x14
test edx, edx
jl 0x10057f4e
jg 0x10057ec4
test eax, eax
jb 0x10057f4e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10057f4e
jl 0x10057ede
cmp dword [ebp - 0x1008], eax
ja 0x10057f4e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10057efc
test ebx, ebx
je 0x10057f35
cmp ecx, edi
jae 0x10057f35
mov al, byte [ecx]
cmp al, 0xd
jne 0x10057f16
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10057f22
cmp byte [ecx + 1], 0xa
jne 0x10057f22
inc ecx
jmp 0x10057f22
movzx eax, al
movsx eax, byte [eax + 0x10065378]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10057efc
cmp edx, ebx
jne 0x10057efc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10057f53
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004a67b
leave
ret
Function at 0x10057ff4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100ba770]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10058034
cmp byte [ebx], 0xa
jne 0x10058034
or byte [edi + eax + 0x28], 4
jmp 0x10058039
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10058138
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005811b
inc eax
cmp dl, 0xd
je 0x10058065
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005808b
cmp eax, ecx
jae 0x10058099
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005804d
jmp 0x10058138
push 0
lea eax, [ebp - 0x10]
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 0x10058116
cmp dword [ebp - 0x10], 0
je 0x10058116
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ba770]
test byte [eax + edi + 0x28], 0x48
je 0x100580f0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100580db
mov byte [esi], dl
jmp 0x100580ec
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ba770]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10058138
cmp byte [ebp - 1], 0xa
jne 0x100580ff
cmp esi, ebx
jne 0x100580ff
mov byte [esi], 0xa
jmp 0x10058137
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10058b7a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10058138
mov byte [esi], 0xd
jmp 0x10058137
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ba770]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10058135
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10058138
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10058141
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100ba770]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10058187
cmp word [ebx], dx
jne 0x10058187
or byte [eax + edi + 0x28], 4
jmp 0x1005818c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100582ef
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100582cf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100581cd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10058203
cmp eax, edx
jae 0x10058211
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100581a8
jmp 0x100582ef
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100582ca
cmp dword [ebp - 0x18], 0
je 0x100582ca
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100ba770]
test byte [eax + edi + 0x28], 0x48
je 0x100582a0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10058264
mov word [esi], cx
jmp 0x1005829b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100ba770]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100ba770]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ba770]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100582ef
pop eax
cmp word [ebp - 4], ax
jne 0x100582b0
cmp esi, ebx
jne 0x100582b0
mov word [esi], ax
jmp 0x100582ec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10058b7a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100582ef
push 0xd
pop eax
jmp 0x100582ab
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100ba770]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100582e9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100582ef
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret