joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449d88
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449d9f
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041903c
mov eax, dword [0x44df2c]
cmp word [eax + 2], 0
jne 0x449dc7
mov eax, dword [0x44df2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b460
mov eax, dword [0x44dfd4]
cmp word [eax + 2], 0
jne 0x449de1
mov eax, dword [0x44dfd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b658
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b210]
call fcn.00420e58
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x449f68
mov eax, dword [0x44de54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421228
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44bbf8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44de54]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040be64
test eax, eax
je 0x449ed6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040821c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040be8c
test eax, eax
je 0x449eea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x44dd58]
cmp byte [eax], 0
jne 0x449f1e
mov eax, ebx
call fcn.0044a090
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044bdd4
mov eax, ebx
call fcn.0044c798
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449f5e
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a310
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbb0]
cmp dword [eax + 0x30], 0
je 0x44a3ba
cmp dword [ebx + 0x94], 0
jne 0x44a3b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a2a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a3b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a37a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a3b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004135dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a389
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44af1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44af51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44af5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44bfb0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44bff1
mov eax, esi
call fcn.0043297c
test al, al
je 0x44bff1
mov eax, dword [ebx + 0x84]
call fcn.0043271c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44bff1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043271c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0xf37e9283
add eax, 0xcc181c0
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x217c215
add dword [ebp - 0x38], 0x4c3a8336
mov dword [ebp - 0x34], 0x4d48bcc8
sub dword [ebp - 0x34], 0x1b157083
mov dword [ebp - 0x30], 0x9047e77c
add dword [ebp - 0x30], 0xbc045cb2
mov dword [ebp - 0x2c], 0x2d98fc9
sub dword [ebp - 0x2c], 0x2d98fc9
lea eax, [ebp - 0x38]
push eax
mov eax, 0x6236ddf3
add eax, 0x9e099319
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x3e0e7704
add dword [ebp - 0x38], 0x3663f252
mov dword [ebp - 0x34], 0x3611aafd
sub dword [ebp - 0x34], 0xf4a54988
mov dword [ebp - 0x30], 0x75a40a14
add dword [ebp - 0x30], 0xedcb6258
mov dword [ebp - 0x2c], 0xe690bb40
sub dword [ebp - 0x2c], 0xe690bb40
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x826ae909
sub eax, 0x822a77f5
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b89a
push 0
call eax
mov ecx, 0x10d2f769
sub ecx, 0x10d2a17e
xor ebx, ebx
add ebx, eax
mov esi, 0x59e56914
sub esi, 0x59a24314
add esi, dword [ebp - 0x28]
mov edi, 0x52c1d85b
add edi, 0xd733f5
sub dword [ebp - 0x18], 0x3d813436
mov edx, dword [esi]
xor dword [ebp - 0x24], esi
xor edx, edi
xor dword [ebp - 0x10], eax
mov dword [ebx], edx
add dword [ebp - 0x14], eax
add ebx, 4
add esi, 4
loop 0x401567
add eax, 0x14a7f
mov ebx, eax
add eax, 5
mov ecx, 0x5dfe5d14
add ecx, 0xa241a2ec
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e88
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f50], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x4053c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a8], 0x44
push eax
xor eax, eax
push 0x4224a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x405401
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40548b
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040573a
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054bf
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405653
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054dd
test eax, eax
je 0x4055fe
test byte [ebp + 0xc], 2
je 0x4055fe
mov esi, 0x4214a8
push edi
push esi
call fcn.00405b66
test ebx, ebx
je 0x4054fa
push str..
push esi
call sub.kernel32.dll_lstrcatA
jmp 0x405500
push edi
call fcn.004056a0
cmp byte [edi], 0
jne 0x40550e
cmp byte [0x4214a8], 0x5c
jne 0x405519
push 0x409010
push edi
call sub.kernel32.dll_lstrcatA
push edi
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055f4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405684
cmp byte [eax], 0
je 0x40555f
cmp byte [ebp - 0x18], 0
je 0x40555f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405575
mov al, byte [esi + 1]
test al, al
je 0x4055d3
cmp al, 0x2e
jne 0x405575
cmp byte [esi + 2], 0
je 0x4055d3
push esi
push ebx
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x40559a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d3
push dword [ebp + 0xc]
push edi
call fcn.00401434
jmp 0x4055d3
push edi
call fcn.0040581e
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x4055cb
test byte [ebp + 0xc], 4
je 0x4055c3
push edi
push 0xfffffffffffffff1
call fcn.00401434
push 0
push edi
call fcn.004058b4
jmp 0x4055d3
inc dword [0x423f28]
jmp 0x4055d3
push edi
push 0xfffffffffffffff2
call fcn.00401434
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x40553d
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055fe
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405653
cmp dword [ebp - 8], esi
jne 0x405613
inc dword [0x423f28]
jmp 0x405653
push edi
call fcn.00405e61
test eax, eax
je 0x405653
push edi
call fcn.00405659
push edi
call fcn.0040581e
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564b
test byte [ebp + 0xc], 4
je 0x40560b
push edi
push 0xfffffffffffffff1
call fcn.00401434
push esi
push edi
call fcn.004058b4
jmp 0x405653
push edi
push 0xffffffffffffffe5
call fcn.00401434
pop edi
pop esi
leave
ret 8
Function at 0x4101ee
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00429070
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x410237
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x41022f
mov dword [esp + 4], 1
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x41023f
add esp, 8
pop ebx
ret 4

Function at 0x4129d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4129d7
call fcn.00429070
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00413000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x412a26
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x412a30
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x412ab9
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x412ab0
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.0041a529
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x412aae
jmp 0x412ab0
jmp 0x412a88
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x412abb
xor eax, eax
push dword [esp]
call fcn.00429100
add esp, 0x64
pop ebx
pop ebp
ret 8

Function at 0x413f9a
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00413f1b
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6d49b4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6d3aa0]
jmp 0x413fcb
cmp dword [esi + 0xc], edi
je 0x413fd1
mov esi, dword [esi]
test esi, esi
jne 0x413fc4
jmp 0x413fe9
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6d3aa0
call fcn.00428de7
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x413ff6
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x41408e
push edi
push 0x6d49b4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6d3aa0]
test edi, edi
je 0x414062
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41405b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6d3aa0
call fcn.00428de7
pop ecx
pop ecx
jmp 0x41405d
mov edi, dword [edi]
test edi, edi
jne 0x414032
pop ebx
mov eax, dword [0x6cf0c0]
mov esi, eax
inc eax
push 0x10
push 0x6d3aa0
mov dword [0x6cf0c0], eax
call fcn.00428e27
pop ecx
pop ecx
push 0x6d49b4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4141c9
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41421e
push dword [esp + 0x10]
push 0x414148
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6d3aa4]
test esi, esi
je 0x414277
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x414216
cmp byte [esi + 0x10], 0
je 0x414216
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4141f2
jmp 0x414277
mov esi, dword [0x6d3aa4]
test esi, esi
je 0x414277
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x414270
cmp byte [esi + 0x11], 0
je 0x41424c
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x414263
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6d3aa4
call fcn.00428de7
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41422b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41431a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x6d49d8]
call fcn.004284a4
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41441a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x414370
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x414368
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4143b0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4143f2
push 0x22
pop edx
cmp cx, dx
je 0x4143a2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x414392
xor ecx, ecx
cmp word [eax], cx
je 0x4143f2
mov ecx, eax
add eax, 2
jmp 0x4143f4
test dx, dx
je 0x4143fa
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4143a2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4143e8
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4143f2
cmp cx, dx
je 0x4143e5
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4143d5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4143ba
jmp 0x4143a2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4143fc
xor edx, edx
cmp dword [ebp], ebx
jne 0x414405
test edi, edi
jne 0x414422
test edx, edx
je 0x41440a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41435e
test edi, edi
jne 0x414433
mov eax, ebx
jmp 0x414437
test esi, esi
je 0x414433
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x414437
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x415919
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x415ab8
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x415ab7
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415ab6
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x6d3490]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x415aaf
call fcn.0043e1a0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x415a9c
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.0043e670
lea eax, [esp + 0x30]
push eax
push edi
call fcn.0043e7f0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x4159e8
cmp dword [eax + 8], 3
je 0x4159e8
push dword [esp + 0x50]
push edi
call fcn.0043df40
pop ecx
pop ecx
jmp 0x415a06
push dword [esp + 0x50]
call fcn.00490ae0
mov esi, eax
push esi
push edi
call fcn.0043e660
pop ecx
pop ecx
push esi
call fcn.00490ad0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.0043e6c0
push 0x8000
push edi
call fcn.0043e510
push edi
push dword [esi]
call fcn.0043e960
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x415a83
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.0043e920
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x415a7b
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x415a49
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x415a95
mov dword [esp + 0x18], 1
push edi
call fcn.0043e0d0
pop ecx
push ebp
push 0
push dword [0x6d3490]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc
Function at 0x416200
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x41614f
push 0x10
push 0x2c
call fcn.00428785
xor esi, esi
mov dword [0x6d3cc0], eax
push esi
push esi
push 8
call fcn.0042850f
mov dword [0x6d4a3c], eax
cmp word [0x6d3cb8], si
jne 0x4162e9
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x416258
mov word [0x6d3cb8], di
jmp 0x416260
xor eax, eax
mov word [0x6d3cb8], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x6d3cd4], eax
test eax, eax
je 0x4162e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x6d3cd4]
mov dword [0x6d3cc4], eax
call esi
push str.getnameinfo
push dword [0x6d3cd4]
mov dword [0x6d3cc8], eax
call esi
push str.WSAStringToAddressA
push dword [0x6d3cd4]
mov dword [0x6d3ccc], eax
call esi
cmp dword [0x6d3cc4], 0
mov dword [0x6d3cd0], eax
je 0x4162e8
cmp dword [0x6d3cc8], 0
je 0x4162e8
cmp dword [0x6d3ccc], 0
je 0x4162e8
test eax, eax
je 0x4162e8
mov dword [0x6d3cbc], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x416b00
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6d3cd8], 0
jne 0x416b0e
call fcn.00416a80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6d3cdc]
call esi
test eax, eax
jne 0x416b31
call fcn.00416a80
push dword [0x6d3cdc]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x416b40
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x416ba0
mov ebx, 0x10
test edi, edi
jns 0x416ba9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x416b72
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4191cd
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x6d49ac]
call fcn.004286b2
mov ebx, eax
test ebx, ebx
je 0x419231
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4191f6
push dword [esp + 0xc]
push ebx
call eax
jmp 0x419231
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00429360
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00429440
pop edi
pop esi
pop ebx
ret 8

Function at 0x41a591
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a707
mov eax, dword [esp + 0x24]
dec eax
je 0x41a6ea
dec eax
jne 0x41a707
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041a54a
pop ecx
test eax, eax
je 0x41a648
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41a60b
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41a6e6
dec ebx
je 0x41a6e2
dec ebx
je 0x41a6c1
dec ebx
je 0x41a67b
sub ebx, 4
jne 0x41a707
test edi, edi
jne 0x41a707
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41a707
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x41a60b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41a606
sub edi, 0
je 0x41a6b3
dec edi
je 0x41a6a5
dec edi
je 0x41a697
dec edi
jne 0x41a707
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41a707
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41a707
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41a707
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41a707
sub edi, 0
je 0x41a6de
dec edi
je 0x41a6da
dec edi
jne 0x41a707
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41a707
push 0x3c
jmp 0x41a706
push 0x32
jmp 0x41a706
push 0x14
jmp 0x41a706
push 5
jmp 0x41a706
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41a704
cmp eax, 0xa
je 0x41a700
cmp eax, 0x5a
jne 0x41a707
push 0x28
jmp 0x41a706
push 0x1e
jmp 0x41a706
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret