joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b03a8
Capabilities:
Enumerate files on windows

Disassembly:
push 0xafc
mov eax, 0x1010f911
call fcn.10062882
mov ebx, edx
mov dword [ebp - 0xb04], ebx
mov esi, ecx
mov dword [ebp - 0xb08], esi
mov ecx, ebx
call fcn.100b02fd
test al, al
je 0x100b058d
mov ecx, esi
call fcn.10075cd8
xor esi, esi
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], ax
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
call fcn.1004a302
xor eax, eax
mov dword [ebp - 0x18], esi
mov edi, 0x1002e210
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.1004a302
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.100ab0c6
mov bl, al
mov byte [ebp - 4], 3
neg bl
lea ecx, [ebp - 0x28]
sbb bl, bl
call fcn.1006ab66
add bl, 1
je 0x100b044c
push edi
lea ecx, [ebp - 0x40]
call fcn.1004a302
cmp dword [0x1013b3d0], 8
mov eax, 0x1013b3bc
jb 0x100b045f
mov eax, dword [0x1013b3bc]
push dword [0x1013b3cc]
lea ecx, [ebp - 0x40]
push eax
call fcn.1004a302
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x100b047a
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100b04c7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 3
je 0x100b057d
cmp eax, 2
je 0x100b057d
push 0x100332b8
lea ecx, [ebp - 0x70]
call fcn.1004a302
push ecx
push ecx
push esi
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
push 0x11
jmp 0x100b05c6
push dword [ebp - 0xb04]
lea ecx, [ebp - 0x28]
call fcn.1004a302
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x48], esi
push 0x1002e210
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1004a302
push ecx
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.100ab0c6
mov bl, al
mov byte [ebp - 4], 6
neg bl
lea ecx, [ebp - 0x58]
sbb bl, bl
call fcn.1006ab66
add bl, 1
je 0x100b052a
push 0x1002e210
lea ecx, [ebp - 0x28]
call fcn.1004a302
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x28]
call fcn.1004a302
lea ecx, [ebp - 0x28]
call fcn.1004a302
test al, al
je 0x100b0554
mov ecx, dword [ebp - 0xb08]
lea eax, [ebp - 0x28]
push eax
call fcn.1004a302
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1006ab66
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x100b04c7
push edi
call dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [ebp - 0x40]
call fcn.1006ab66
call fcn.1006281a
ret 4
push 0x10033300
lea ecx, [ebp - 0x88]
call fcn.1004a302
xor esi, esi
lea ecx, [ebp - 0x70]
push ebx
mov edx, eax
mov dword [ebp - 4], esi
call fcn.1004a302
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.1006a8f0
push ecx
push ecx
push esi
push esi
lea eax, [ebp - 0x70]
push eax
push 0x32
lea ecx, [ebp - 0xb00]
call fcn.1004a302
push 0x1011c248
lea eax, [ebp - 0xb00]
push eax
call fcn.1004a302
int3
Function at 0x100b099c
Capabilities:
Read file via mapping

Disassembly:
push 0x864
mov eax, 0x1010fa7b
call fcn.10062882
mov esi, ecx
mov dword [ebp - 0x86c], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x870], esi
mov dword [esi], 0x10005124
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov eax, edi
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x14], 0xffffffff
mov dword [esi], 0x1000520c
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
cmp dword [edi + 0x14], 8
jb 0x100b09e8
mov eax, dword [edi]
push eax
push ebx
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x100b0a4a
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x100b0a40
push 0x10033418
lea ecx, [ebp - 0x40]
call fcn.1004a302
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.1004a302
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.1006a8f0
push ecx
push ecx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x15
jmp 0x100b0a7c
mov eax, esi
call fcn.1006281a
ret 8
push 0x10033540
lea ecx, [ebp - 0x28]
call fcn.1004a302
push edi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1004a302
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1006a8f0
push ecx
push ecx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push 0x16
lea ecx, [ebp - 0x868]
call fcn.1004a302
push 0x1011c248
lea eax, [ebp - 0x868]
push eax
call fcn.1004a302
int3
Function at 0x100be18a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebx
push esi
lea ebx, [ecx + 4]
mov esi, edx
push edi
test ebx, ebx
je 0x100be1c2
lea edi, [esi + 4]
test edi, edi
je 0x100be1c2
call fcn.100be39d
test al, al
je 0x100be1c2
mov ecx, esi
call fcn.100be39d
test al, al
je 0x100be1c2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x100be1c4
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x100bf31b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x464
mov eax, 0x10111e76
call fcn.10062882
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x444], eax
xor eax, eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 4], ebx
mov edi, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100bf43d
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.1004a302
mov dword [ebp - 0x440], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
jb 0x100bf3b3
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp - 0x444]
push eax
call fcn.1004a302
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
jb 0x100bf3e5
mov eax, dword [ebp - 0x438]
push ebx
push eax
push dword [esi]
lea ecx, [ebp - 0x43c]
call fcn.1004a302
test al, al
je 0x100bf466
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x43c]
call fcn.100bf31b
cmp dword [ebp - 0x43c], 0
je 0x100bf41f
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x440], 0
je 0x100bf437
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x100bf355
mov edi, dword [ebp - 0x444]
jmp 0x100bf446
inc ebx
push edi
push ebx
mov ecx, esi
call fcn.100bf489
test al, al
jne 0x100bf445
lea ecx, [ebp - 0x438]
call fcn.1006ab66
call fcn.1006281a
ret 4
lea ecx, [ebp - 0x470]
call fcn.1004a302
push 0x1011bfb8
lea eax, [ebp - 0x470]
push eax
call fcn.1004a302
int3
Function at 0x100da334
Capabilities:
Resume thread

