joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e33
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001198
call fcn.01001fd0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001e6e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e6e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001e86
cmp eax, 0x20b
je 0x1001e73
mov dword [ebp - 0x1c], edi
jmp 0x1001e9a
cmp dword [ecx + 0x84], 0xe
jbe 0x1001e6e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001e94
cmp dword [ecx + 0x74], 0xe
jbe 0x1001e6e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003014], 0xffffffff
or dword [0x1003018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100300c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100301c], eax
call fcn.01001fcc
cmp dword [section..data], edi
jne 0x1001ef5
push fcn.01001fcc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001fba
push 0x1001134
push 0x1001130
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100112c
push 0x1001128
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001783
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001f6c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001fa1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002009
ret

Function at 0x4a1aec
Capabilities:
Encode data using xor

Disassembly:
pushal
lea esp, [esp + 0x20]
cmc
add edi, eax
test ch, 0x1e
mov edi, dword [edi + ecx*4]
test ch, 0x8b
cmc
test edi, edi
pushfd
mov byte [esp + 4], dl
lea esp, [esp + 0x2c]
ja 0x49e634
je 0x4f15dc
stc
push 0xc3cb7abf
cmp ch, bl
mov byte [esp], dl
add eax, edi
cmp dl, bh
cmp eax, edx
jmp 0x4f24af
lea esp, [esp + 4]

Function at 0x4a602d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
ror al, 1
or al, dl
rcl al, cl
not esi
rol al, 1
clc
sbb al, 0xab
clc
add esi, edi
not al
rep movsb byte es:[edi], byte [esi]
movzx cx, bl
movzx si, al
mov byte [esp + 4], 8
mov esi, dword [esp + 8]
push ebp
movzx ecx, bl
lea ecx, [ecx + 0x2e3b39ae]
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0xc]
not al
not al
mov al, byte [edi - 1]
pushfd
pushfd
pushfd
jmp 0x4a6470
mov byte [ebp - 2], al
pushal
pushfd
pushfd
mov byte [esp + 8], ch
lea esp, [esp + 0x48]
jmp 0x4f3621
Function at 0x47930f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4abd08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00476876
and dword [ebp - 0x14], 0
cmp dword [0x4af040], 0
mov dword [ebp - 0x18], eax
jne 0x4793c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47946a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47946a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4af040], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4af044], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4af048], eax
call edi
push eax
call esi
mov dword [0x4af050], eax
test eax, eax
je 0x4793c2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4af04c], eax
mov eax, dword [0x4af04c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47941b
cmp dword [0x4af050], ecx
je 0x47941b
push eax
call esi
push dword [0x4af050]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47941b
test ebx, ebx
je 0x47941b
call edi
test eax, eax
je 0x479412
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x479412
test byte [ebp - 8], 1
jne 0x47941b
or dword [ebp + 0x10], 0x200000
jmp 0x47944e
mov eax, dword [0x4af044]
cmp eax, dword [ebp - 0x18]
je 0x47944e
push eax
call esi
test eax, eax
je 0x47944e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47944e
mov eax, dword [0x4af048]
cmp eax, dword [ebp - 0x18]
je 0x47944e
push eax
call esi
test eax, eax
je 0x47944e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af040]
call esi
test eax, eax
je 0x47946a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47946c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c641
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100099fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013350
push 0x100084e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.10009984]
test eax, eax
je 0x10009a45
mov dword [ebp - 4], 1
call eax
jmp 0x10009a41
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x10009a4e
jmp fcn.10009984

Function at 0x1000cd0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ah, 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000ca81
or edi, dword [ebx - 0x79]
lea eax, ds:[ebp - 0x58]
push eax
call fcn.1000ca91
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1000ca46
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1000cd6f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000ca81
hlt
Function at 0x1000ce40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg esp, eax
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.1000ca91
push eax
push esi
push dword [ebp + 8]
call fcn.1000ca46
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.1000ca91
push eax
push esi
push dword [ebp + 8]
call fcn.1000ca46
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000ca81
test dword [esi], esp
mov ah, 0xc3
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
invalid
popfd
invalid
Function at 0x1000d9b1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1000ca91
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000ca46
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1000ca81
dec ebp
cmp dword es:[esi + 0x68], 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.1000ca81
pop ecx
cdq
sal byte [edx + 0xe06580], cl
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.1000ca91
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000ca46
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x1000db2d
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x1000db4d
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
invalid
movsd dword es:[edi], dword [esi]
invalid
Function at 0x401080
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x422b24
push 0x34
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x422b34
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x422b44
push 0x34
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x422b50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x422b68
push 0x34
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x422b74
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x422b90
push 0x34
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x422b9c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401539
mov esp, ebp
pop ebp
ret
Function at 0x401d32
Capabilities:
Parse pe header

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

