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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10012059
pop dword [ebp - 0x1c]
mov eax, 0x263acfc0
sub eax, 0x1639af67
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x37570
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x88fc6b59
sub ecx, 0x88fc3083
xor esi, esi
add esi, eax
mov edx, 0xead106a4
add edx, 0x2533655c
add edx, dword [ebp - 0x1c]
mov ebx, 0xc5f49e7b
add ebx, 0x8e189e27
add dword [ebp - 0xc], eax
mov edi, dword [edx]
xor dword [ebp - 0x10], 0x652175de
xor edi, ebx
mov dword [ebp - 0x14], 0x27fccd90
mov dword [esi], edi
add dword [ebp - 8], esi
add esi, 0x572e397d
add esi, 0xa8d1c687
add edx, 0xe979b7c2
sub edx, 0xe979b7be
loop 0x100120b5
add eax, 0xc8d1655f
add eax, 0x372f78cc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1634418
sub ecx, 0xf1634418
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10020655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x100279c3
call fcn.1002568a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x10020876
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1001204a
add esp, 0x10
test eax, eax
js 0x10020870
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x100206f9
push edi
call fcn.1001a3b8
pop ecx
test al, al
je 0x100206f9
mov eax, edi
call fcn.10025830
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1002070b
push edi
lea ecx, [ebp - 0x424]
call fcn.1001204a
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.1001204a
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10020870
push 0x60
push ebx
push eax
call fcn.10021bf8
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x10020763
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.10021bf8
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x10020763
call fcn.10015691
mov ebx, eax
jmp 0x1002083f
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1002078a
call fcn.10015691
jmp 0x10020832
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10020780
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x100207bd
mov ebx, 0x8007000e
jmp 0x10020834
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001204a
jmp 0x100207e3
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x100207b6
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.1001204a
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.1001204a
mov ebx, eax
test edi, edi
je 0x1002083f
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10020858
lea ecx, [ebp - 0x418]
call fcn.1001fe4b
or dword [ebp - 4], 0xffffffff
jmp 0x10020868
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1002085e
mov eax, ebx
jmp 0x100208a4
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1002088b
lea ecx, [ebp - 0x418]
call fcn.1001fe4b
or dword [ebp - 4], 0xffffffff
jmp 0x1002089b
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x10020891
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.100255d7
ret 0x10
Function at 0x1d43264
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1d4326e
pushal
call 0x1d43274
pop ebp
sub ebp, 0x10
sub ebp, 0x1943264
jmp 0x1d4328a
mov eax, 0x1943264
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0xf8ae5b27
xor byte [eax], dl
inc eax
dec ecx
jne 0x1d432a1
jmp 0x1d432b4
lodsb al, byte [esi]
ljmp 0x2727

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x181c1312
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x654305b1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401aa0
Capabilities:
Parse pe header

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

Function at 0x406778
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0040641a
xor byte [ebx + 0x458de1a0], ch
call 0x5128c510
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040642a
push eax
push esi
push dword [ebp + 8]
call fcn.004063df
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040642a
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.004063df
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040642a
push eax
push esi
push dword [ebp + 8]
call fcn.004063df
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040641a
clc
cmp al, 0x4d
jae 0x406825
popfd
jl 0x40689f
invalid
invalid

