joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440080
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x440092
add esp, 0xfffffff0
call fcn.00402f78
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411e2c
mov eax, ebx
call fcn.004403cc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x440050
push eax
push 0
push 0
mov eax, dword [0x4615b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4132f4]
call fcn.0041482c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4132f4]
call fcn.0041482c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4132f4]
call fcn.0041482c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004407ac
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4406c8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4406c8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4406c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4401a1
call fcn.00402fd0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4404ac
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 0x440657
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x440638
mov dl, 1
mov eax, dword [0x40c224]
call fcn.00402c48
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403900
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x440627
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.0042ea34
test al, al
je 0x44061a
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, 0x440668
lea eax, [ebp - 0x254]
call fcn.004086e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44061a
xor eax, eax
push ebp
push 0x440613
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 0x4406a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4405fc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b30
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4405fc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44061a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44051d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040eec0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44065e
lea eax, [ebp - 0x260]
call fcn.00403900
ret

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

Disassembly:
push ecx
mov eax, dword [0x4627c8]
cmp byte [eax + 0x95], 0
jne 0x440f15
cmp dword [0x4627e4], 0
jne 0x440ed6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x440e60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4627e4], eax
cmp dword [0x4627e0], 0
jne 0x440ef1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4627e0], eax
cmp dword [0x4627e8], 0
jne 0x440f15
push esp
push 0
push 0
push 0x440e04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4627e8], eax
pop edx
ret
Function at 0x44100c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441023
add esp, 0xfffffff0
call fcn.00402f78
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411e2c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bf24]
call fcn.00402c48
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x413c84]
call fcn.0041b154
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x441198
mov eax, dword [0x4614d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b524
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x442b30
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4614d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00409a68
test eax, eax
je 0x441116
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408068
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409a90
test eax, eax
je 0x44112a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b30
mov eax, dword [0x4613c4]
cmp byte [eax], 0
jne 0x44115b
mov eax, ebx
call fcn.00441284
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44118d
call fcn.00402fd0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4414f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4627c8]
cmp dword [eax + 0x24], 0
je 0x441597
cmp dword [ebx + 0x84], 0
jne 0x441591
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x441484
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x441591
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 0x44155a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x441591
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d5e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x441569
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x441fa4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x441fd9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039e8
jmp 0x441fe3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403954
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x442ea4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x442edc
mov eax, esi
call fcn.0042a7a8
test al, al
je 0x442edc
mov eax, dword [ebx + 0x74]
call fcn.0042a4ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442edc
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042a4ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x443a7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403d44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x443ad4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x461768]
mov dl, 1
mov eax, dword [0x443634]
call fcn.004090fc
call fcn.004033d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044373c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44ca4c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x44ca7a
mov eax, ebx
call fcn.0044d4f0
cmp dword [ebx + 0x3c], 0
je 0x44ca73
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x44caeb
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x44cadd
cmp dword [ebx + 8], 0
je 0x44ca9c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x44caae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x44cadd
cmp dword [ebx + 8], 0
je 0x44ca8f
cmp eax, 3
je 0x44cac1
dec eax
jne 0x44ca8f
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 0x44ca8f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x44ca8f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x44cb09
cmp dword [ebx + 0x10], 0xcc
je 0x44cb09
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0044cb14
pop ebx
ret
Function at 0x10039e4
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
je 0x1003a37
push dword [ebp + 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp eax, edi
je 0x1003a23
xor eax, eax
jmp 0x1003a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1003a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x100611d
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x24]
or dword [esi], 0xffffffff
mov dword [ebp - 8], eax
mov edi, 0x2000000
cmp dword [ebp + 0x20], 0xffffffff
je 0x1006192
cmp dword [ebp + 0x20], ebx
je 0x1006192
cmp dword [0x1008670], ebx
jne 0x100616c
push 0x10014a4
call fcn.010060e0
mov dword [0x100866c], eax
mov dword [0x1008670], 1
mov eax, dword [0x100866c]
cmp eax, ebx
je 0x10061ec
mov ecx, dword [ebp + 0x18]
push ebx
push ebx
push dword [ebp + 0x20]
or ecx, edi
push ebx
push ecx
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x10061ac
mov eax, dword [ebp + 0x18]
push ebx
or eax, edi
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10061e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x10061e5
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x1c]
jae 0x10061e5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp dword [esi], 0xffffffff
mov dword [ebp - 4], eax
je 0x1006140
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
mov eax, 0x1a32
jmp 0x10061e5

