joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c5b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5774c8]
cmp byte [eax + 0xc], 0
je 0x44c71d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c716
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57b544], 0
jne 0x44c604
push 0x44c724
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c72c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b544], eax
cmp dword [0x47c664], 0
jne 0x44c6ff
push 0x44c73c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47c664], eax
cmp dword [0x47c664], 0
je 0x44c6ff
push 0x44c748
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b548], eax
push 0x44c758
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b54c], eax
push 0x44c76c
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b550], eax
push 0x44c784
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b554], eax
push 0x44c79c
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b558], eax
push 0x44c7b0
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b55c], eax
push 0x44c7c8
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b560], eax
push 0x44c7e0
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b564], eax
push 0x44c7fc
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b568], eax
push 0x44c808
mov eax, dword [0x47c664]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57b56c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c71d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x451da8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x451dfc]
test si, 4
je 0x451dbd
or bl, 1
test si, 8
je 0x451dc7
or bl, 4
test si, 1
je 0x451dd1
or bl, 8
test si, 2
je 0x451ddb
or bl, 0x10
test si, 0x10
je 0x451de5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451df4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451e00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x451e3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451e1a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451e29
or bl, 4
test esi, 0x20000000
je 0x451e34
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4594f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459502
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a580
mov eax, dword [0x577144]
mov dword [eax + 4], ebx
mov dword [eax], 0x459894
mov eax, dword [0x577154]
mov dword [eax + 4], ebx
mov dword [eax], 0x4598a0
mov eax, ebx
call fcn.004598ac
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x455344
push eax
push 0
push 0
mov eax, dword [0x5772b8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e164]
call fcn.0041f9b8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e164]
call fcn.0041f9b8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e164]
call fcn.0041f9b8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459cdc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459bac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459bac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459bac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45963f
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459990
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459b3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459b1c
mov dl, 1
mov eax, dword [0x4125e0]
call fcn.00403844
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459b0b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044c90c
test al, al
je 0x459afe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x459b4c
lea eax, [ebp - 0x254]
call fcn.00409530
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459afe
xor eax, eax
push ebp
push 0x459af7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x459b84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459ae0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x459ae0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459afe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459a01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416348
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459b42
lea eax, [ebp - 0x260]
call fcn.004046a0
ret