Function at 0x4068b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0040641a
inc byte [0x858de056]
jl 0x406905
invalid
invalid
Function at 0x503b8c
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], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
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], 0x50408c
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 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x1001f640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x1c], 4
jne 0x1001f655
pop ebp
jmp fcn.1001f330
pop ebp
jmp fcn.1002a350
Function at 0x1002bdf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0x1c], ebx
cmp ebx, 4
jne 0x1002be1b
mov dword [esi + 0x20], 0
cmp byte [esi + 1], 0
jne 0x1002be37
lea eax, [esi + 0x68]
mov ecx, esi
push str.B_include_B_include_winapi
push eax
lea edx, [esi + 0x64]
call fcn.1002a8c0
add esp, 8
cmp byte [esi + 0x31], 0
je 0x1002be6c
push 3
push 1
mov edx, str..bounds
mov ecx, esi
call fcn.1001d9e0
push 3
push 1
mov edx, str..lbounds
mov dword [esi + 0x36c], eax
mov ecx, esi
call fcn.1001d9e0
add esp, 0x10
mov dword [esi + 0x370], eax
cmp byte [esi + 0x2f], 0
je 0x1002bf70
xor edi, edi
cmp byte [esi + 0x30], 0
je 0x1002be8a
cmp dword [esi + 0x1c], 1
mov eax, 3
cmovne edi, eax
push edi
push 1
mov edx, str..stab
mov ecx, esi
call fcn.1001d9e0
mov dword [esi + 0x378], eax
mov edx, str..stabstr
push edi
push 3
mov dword [eax + 0x28], 0xc
mov ecx, esi
mov eax, dword [esi + 0x378]
mov dword [eax + 0x24], 4
call fcn.1001d9e0
mov ecx, dword [esi + 0x378]
add esp, 0x10
mov dword [ecx + 0x3c], eax
mov edi, dword [esi + 0x378]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi]
mov dword [ebp - 0x3f0], ecx
lea ebx, [ecx + 0xc]
je 0x1002bef9
cmp ebx, dword [edi + 8]
jbe 0x1002bef9
mov edx, ebx
mov ecx, edi
call fcn.1001dc80
mov ecx, dword [ebp - 0x3f0]
cmp dword [edi + 0x24], 1
mov dword [edi], ebx
jge 0x1002bf08
mov dword [edi + 0x24], 1
mov eax, dword [esi + 0x378]
mov ebx, dword [edi + 4]
add ebx, ecx
mov edi, dword [eax + 0x3c]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi]
mov dword [ebp - 0x3f4], ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x3f0], eax
je 0x1002bf47
cmp eax, dword [edi + 8]
jbe 0x1002bf47
mov edx, eax
mov ecx, edi
call fcn.1001dc80
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x3f4]
cmp dword [edi + 0x24], 1
mov dword [edi], eax
jge 0x1002bf56
mov dword [edi + 0x24], 1
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0
mov dword [ebx], ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ebx, dword [ebp + 0xc]
lea edi, [esi + 0x70]
mov ecx, esi
push str.B_lib
lea edx, [esi + 0x6c]
push edi
call fcn.1002a8c0
add esp, 8
cmp byte [esi + 2], 0
jne 0x1002bfd8
cmp ebx, 4
je 0x1002bfd8
push 0x3e8
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [ebp - 0x3ec]
lea eax, [ebp - 0x3ec]
test cl, cl
je 0x1002bfc3
cmp cl, 0x5c
jne 0x1002bfbb
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002bfb3
lea eax, [ebp - 0x3ec]
mov ecx, esi
push eax
push edi
lea edx, [esi + 0x6c]
call fcn.1002a8c0
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e6c8
mov esp, ebp
pop ebp
ret
Function at 0x10031dc8
Capabilities:
Parse pe header

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

Function at 0x1003e54a
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 + 0x1005d1b0]
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 0x1003e58a
cmp byte [ebx], 0xa
jne 0x1003e58a
or byte [edi + eax + 0x28], 4
jmp 0x1003e58f
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 0x1003e68e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003e671
inc eax
cmp dl, 0xd
je 0x1003e5bb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003e5e1
cmp eax, ecx
jae 0x1003e5ef
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 0x1003e5a3
jmp 0x1003e68e
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 0x1003e66c
cmp dword [ebp - 0x10], 0
je 0x1003e66c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1005d1b0]
test byte [eax + edi + 0x28], 0x48
je 0x1003e646
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003e631
mov byte [esi], dl
jmp 0x1003e642
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005d1b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003e68e
cmp byte [ebp - 1], 0xa
jne 0x1003e655
cmp esi, ebx
jne 0x1003e655
mov byte [esi], 0xa
jmp 0x1003e68d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003fd2c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003e68e
mov byte [esi], 0xd
jmp 0x1003e68d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1005d1b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003e68b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003e68e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003e697
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 + 0x1005d1b0]
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 0x1003e6dd
cmp word [ebx], dx
jne 0x1003e6dd
or byte [eax + edi + 0x28], 4
jmp 0x1003e6e2
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 0x1003e845
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 0x1003e825
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003e723
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003e759
cmp eax, edx
jae 0x1003e767
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 0x1003e6fe
jmp 0x1003e845
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 0x1003e820
cmp dword [ebp - 0x18], 0
je 0x1003e820
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005d1b0]
test byte [eax + edi + 0x28], 0x48
je 0x1003e7f6
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 0x1003e7ba
mov word [esi], cx
jmp 0x1003e7f1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005d1b0]
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 + 0x1005d1b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005d1b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003e845
pop eax
cmp word [ebp - 4], ax
jne 0x1003e806
cmp esi, ebx
jne 0x1003e806
mov word [esi], ax
jmp 0x1003e842
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003fd2c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003e845
push 0xd
pop eax
jmp 0x1003e801
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005d1b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003e83f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003e845
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003f849
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1003f88c
call fcn.10039dc1
mov dword [eax], 0xf
call fcn.10039dd4
mov dword [eax], 0xd
call fcn.100403b2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e6c8
leave
ret
test eax, eax
jne 0x1003f893
inc eax
jmp 0x1003f880
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1003f87e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1003f880

Function at 0x1004145b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050728
push 0x10050720
push str.FlsAlloc
push 0x1f
call fcn.1004131a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004148f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004e148]
call esi
jmp 0x10041495
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100414d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050738
push 0x10050730
push str.FlsGetValue
push 0x21
call fcn.1004131a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10041510
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10041518
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050740
push 0x10050738
push str.FlsSetValue
push 0x22
call fcn.1004131a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10041552
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]