Function at 0x1006274
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], 0xffffffff
je 0x10062cc
cmp dword [ebp + 0x10], esi
je 0x10062cc
cmp dword [0x1008688], esi
jne 0x10062ab
push 0x10014d4
call fcn.010060e0
mov dword [0x1008684], eax
mov dword [0x1008688], 1
mov eax, dword [0x1008684]
cmp eax, esi
jne 0x10062bb
mov esi, 0x1a32
jmp 0x10062e6
push dword [ebp + 0x10]
push 2
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x10062d8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
cmp edi, esi
jne 0x10062e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x438ca8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
push eax
pop ebx
add ebx, 0x57333a09
call fcn.00438ce0
sub ebx, ebx
mov eax, ebx
xor dword [ecx], esi
add eax, eax
inc ebx
inc ecx
add ebx, ebx
mov eax, 0xb289ede4
cmp ecx, edx
jne fcn.00438ca8
add ebx, eax
add ebx, 0xd7de9207
inc eax
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
mov ecx, 0x4c24bf9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x1aa71634
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x440030
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor eax, esi
cmp esi, 3
jbe 0x4400c0
lea edx, [esi - 4]
shr edx, 2
lea ebx, [ecx + edx*4 + 4]
imul edi, dword [ecx], 0x5bd1e995
add ecx, 4
mov edx, edi
shr edx, 0x18
xor edx, edi
imul edi, eax, 0x5bd1e995
imul eax, edx, 0x5bd1e995
xor eax, edi
cmp ecx, ebx
jne 0x440050
and esi, 3
cmp esi, 2
je 0x4400a9
cmp esi, 3
je 0x4400a0
cmp esi, 1
je 0x4400b2
mov edx, eax
pop ebx
pop esi
shr edx, 0xd
pop edi
xor eax, edx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xf
xor eax, edx
ret
movzx edx, byte [ebx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ebx + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [ebx]
xor eax, edx
imul eax, eax, 0x5bd1e995
jmp 0x440084
mov ebx, ecx
jmp 0x440075
Function at 0x4650d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x537874
call sym._EnterCriticalSection_4
mov ebx, dword [0x53786c]
sub esp, 4
test ebx, ebx
je 0x46511b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x465114
test esi, esi
je 0x465114
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4650f0
mov dword [esp], 0x537874
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x465300
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x465350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x465424
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x46538e
cmp eax, 4
jne 0x4653b0
test esi, esi
je 0x4653a2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x465394
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4653ef
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4653e1
cmp ecx, 0x40
je 0x4653a2
cmp ecx, 4
je 0x4653a2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00465300
lea esi, [esi]
Function at 0x4658c0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x4658d8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x465928
call sym._IsDebuggerPresent_0
test eax, eax
je 0x4658cf
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x465917

Function at 0x465960
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x537904
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x465a28
mov edx, dword [0x5378c0]
mov eax, dword [edx + 4]
test eax, eax
je 0x4659f0
cmp edx, 0x5378c0
jne 0x4659d5
mov dword [0x5378c0], eax
cmp eax, 0x5378c0
je 0x4659dc
lea esi, [esi]
test eax, eax
je 0x465a04
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x5378c0
jne 0x4659c8
mov eax, dword [0x5378c4]
mov dword [edx + 4], eax
test eax, eax
je 0x465a04
mov edx, eax
jmp 0x4659d2
mov dword [esp], 0x537940
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x465a44
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, 0x52a724
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x465a04
Function at 0x465a60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x537905], al
mov byte [edx + edx + 0x537904], cl
add edx, 1
cmp edx, 4
jne 0x465a72
xor eax, eax
mov edx, 0x5f
jmp 0x465aaf
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x53790c], dl
add eax, 1
cmp eax, 0x15
jne 0x465aa8
xor eax, eax
mov edx, 0x5f
jmp 0x465ad7
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x537940], dl
add eax, 1
cmp eax, 0x14
jne 0x465ad0
mov dword [esp + 8], 0x537904
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x537954], 0x2d
mov dword [0x537955], 0x61616161
mov dword [0x537959], 0x61616161
mov dword [0x53795d], 0x61616161
mov dword [0x537961], 0x61616161
mov dword [0x537965], 0x61616161
mov dword [0x537969], 0x61616161
mov dword [0x53796d], 0x61616161
mov dword [0x537971], 0x61616161
mov byte [0x537975], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x465cba
mov dword [esp], 0x537940
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x465c10
mov edx, 0x5378c0
mov eax, 0x20
nop
bt edx, eax
jae 0x465bb0
mov ecx, eax
neg ecx
mov byte [ecx + 0x537975], 0x41
sub eax, 1
jne 0x465ba0
mov dword [esp], 0x537940
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x465ca9
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x5378c0], 0x5378c0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x5378c0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x36
mov dword [esp + 4], 0x537940
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x465cd9
lea esi, [esi]
cmp byte [eax + 0x537955], 0x41
jne 0x465c5b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x465c48
mov eax, esi
mov dword [0x5378c0], eax
jmp 0x465c7c
cmp edx, 0x5378c0
je 0x465be3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x465c70
cmp edx, 0x5378c0
je 0x465be3
mov dword [edx + 4], 0x5378c0
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x465be3
mov eax, 0x52a780
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x465bfe
mov eax, 0x52a75c
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x52a7a4
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x465c65