Function at 0x404822
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041bea0
mov eax, dword [section..data]
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.0040d5cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x404864
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4049c0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041bdf0
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 + 0x425ec0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040d7da
mov ecx, dword [esi*4 + 0x425ec0]
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 0x4049b9
cmp eax, dword [ecx + edi + 0x24]
jne 0x4049b9
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 0x4049b9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040d7da
add esp, 0x14
test edx, edx
jl 0x4049b9
jg 0x40492f
test eax, eax
jb 0x4049b9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4049b9
jl 0x404949
cmp dword [ebp - 0x1008], eax
ja 0x4049b9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x404967
test ebx, ebx
je 0x4049a0
cmp ecx, edi
jae 0x4049a0
mov al, byte [ecx]
cmp al, 0xd
jne 0x404981
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40498d
cmp byte [ecx + 1], 0xa
jne 0x40498d
inc ecx
jmp 0x40498d
movzx eax, al
movsx eax, byte [eax + 0x425200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x404967
cmp edx, ebx
jne 0x404967
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4049be
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401539
leave
ret
Function at 0x40de7f
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 + 0x425ec0]
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 0x40debf
cmp byte [ebx], 0xa
jne 0x40debf
or byte [edi + eax + 0x28], 4
jmp 0x40dec4
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 0x40dfc3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40dfa6
inc eax
cmp dl, 0xd
je 0x40def0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40df16
cmp eax, ecx
jae 0x40df24
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 0x40ded8
jmp 0x40dfc3
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 0x40dfa1
cmp dword [ebp - 0x10], 0
je 0x40dfa1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x425ec0]
test byte [eax + edi + 0x28], 0x48
je 0x40df7b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40df66
mov byte [esi], dl
jmp 0x40df77
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x425ec0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40dfc3
cmp byte [ebp - 1], 0xa
jne 0x40df8a
cmp esi, ebx
jne 0x40df8a
mov byte [esi], 0xa
jmp 0x40dfc2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040d7f8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40dfc3
mov byte [esi], 0xd
jmp 0x40dfc2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x425ec0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40dfc0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40dfc3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40dfcc
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 + 0x425ec0]
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 0x40e012
cmp word [ebx], dx
jne 0x40e012
or byte [eax + edi + 0x28], 4
jmp 0x40e017
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 0x40e17a
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 0x40e15a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40e058
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40e08e
cmp eax, edx
jae 0x40e09c
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 0x40e033
jmp 0x40e17a
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 0x40e155
cmp dword [ebp - 0x18], 0
je 0x40e155
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x425ec0]
test byte [eax + edi + 0x28], 0x48
je 0x40e12b
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 0x40e0ef
mov word [esi], cx
jmp 0x40e126
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x425ec0]
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 + 0x425ec0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x425ec0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40e17a
pop eax
cmp word [ebp - 4], ax
jne 0x40e13b
cmp esi, ebx
jne 0x40e13b
mov word [esi], ax
jmp 0x40e177
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040d7f8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40e17a
push 0xd
pop eax
jmp 0x40e136
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x425ec0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40e174
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40e17a
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 0x40edac
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f6c0
push 0x41f6b8
push str.FlsAlloc
push 0x1f
call fcn.0040ec6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ede0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x40ede6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ee2a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f6d0
push 0x41f6c8
push str.FlsGetValue
push 0x21
call fcn.0040ec6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ee61
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ee69
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f6d8
push 0x41f6d0
push str.FlsSetValue
push 0x22
call fcn.0040ec6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eea3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4130c7
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 0x413164
push ebx
push esi
call fcn.00413090
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.00413024
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413111
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413163
push edi
push eax
call fcn.0040f6d3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413131
call fcn.0040eafe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413162
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413024
add esp, 0x20
test eax, eax
jne 0x413150
push edi
call fcn.0040eafe
jmp 0x413158
push ebx
call fcn.0040eafe
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