joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5069bd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x563910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ebd0e
mov dword [ebp - 0x14], eax
cmp dword [0x56daf4], esi
jne 0x506ab0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x506a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x506b90
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x506b90
push 0x53dd84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x506b90
push eax
call ebx
push 0x53dd90
push edi
mov dword [0x56daf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x56daf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x56dafc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56db04], eax
test eax, eax
je 0x506aad
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56db00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x506ad5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x506ac8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x506aea
push 4
pop eax
jmp 0x506b92
cmp dword [ebp - 0x14], esi
je 0x506aea
push dword [0x56daf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x506acf
mov eax, dword [0x56db00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x506b48
cmp dword [0x56db04], edi
je 0x506b48
push eax
call ebx
push dword [0x56db04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x506b48
test eax, eax
je 0x506b48
call ecx
test eax, eax
je 0x506b3d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x506b3d
test byte [ebp - 8], 1
jne 0x506b48
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x506b78
mov eax, dword [0x56daf8]
cmp eax, edi
je 0x506b75
push eax
call ebx
test eax, eax
je 0x506b75
call eax
mov esi, eax
test esi, esi
je 0x506b75
mov eax, dword [0x56dafc]
cmp eax, edi
je 0x506b75
push eax
call ebx
test eax, eax
je 0x506b75
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x56daf4]
call ebx
test eax, eax
je 0x506b90
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x506b92
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dc2d2
mov esp, ebp
pop ebp
ret
Function at 0x4027cc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4027fb
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403768
jmp 0x402819
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402754
mov edi, eax
test ebx, ebx
je 0x402819
cmp dword [esi], 0
je 0x402819
dec ebx
jmp 0x402802
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4029e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a58
xor eax, eax
push ebp
push 0x402a51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404890
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404a48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4048f1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404a64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40495e
xor eax, eax
push ebp
push 0x404957
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404940
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a84
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40495e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404a3f
cmp byte [ebp - 0xd], 0
jne 0x4049a0
cmp byte [ebp - 0x12], 0
je 0x404a3f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4049b9
dec ebx
cmp byte [ebx], 0x2e
je 0x4049c8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4049b8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404a3f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4049f5
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404a3f
cmp byte [ebp - 0xd], 0
je 0x404a3f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404a3f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404f58
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404f88
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404f7e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026a0
or eax, 0xffffffff
jmp 0x404f7c
mov eax, 0x67
call fcn.00402690
or eax, 0xffffffff
jmp 0x404f7c
Function at 0x4073e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40741d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403768
jmp 0x407426
mov eax, ebx
mov edx, esi
call fcn.0040371c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407430
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407451
mov al, byte [esp]
jmp 0x407453
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fce8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov word [ebx + 8], 0
mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], 0
mov word [ebx + 0xc], 0
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov word [ebx + 0x1c], 0
mov word [ebx + 0x1e], 0
xor eax, eax
push ebp
push 0x40fd92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x2002
call fcn.004025a0
mov dword [ebx + 0x24], eax
mov eax, 0x2002
call fcn.004025a0
mov dword [ebx + 0x28], eax
mov eax, 0x2202
call fcn.004025a0
mov dword [ebx + 0x2c], eax
mov eax, 0x103b
call fcn.004025a0
mov dword [ebx + 0x20], eax
mov eax, 0x4e8
call fcn.004025a0
mov dword [ebx + 0x30], eax
mov eax, 0x75a
call fcn.004025a0
mov dword [ebx + 0x34], eax
mov eax, 0x4e6
call fcn.004025a0
mov dword [ebx + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40fdb2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x412e68
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x412de8
call fcn.00405a5c
mov ebx, 0x448bf4
xor eax, eax
push ebp
push 0x412f6d
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00412cdc
test al, al
je 0x412f57
call fcn.00412d54
mov dword [0x448c10], eax
cmp dword [0x448c10], 0
je 0x412f57
mov eax, 0x104
call fcn.004025a0
mov esi, eax
push 0x104
push esi
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, 0x448d30
mov edx, esi
call fcn.00403838
push 0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004027cc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [0x448d30]
call fcn.00412688
test al, al
je 0x412f57
push dword [0x448d30]
push 0x412f84
mov eax, dword [0x413684]
push dword [eax]
push 0x412f90
mov eax, 0x448d30
mov edx, 4
call fcn.004039c0
push 5
mov eax, dword [0x448d30]
call fcn.00403ac4
push eax
call sub.kernel32.dll_WinExec
jmp 0x412f3f
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push ebx
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x412f33
mov eax, dword [ebx + 8]
call fcn.0040366c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412f74
lea eax, [ebp - 0x10]
call fcn.00403684
ret
Function at 0xf997f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa52000]
push edi
jmp 0xf9980a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf99811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf99800
mov eax, 1
add ebx, ebx
jne 0xf99823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf99834
jne 0xf99853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf99853
dec eax
add ebx, ebx
jne 0xf99840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf99818
add ebx, ebx
jne 0xf9984f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf998a5
xor ecx, ecx
sub eax, 3
jb 0xf9986b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf998da
sar eax, 1
mov ebp, eax
jmp 0xf99876
add ebx, ebx
jne 0xf99876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf99844
inc ecx
add ebx, ebx
jne 0xf99884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf99844
add ebx, ebx
jne 0xf99891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf99886
jne 0xf998a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf99886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf998c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf998b6
jmp 0xf99806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf998c4
add edi, ecx
jmp 0xf99806
pop esi
mov edi, esi
mov ecx, 0x5b37
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf998e2
cmp byte [edi], 0x65
jne 0xf998e2
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 0xf998e7
lea edi, [esi + 0xb97000]
mov eax, dword [edi]
or eax, eax
je 0xf9995f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb9a020]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9a05c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf99914
mov ecx, edi
jns 0xf99943
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 + 0xb9a064]
or eax, eax
je 0xf99959
mov dword [ebx], eax
add ebx, 4
jmp 0xf99931
call dword [esi + 0xb9a060]
mov ebp, dword [esi + 0xb9a068]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0xf99993
sub esp, 0xffffff80
jmp 0x41813c
Function at 0x5bdd90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x127000]
push edi
or ebp, 0xffffffff
jmp 0x5bddb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bddb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bdda8
mov eax, 1
add ebx, ebx
jne 0x5bddcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bdddc
jne 0x5bddfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bddfb
dec eax
add ebx, ebx
jne 0x5bdde8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bddc0
add ebx, ebx
jne 0x5bddf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5bde4d
xor ecx, ecx
sub eax, 3
jb 0x5bde13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bde82
sar eax, 1
mov ebp, eax
jmp 0x5bde1e
add ebx, ebx
jne 0x5bde1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bddec
inc ecx
add ebx, ebx
jne 0x5bde2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bddec
add ebx, ebx
jne 0x5bde39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bde2e
jne 0x5bde4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bde2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bde6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bde5e
jmp 0x5bddae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bde6c
add edi, ecx
jmp 0x5bddae
pop esi
mov edi, esi
mov ecx, 0x4795
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bde8a
cmp byte [edi], 0x1b
jne 0x5bde8a
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 0x5bde8f
lea edi, [esi + 0x1ba000]
mov eax, dword [edi]
or eax, eax
je 0x5bdf07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bfbf4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bfcf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bdebc
mov ecx, edi
jns 0x5bdeeb
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 + 0x1bfcf8]
or eax, eax
je 0x5bdf01
mov dword [ebx], eax
add ebx, 4
jmp 0x5bded9
call dword [esi + 0x1bfcf4]
mov ebp, dword [esi + 0x1bfcfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x5bdf3b
sub esp, 0xffffff80
jmp 0x401380
Function at 0x10001250
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000dd60
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10148880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x1000130d
cmp dword [ecx + 0x10], 0
push 0x10013ce4
je 0x1000131f
jmp 0x10001336
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x36
call fcn.10002d21
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.10002d21
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov eax, 0x10001370
ret

Function at 0x100013d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000dd80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10148880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x10001507
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x10001519
jmp 0x10001462
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x10148850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001482
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10001535
jmp 0x10001551
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10013ce4
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x4b
call fcn.10002d21
push 0x10013ce4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x10
call fcn.10002d21
push 0x10013ce4
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.10002d21
int3
Function at 0x10001580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push edi
xor edi, edi
test ebx, ebx
jle 0x100015d3
mov dword [ebp + 0xc], 0x6d9
push esi
nop dword [eax + eax]
mov eax, dword [ebp + 0x10]
mov esi, ecx
movsx eax, byte [edi + eax]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add dl, 0x4f
xor byte [eax + ecx], dl
mov eax, 0xcccccccd
mul ecx
inc ecx
shr edx, 2
lea eax, [edx + edx*4]
lea edx, [edi + 1]
xor edi, edi
cmp esi, eax
cmovne edi, edx
cmp ecx, ebx
jl 0x100015a0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10001e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10148848
push 0x133000
push section..data
call fcn.10001580
push section..data
call fcn.10001710
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10001e76
push dword [ebp + 8]
push ebx
call fcn.10001af0
add esp, 8
test eax, eax
jne 0x10001e7b
push ebx
call fcn.10001cb0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
sub esp, 0x848
mov ecx, 0x212
mov edi, esp
mov esi, 0x10148000
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.10001cb0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100020c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x18], 2
jle 0x100020f2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6c656853
push eax
mov dword [ebp - 4], 0x78656c
call fcn.10001e30
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000545a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005499
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005499
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005499
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005499
cmp dword [ecx + 0x74], 0xe
jbe 0x10005499
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10008114
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 0x100081b1
push ebx
push esi
call fcn.100080dd
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.10008071
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000815e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081b0
push edi
push eax
call fcn.100090cf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000817e
call fcn.10006bb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081af
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008071
add esp, 0x20
test eax, eax
jne 0x1000819d
push edi
call fcn.10006bb9
jmp 0x100081a5
push ebx
call fcn.10006bb9
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

Function at 0x1000841e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f508
push 0x1000f500
push 0x1000ec1c
push 0x1f
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008452
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
jmp 0x10008458
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000849c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f518
push 0x1000f510
push 0x1000ec40
push 0x21
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100084d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100084db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f520
push 0x1000f518
push 0x1000ec54
push 0x22
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008515
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000dbb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000dbdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000dbdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret