joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebp
push edi
mov ebp, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100084a0], eax
je 0x1000417e
pop edi
mov eax, 0x10dd
pop ebp
pop ecx
ret
mov eax, dword [0x1000849c]
test eax, eax
jne 0x10004267
test ebp, ebp
jne 0x10004196
pop edi
lea eax, [ebp + 0x57]
pop ebp
pop ecx
ret
test edi, edi
je 0x100041af
cmp dword [edi], 0
jne 0x100041b8
mov dword [0x1000849c], 6
mov dword [0x100084a8], edi
pop edi
mov eax, 6
pop ebp
pop ecx
ret
push ebx
push esi
push 0x18
call fcn.10004896
mov ecx, dword [edi]
add esp, 4
mov esi, eax
call fcn.10003830
mov ecx, ebp
mov ebx, eax
call fcn.10003830
movzx ecx, byte [ebx + 0x36]
mov ebp, dword [ebx + 0x40]
sub ebp, ecx
test ecx, ecx
je 0x1000423e
cmp ecx, 0x1e
ja 0x1000423e
cmp dword [ebx + 0x44], eax
jne 0x1000423e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x40
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004212
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000424c
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 4], 1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [0x100084b4]
mov dword [esi], eax
xor eax, eax
mov dword [0x100084b4], esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
cmp dword [0x10008478], 0
mov ebx, 9
jne 0x10004252
mov dword [0x1000849c], ebx
push 0x18
push esi
call fcn.10004be5
add esp, 8
mov dword [0x100084a8], edi
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x43356d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x456818
cmp edx, dword [eax]
je 0x43358f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x433580
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x456818]
jne 0x4336bd
mov eax, dword [0x45a98c]
cmp eax, 1
je 0x433697
test eax, eax
jne 0x4335c0
cmp dword [0x456664], 1
je 0x433697
cmp edx, 0xfc
je 0x4336bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4335f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00436ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00432b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43363a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00432b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4478ac
push edi
call fcn.0042ff00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00436ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00436cb0
lea eax, [ebp - 0xa0]
push 0x440af4
push eax
call fcn.00436cb0
push dword [esi + 0x45681c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00436cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00437b56
add esp, 0x2c
pop edi
jmp 0x4336bd
lea eax, [ebp + 8]
lea esi, [esi + 0x45681c]
push 0
push eax
push dword [esi]
call fcn.00432b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x436c59
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043641b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x436c9a
test byte [esp + 8], 2
je 0x436c9a
mov dword [0x45a938], 0xd
mov dword [0x45a93c], 5
jmp 0x436c75
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41786b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
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.00408dc5
mov dword [ebp - 0x14], eax
cmp dword [0x441d98], esi
jne 0x41795e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4178eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417a3e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417a3e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417a3e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x441d98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x441d9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x441da0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x441da8], eax
test eax, eax
je 0x41795b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x441da4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417983
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417976
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417998
push 4
pop eax
jmp 0x417a40
cmp dword [ebp - 0x14], esi
je 0x417998
push dword [0x441d98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41797d
mov eax, dword [0x441da4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4179f6
cmp dword [0x441da8], edi
je 0x4179f6
push eax
call ebx
push dword [0x441da8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4179f6
test eax, eax
je 0x4179f6
call ecx
test eax, eax
je 0x4179eb
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 0x4179eb
test byte [ebp - 8], 1
jne 0x4179f6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417a26
mov eax, dword [0x441d9c]
cmp eax, edi
je 0x417a23
push eax
call ebx
test eax, eax
je 0x417a23
call eax
mov esi, eax
test esi, esi
je 0x417a23
mov eax, dword [0x441da0]
cmp eax, edi
je 0x417a23
push eax
call ebx
test eax, eax
je 0x417a23
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x441d98]
call ebx
test eax, eax
je 0x417a3e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417a40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f87
mov esp, ebp
pop ebp
ret
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1004022c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1004023b
pop dword [ebp - 8]
mov eax, 0x1004023b
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x7ef3da1c
add dword [ebp - 0x18], 0xcf5e6b2f
mov dword [ebp - 0x14], 0xb0f290e8
add dword [ebp - 0x14], 0x8140bb5d
mov dword [ebp - 0x10], 0xcbce1aae
add dword [ebp - 0x10], 0x807e2980
mov dword [ebp - 0xc], 0xa4894b57
add dword [ebp - 0xc], 0x5b76b4a9
lea eax, [ebp - 0x18]
push eax
mov eax, 0xc1c8f698
add eax, 0x4e3b5a6c
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x81e20b7
add dword [ebp - 0x18], 0x6c54489f
mov dword [ebp - 0x14], 0x65f7bc13
add dword [ebp - 0x14], 0xdb74a562
mov dword [ebp - 0x10], 0x82b7190
add dword [ebp - 0x10], 0x5b43fadc
mov dword [ebp - 0xc], 0xfebe650d
add dword [ebp - 0xc], 0x1419af3
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x506ccaf
add eax, 0xafd8409
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x48c05
push 0
call eax
mov ecx, 0x40b5
xor esi, esi
add esi, eax
mov edi, 0xe323b2fe
sub edi, 0xd31c62fe
add edi, dword [ebp - 8]
mov ebx, 0x87dd267c
mov dword [ebp - 4], 0x41b1e9d2
mov edx, dword [edi]
xor dword [ebp - 4], edi
xor edx, ebx
xor dword [ebp - 4], 0xa075ef4b
mov dword [esi], edx
sub dword [ebp - 4], 0xe055db77
add esi, 0x902f0f74
sub esi, 0x902f0f70
add edi, 0x1f3e7af1
add edi, 0xe0c18513
loop 0x1004034e
add eax, 0xbdea2327
sub eax, 0xbde92d80
xor ebx, ebx
add ebx, eax
add eax, 0xeb1ed426
add eax, 0x14e12bdf
mov ecx, 0x6ce29133
add ecx, 0xa31d6ecd
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x44cdb1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4e7350
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x512ec8], 1
jge 0x4e73bf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4e7395
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x4e7395
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4e7372
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4e73ab
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x4e73b2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4e74af
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x4e7480
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4e7475
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x4e7469
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x4e7470
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x4e74af
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x4e74aa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4e7493
mov eax, dword [ebx + 8]
jmp 0x4e74af
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4e74a1
xor eax, eax
jmp 0x4e74af
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4e73df
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x44e279
Capabilities:
Query environment variable

Disassembly:
jmp 0x4b8f53
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b8f67
xor edi, edi
jmp 0x4b8fab
push ebx
push esi
call fcn.004b8e49
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.0044e783
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4b8f98
push ebx
push esi
push edi
call fcn.0044e382
add esp, 0xc
push 2
push 0
call fcn.0044ebf7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x586750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10d000]
push edi
jmp 0x58676a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x586771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x586760
mov eax, 1
add ebx, ebx
jne 0x586783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x586794
jne 0x5867b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5867b3
dec eax
add ebx, ebx
jne 0x5867a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x586778
add ebx, ebx
jne 0x5867af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x586805
xor ecx, ecx
sub eax, 3
jb 0x5867cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58683a
sar eax, 1
mov ebp, eax
jmp 0x5867d6
add ebx, ebx
jne 0x5867d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5867a4
inc ecx
add ebx, ebx
jne 0x5867e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5867a4
add ebx, ebx
jne 0x5867f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5867e6
jne 0x586802
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5867e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x586824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x586816
jmp 0x586766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x586824
add edi, ecx
jmp 0x586766
pop esi
mov edi, esi
mov ecx, 0x3516
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x586842
cmp byte [edi], 0x28
jne 0x586842
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 0x586847
lea edi, [esi + 0x184000]
mov eax, dword [edi]
or eax, eax
je 0x5868bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1864c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18654c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x586874
mov ecx, edi
jns 0x5868a3
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 + 0x186550]
or eax, eax
je 0x5868b9
mov dword [ebx], eax
add ebx, 4
jmp 0x586891
call dword [esi + 0x186560]
mov ebp, dword [esi + 0x186554]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x5868f3
sub esp, 0xffffff80
jmp 0x467792

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40df22
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x40e0c8
cmp word [eax], bx
je 0x40e0c8
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x40e0c4
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x40e0b9
push edi
push dword [esp + 0x20]
call fcn.0040e405
mov edi, eax
test edi, edi
je 0x40e0b8
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x40df98
push 2
jmp 0x40df9c
push dword [esp + 0x20]
push ebx
call fcn.0040e894
mov esi, eax
test esi, esi
je 0x40e0b1
cmp ebx, 0xffffffff
jne 0x40dfb3
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x40dff4
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x40e002
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.0042a220
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x40e0ad
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x40e02d
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00429bb0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x40e09f
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x40e071
push eax
push dword [esp + 0x1c]
call fcn.0040e4b0
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x40e079
push 1
jmp 0x40e07b
push 0
push eax
push edi
call fcn.00429e80
add esp, 0xc
test eax, eax
je 0x40e093
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x40e01e
jmp 0x40e0ad
push edi
call fcn.00429e60
pop ecx
mov dword [esi + 0x18], eax
jmp 0x40e0a6
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0040e56a
and dword [esi + 0x2c], 0
push edi
call fcn.00429fc0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x40e0ca
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x40ee60
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40eeb5
push dword [esp + 0x10]
push 0x40eddf
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x79f080]
test esi, esi
je 0x40ef0e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40eead
cmp byte [esi + 0x10], 0
je 0x40eead
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 0x40ee89
jmp 0x40ef0e
mov esi, dword [0x79f080]
test esi, esi
je 0x40ef0e
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 0x40ef07
cmp byte [esi + 0x11], 0
je 0x40eee3
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40eefa
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 0x79f080
call fcn.004232a5
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40eec2
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f6c1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x40f770
cmp dword [esp + 0x24], 2
je 0x40f770
push 0x2000
push edi
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40f743
cmp dword [esp + 0x18], 2
jne 0x40f75b
test ebx, ebx
jne 0x40f72c
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40f75b
cmp ax, 0xd
je 0x40f743
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40f703
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004691b0
jmp 0x40f7f6
push eax
push 0
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40f7c2
cmp dword [esp + 0x18], 1
jne 0x40f7da
test ebx, ebx
jne 0x40f7b1
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40f7da
cmp al, 0xd
je 0x40f7c2
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40f789
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x40f7f1
call fcn.00469200
jmp 0x40f7f6
call fcn.004693b0
push esi
push 0
push dword [0x79e8ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x410651
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4105a0
push 0x10
push 0x2c
call fcn.004230be
push 0
push 0
push 8
mov dword [0x79f094], eax
call fcn.00422a16
cmp word [0x79f08c], 0
mov dword [0x79fdf0], eax
jne 0x410736
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4106a9
mov word [0x79f08c], di
jmp 0x4106b1
xor eax, eax
mov word [0x79f08c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x79f0a8], eax
test eax, eax
je 0x410735
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x79f0a8]
mov dword [0x79f098], eax
call esi
push str.getnameinfo
push dword [0x79f0a8]
mov dword [0x79f09c], eax
call esi
push str.WSAStringToAddressA
push dword [0x79f0a8]
mov dword [0x79f0a0], eax
call esi
cmp dword [0x79f098], 0
mov dword [0x79f0a4], eax
pop esi
je 0x410735
cmp dword [0x79f09c], 0
je 0x410735
cmp dword [0x79f0a0], 0
je 0x410735
test eax, eax
je 0x410735
mov dword [0x79f090], edi
pop edi
add esp, 0x190
ret

Function at 0x410e80
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x79f0ac], 0
jne 0x410e8e
call fcn.00410e20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x79f0b0]
call esi
test eax, eax
jne 0x410eb1
call fcn.00410e20
push dword [0x79f0b0]
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 0x410ec0
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 0x410f20
mov ebx, 0x10
test edi, edi
jns 0x410f29
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x410ef2
pop edi
pop esi
pop ebp
pop ebx
ret 4