Function at 0x45a4b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x57b57c]
cmp byte [eax + 0xad], 0
jne 0x45a525
cmp dword [0x57b594], 0
jne 0x45a4e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a470
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x57b594], eax
cmp dword [0x57b590], 0
jne 0x45a501
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x57b590], eax
cmp dword [0x57b598], 0
jne 0x45a525
push esp
push 0
push 0
push 0x45a414
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x57b598], eax
pop edx
ret
Function at 0x45a6f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a70f
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a580
mov eax, dword [0x5772a0]
cmp word [eax + 2], 0
jne 0x45a737
mov eax, dword [0x5772a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c1c0
mov eax, dword [0x57735c]
cmp word [eax + 2], 0
jne 0x45a751
mov eax, dword [0x57735c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c3cc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4121bc]
call fcn.00403844
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41ec74]
call fcn.0042670c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45a908
mov eax, dword [0x5771b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426ae0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ca8c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5771b8]
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.0040ccd4
test eax, eax
je 0x45a858
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ee8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd08
test eax, eax
je 0x45a86c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404910
mov byte [ebx + 0xd4], 0
push ebx
push 0x45bd08
call fcn.0041b6fc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x577084]
cmp byte [eax], 0
jne 0x45a8bd
mov eax, ebx
call fcn.0045aa4c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045cc68
mov eax, ebx
call fcn.0045d7c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a8fd
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45accc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x57b57c]
cmp dword [eax + 0x30], 0
je 0x45ad76
cmp dword [ebx + 0x94], 0
jne 0x45ad70
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ac5c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ad70
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 0x45ad36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ad70
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.004145f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ad45
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ba90
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45bac5
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.00404790
jmp 0x45bad2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ce4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ceba
mov eax, esi
call fcn.004475cc
test al, al
je 0x45ceba
mov eax, dword [ebx + 0x84]
call fcn.0044722c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ceba
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45ceae
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044722c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043f64c
jmp 0x45ceba
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045cc88
pop esi
pop ebx
ret
Function at 0x463cf4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x463d22
mov eax, ebx
call fcn.004647a8
cmp dword [ebx + 0x40], 0
je 0x463d1b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x463d93
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x463d85
cmp dword [ebx + 8], 0
je 0x463d44
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x463d56
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x463d85
cmp dword [ebx + 8], 0
je 0x463d37
cmp eax, 3
je 0x463d69
dec eax
jne 0x463d37
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x463d37
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x463d37
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x463db1
cmp dword [ebx + 0x14], 0xcc
je 0x463db1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00463dbc
pop ebx
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 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 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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x76747b16
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
mov ecx, 0x77d837a8
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov edx, 0x25
push esi
push edi
mov esi, 0x10066b10
xor edi, edi
mov ecx, edi
mov eax, edi
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebp + edi*4 - 0x400], eax
inc edi
cmp edi, 0x100
jl 0x10001f97
or eax, 0xffffffff
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x400]
sub edx, 1
jne 0x10002034
pop edi
pop esi
not eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10004590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
push 0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x10002160
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], str.VQWKCCZhujOvnKqWQKcdGtVxqKN
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.jxUNBpPTvJpwniGcSqrXHBvqZgDz
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x10004677
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004677
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004654
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x10003340
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], str.sQleLbahuVmqFqu
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.EnHDPqOtMNDjcPqhpRXUzQqccC
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100c423c], eax
test eax, eax
je 0x10004768
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004768
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004745
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004770
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10066b3c], 5
mov dword [0x10066b38], 8
mov byte [0x100c4095], 0
nop
push 0x1005c294
call fcn.1003aee1
add esp, 4
mov esi, 0x32
mov dl, 0x2d
call fcn.10008c40
sub esi, 1
jne 0x100047b2
push 0x100c31f0
call fcn.10008ba0
movzx eax, word [0x10066b3c]
add esp, 4
mov word [ebp - 4], ax
movzx eax, word [0x10066b38]
mov word [ebp - 2], ax
push dword [ebp - 4]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebx
mov dl, 0x40
call fcn.10008c40
call fcn.10038e30
test eax, eax
je 0x1000480e
call fcn.10038bf8
cmp al, 0x20
jne 0x1000480e
dec dword [0x10066b38]
mov eax, dword [0x10066b3c]
inc eax
mov dword [0x10066b3c], eax
cmp eax, 0x32
jl 0x10004825
mov byte [0x100c4095], 1
push 0x64
call edi
cmp byte [0x100c4095], 0
je 0x100047a0
pop edi
pop esi
pop ebx
mov edx, str.Rainbow_flag__Nice_for_my_restroom.
mov ecx, 0x100c31f0
call fcn.10008910
push eax
call fcn.10008ba0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x10007c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10052870
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x100544cc
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10033a13
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10032f87
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007810
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003dbc2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003dc01
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003dc01
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003dc01
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003dc01
cmp dword [ecx + 0x74], 0xe
jbe 0x1003dc01
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100445e1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10058500
push 0x100584f8
push str.FlsAlloc
push 0x1f
call fcn.1004444c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044615
push dword [ebp + 8]
mov ecx, esi
call dword [0x10054338]
call esi
jmp 0x1004461b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004465f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10058510
push 0x10058508
push str.FlsGetValue
push 0x21
call fcn.1004444c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044696
push dword [ebp + 8]
mov ecx, esi
call dword [0x10054338]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004469e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10058518
push 0x10058510
push str.FlsSetValue
push 0x22
call fcn.1004444c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100446d8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10054338]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]