Disassembly:
push 0x9c
mov eax, 0x10115884
call fcn.10062882
mov edi, ecx
mov dword [ebp - 0x98], edi
xor ebx, ebx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push ebx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x100da50d
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
mov edi, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, dword [ebp - 0x98]
call esi
mov edx, edi
mov ecx, eax
call fcn.1004a302
mov edi, dword [ebp - 0x98]
cmp eax, 3
sete byte [ebp - 0x9c]
push dword [ebp - 0x9c]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
lea ecx, [ebp - 0x28]
mov edx, dword [eax + 8]
call fcn.100758a6
mov dword [ebp - 0xa8], eax
mov eax, ebx
mov dword [ebp - 0xa4], edx
and edx, 0x80
or eax, edx
jne 0x100da4d8
push 0x1003b424
lea ecx, [ebp - 0x74]
call fcn.1004a302
mov dword [ebp - 0x5c], 0x2e6
mov byte [ebp - 4], 1
call fcn.1006c112
xor eax, eax
mov dword [ebp - 0x48], ebx
push 0x1003b398
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1004a302
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.1004a302
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.100810bd
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.100cf175
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x1001df4c
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.1004a302
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
push 1
lea ecx, [ebp - 0x74]
call fcn.10080cf0
lea ecx, [ebp - 0x40]
call fcn.1006ab66
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x94], 0x10002e5c
call fcn.1006ab66
lea ecx, [ebp - 0x58]
call fcn.1006ab66
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.1006b464
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
test al, al
jne 0x100da507
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013e49c]
mov ecx, edi
call esi
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ebx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x28]
call fcn.1006ab66
mov eax, ebx
call fcn.1006281a
ret
Function at 0x100daa92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x1010b266
call fcn.10062882
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100dab15
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100daafd
cmp eax, dword [esi + 0x10]
jne 0x100daac9
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1008073a
test al, al
jne 0x100daafd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x100daad5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100daafd
cmp eax, 0x10
je 0x100daafd
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1004a302
lea ecx, [ebp - 0x28]
call fcn.1006ab66
mov al, 1
jmp 0x100dab07
lea ecx, [ebp - 0x28]
call fcn.1006ab66
xor al, al
call fcn.1006281a
ret 4
Function at 0x100e06b0
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x38
mov eax, 0x10116468
call fcn.10062882
mov edi, ecx
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov esi, ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x10005b80
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.1007f0f7
test al, al
jne 0x100e0721
call fcn.1004a302
lea ecx, [ebp - 0x34]
cmp eax, 0x602
jb 0x100e0708
mov byte [ebp - 0x2c], 1
call fcn.1004a302
jmp 0x100e0710
mov byte [ebp - 0x2c], bl
call fcn.100df60e
test al, al
jne 0x100e071b
mov edi, ebx
jmp 0x100e0891
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
push ecx
push ecx
push esi
push dword [ebp - 0x2c]
mov ecx, edi
sub esp, 0xc
call fcn.1004a302
mov edi, edx
mov ecx, ebx
mov esi, edi
and esi, 0x80
or ecx, esi
jne 0x100e0748
mov ebx, eax
jmp 0x100e0891
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x100e0753
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x100e075e
mov ecx, dword [ecx]
push dword [ebp - 0x38]
push ecx
push ecx
push eax
call fcn.1004a302
mov esi, eax
test esi, esi
je 0x100e0787
call fcn.100df953
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0xf25
jmp 0x100e0891
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004a302
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.1004a302
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
jne 0x100e07d0
mov ebx, esi
jmp 0x100e0891
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004a302
push 9
lea eax, [ebp - 0x28]
push eax
call fcn.1004a302
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e07c9
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004a302
push 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.1004a302
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006ab66
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e07c9
mov eax, dword [ebp - 0x44]
push 1
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
je 0x100e088c
test esi, esi
je 0x100e088c
call fcn.100df953
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0x2225
jmp 0x100e0891
mov edi, 0x80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10005b80
call fcn.1004a302
mov eax, ebx
mov edx, edi
call fcn.1006281a
ret 0x24
Function at 0x100e2a0a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2a2e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2a33
mov ebx, 0xfff80000
jmp 0x100e2a39
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013cddc]
mov eax, dword [0x1013cde4]
test edx, edx
jne 0x100e2a54
test eax, eax
je 0x100e2a67
mov edx, eax
mov dword [0x1013cddc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2a67
cmp ecx, edi
jb 0x100e2a67
cmp ecx, ebx
jbe 0x100e2aeb
mov edx, eax
test eax, eax
jmp 0x100e2a85
test edx, edx
je 0x100e2a80
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2a80
cmp eax, edi
jb 0x100e2a80
cmp eax, ebx
jbe 0x100e2aeb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013cddc], edx
jne 0x100e2a6d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1004a302
mov edx, eax
test edx, edx
jne 0x100e2ab1
mov edx, ebx
mov ecx, esi
call fcn.1004a302
mov edx, eax
test edx, edx
je 0x100e2b10
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013cde4]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013cddc], edx
mov dword [0x1013cde4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2adb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2b10
cmp esi, ebx
ja 0x100e2b10
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10063540
add esp, 0xc
mov eax, esi
jmp 0x100e2b12
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100e2a0d
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2a2e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2a33
mov ebx, 0xfff80000
jmp 0x100e2a39
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013cddc]
mov eax, dword [0x1013cde4]
test edx, edx
jne 0x100e2a54
test eax, eax
je 0x100e2a67
mov edx, eax
mov dword [0x1013cddc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2a67
cmp ecx, edi
jb 0x100e2a67
cmp ecx, ebx
jbe 0x100e2aeb
mov edx, eax
test eax, eax
jmp 0x100e2a85
test edx, edx
je 0x100e2a80
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2a80
cmp eax, edi
jb 0x100e2a80
cmp eax, ebx
jbe 0x100e2aeb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013cddc], edx
jne 0x100e2a6d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1004a302
mov edx, eax
test edx, edx
jne 0x100e2ab1
mov edx, ebx
mov ecx, esi
call fcn.1004a302
mov edx, eax
test edx, edx
je 0x100e2b10
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013cde4]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013cddc], edx
mov dword [0x1013cde4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2adb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2b10
cmp esi, ebx
ja 0x100e2b10
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10063540
add esp, 0xc
mov eax, esi
jmp 0x100e2b12
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e2da4
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10128a80
call fcn.10061f30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100e2e1a
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100e2e1a
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100e2e1a
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100e2e1a
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100e2e23
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e367a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1013cde8]
push esi
mov esi, ecx
test eax, eax
jne 0x100e36dc
call dword [sym.imp.kernel32.dll_GetCurrentThread]
cmp esi, eax
jne 0x100e368f
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.1004a302
pop ecx
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100e36c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.1004a302
and dword [0x1013cdd8], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x1013cde8], esi
jmp 0x100e36db
mov eax, dword [0x1013cdd0]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1013cdd0], edi
pop edi
pop esi
ret
Function at 0x1001a8f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001a905
pop dword [ebp - 0x34]
mov eax, 0x76540fab
add eax, 0x99ad995a
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x41b8d
push 0
mov eax, 0x77f36950
add eax, 0x980ff78c
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x75d96d7b
sub ecx, 0x75d920db
mov edi, eax
mov edx, 0x1003be00
add edx, dword [ebp - 0x34]
mov esi, 0xd71e4d30
add esi, 0xf98fc3c3
xor dword [ebp - 0x2c], 0x2e3dd486
mov ebx, dword [edx]
xor dword [ebp - 4], 0xa4239836
add ebx, esi
add dword [ebp - 8], 0xbd1e7a65
mov dword [edi], ebx
add dword [ebp - 0x24], edi
add edi, 0x5ef375b2
add edi, 0xa10c8a52
add edx, 0x4db77d1b
add edx, 0xb24882e9
loop 0x1001a95e
add eax, 0x12553
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001a8f6
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001a8f6
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x405609
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188d8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x40564d
call ebx
test eax, eax
jns 0x405643
push 0x401618
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40160c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188d4], eax
mov dword [0x4188d8], 1
mov eax, dword [0x4188d4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x405669
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x405699
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40568f
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x405683
push dword [eax + 8]
call dword [eax]
jmp 0x405689
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x405698
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x405b86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405bb2
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405bb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x405bb4
xor eax, eax
ret 8

Function at 0x40922c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418a00], 1
push ebx
push esi
push edi
jne 0x40924f
or dword [0x418a00], 1
call fcn.004091d8
mov dword [0x4189fc], eax
push 4
pop eax
call fcn.004144d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4092e4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x4092e4
cmp eax, 1
je 0x409305
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4092e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4092b1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4092e0
xor eax, eax
inc eax
jmp 0x409324
cmp edi, eax
jae 0x4092e8
xor eax, eax
jmp 0x409324
cmp eax, esi
jae 0x4092ef
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x409308
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret