joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5075e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x5077a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427e04
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.00450b10
call fcn.004ef790
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x50766c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00422a08
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427e04
mov eax, dword [eax + 0xc]
pop edx
call fcn.00422a10
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004228f0
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409628
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427e04
call fcn.00423860
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422964
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229a0
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229a0
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004229a0
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00422a08
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427e04
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042289c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00427e04
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x54]
mov ecx, edx
shl edx, 6
add edx, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx + edx*4 + 0xb0]
call fcn.004226e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5077ab
lea eax, [ebp - 4]
call fcn.0040470c
ret
Function at 0x509aec
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x509afc
call sub.user32.dll_FindWindowA
ret

Function at 0x522548
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x522560
mov eax, ebx
call fcn.00521de0
cmp dword [ebx + 0x68], 0
jne 0x52256d
mov eax, ebx
call fcn.00521d3c
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x522720
cmp dword [ebx + 0x68], 0
je 0x522720
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.00521ba8
lea eax, [esp + 0x14]
xor edx, edx
call fcn.005023ec
cmp eax, dword [esp]
je 0x5225ef
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00502400
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x5225cb
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.005023ec
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x5225e4
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x522602
mov eax, dword [eax + 0x10]
call fcn.00445130
mov esi, eax
jmp 0x522605
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x52261a
or esi, 0xffffffff
jmp 0x522624
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0043e05c
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.0043e080
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.0043e0a8
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0043e0cc
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.004157c8
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00445130
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00445130
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00445130
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00427e04
call fcn.00423860
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00445130
push eax
mov eax, dword [0x52d964]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.00445130
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x522960
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.004031d0
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x522b50
push 0
push 0x522b58
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x522b50
push 0
push 0x522b68
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x522b50
push 0
push 0x522b78
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x522b50
push 0
push 0x522b88
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x522b50
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x522b50
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x522b50
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x522b50
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x522b50
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x522b3c
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x522b32
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x522b32
test byte [esp + 0x1d], 0xd
jne 0x522b32
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x522b32
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x522b32
cmp dword [esp + 0xc], 0
je 0x522b32
mov eax, dword [0x52dc34]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x522b32
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x522b0a
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x522b3c
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_OffsetRect
jmp 0x522b3c
cmp ebx, dword [esp + 4]
jl 0x522a6e
push 0x8000
push 0
push esi
push edi
call sub.KERNEL32.DLL_VirtualFreeEx
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x526ee4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bac
xor eax, eax
push ebp
push 0x5270c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x144], 0x128
mov bl, 1
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x52708b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.00523c38
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x527071
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0xc]
call fcn.00523c58
push edi
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetWindowThreadProcessId
jmp 0x527041
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404974
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.0040949c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x18]
call fcn.00408b88
lea ecx, [ebp - 0x150]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004093d4
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x18]
call fcn.004047a4
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.00408b88
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x18]
call fcn.00404b08
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x52702d
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404974
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x14]
call fcn.00409468
xor ebx, ebx
jmp 0x527041
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0xc]
call fcn.00523c78
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x526f86
cmp byte [ebp - 5], 0
je 0x527071
cmp byte [ebp - 0xd], 0
je 0x527071
push 0
push esi
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527092
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov bl, byte [ebp - 0xd]
ret
Function at 0x1000247a
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100024b5
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1000249c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100024ad
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100024b7
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10002492
xor eax, eax
pop edi
pop esi
ret

Function at 0x10002770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
rcl byte [ebx]
call fcn.1000243a
cwde
push ecx
arpl word [eax], bx
lea eax, [ebp - 0x40]
push eax
call fcn.1000244a
push eax
push esi
push dword [ebp + 8]
call fcn.100023ff
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.1000243a
cdq
ficom dword [esi + eax*2 - 0x7717ba73]
pop ebp
call 0xf95daffb
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1000244a
push eax
push esi
push dword [ebp + 8]
call fcn.100023ff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000244a
push eax
push esi
push dword [ebp + 8]
call fcn.100023ff
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000244a
push eax
push esi
push dword [ebp + 8]
call fcn.100023ff
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000243a
dec esi
invalid
Function at 0x10002da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx]
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1000244a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100023ff
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
adc al, 0xfc
invalid
inc dword [eax]
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.1000244a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100023ff
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.1000243a
xor byte [esp + edi*4], 0xb
invalid
movsd dword es:[edi], dword [esi]
int3
cli

Function at 0x10003fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.1000244a
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.100023ab
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
invalid
Function at 0x1003d030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call sym.ruby.dll_ruby_cleanup
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
ret

Function at 0x10047270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.10048010
mov dword [ebp - 4], eax
mov eax, 4
shl eax, 0
mov ecx, dword [sym.ruby.dll_ruby_current_vm]
cmp dword [ecx + eax + 0x44], 0
je 0x1004729d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
and eax, 4
je 0x100472be
push 0x102354f4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10052750
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
and edx, 4
je 0x100472fa
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov esi, 4
shl esi, 0
call fcn.10048010
mov ecx, dword [sym.ruby.dll_ruby_current_vm]
mov edx, dword [ecx + esi + 0x44]
mov dword [eax + 0x68], edx
push 6
call fcn.10048010
push eax
call fcn.10048030
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [sym.ruby.dll_ruby_current_vm]
mov edx, dword [ecx + eax + 0x44]
push edx
call sym.ruby.dll_rb_exc_raise
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100485d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sym.ruby.dll_ruby_thread_has_gvl_p
test eax, eax
je 0x100485f3
mov eax, dword [ebp + 8]
push eax
push 0x102354c0
mov ecx, dword [sym.ruby.dll_rb_eNoMemError]
push ecx
call sym.ruby.dll_rb_raise
jmp 0x10048634
call sym.ruby.dll_ruby_native_thread_p
test eax, eax
je 0x1004860f
mov edx, dword [ebp + 8]
push edx
push 0x100507b0
call sym.ruby.dll_rb_thread_call_with_gvl
add esp, 8
jmp 0x10048634
mov eax, dword [ebp + 8]
push eax
push str._FATAL___s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10052750
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
ret
Function at 0x1004f020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 0
je 0x1004f036
mov eax, 1
jmp 0x1004f0b2
call sym.ruby.dll_ruby_thread_has_gvl_p
test eax, eax
je 0x1004f05b
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100487a0
add esp, 0x10
jmp 0x1004f0b2
call sym.ruby.dll_ruby_native_thread_p
test eax, eax
je 0x1004f091
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x10]
push eax
push 0x1004efe0
call sym.ruby.dll_rb_thread_call_with_gvl
add esp, 8
jmp 0x1004f0b2
push 0x10234d0c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10052750
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esp, ebp
pop ebp
ret

Function at 0x100507e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sym.ruby.dll_ruby_thread_has_gvl_p
test eax, eax
je 0x100507f3
call sym.ruby.dll_rb_memerror
jmp 0x1005082e
call sym.ruby.dll_ruby_native_thread_p
test eax, eax
je 0x1005080d
push 0
push 0x100507d0
call sym.ruby.dll_rb_thread_call_with_gvl
add esp, 8
jmp 0x1005082e
push 0x102354d0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10052750
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
ret
Function at 0x10053050
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10056aa0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x100530d8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10053084
jmp 0x10053178
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea esi, [esi + eax + 2]
mov eax, dword [ebp - 8]
push eax
call fcn.10056a00
add esp, 4
add esi, eax
call fcn.10056a50
cmp esi, eax
jb 0x100530be
jmp 0x10053178
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x102360c4
call sym.ruby.dll_rb_sprintf
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x100530ec
mov eax, dword [ebp + 8]
push eax
push 0x102360cc
call sym.ruby.dll_rb_sprintf
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
and edx, 0x2000
jne 0x10053102
mov dword [ebp - 0xc], 1
jmp 0x10053109
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x1005311a
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x10], eax
jmp 0x10053123
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call sym.ruby.dll_rb_str_resize
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x10053151
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x10053172
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10053172
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x10053172
jmp 0x10053178
cmp dword [ebp - 0x14], 0
je 0x10053181
mov eax, dword [ebp + 8]
push eax
call fcn.10056a80
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005a380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.ruby.dll_rb_stderr]
cmp eax, dword [0x10257bfc]
je 0x1005a39e
mov ecx, dword [0x10257bfc]
mov edx, dword [ecx + 8]
cmp dword [edx], 0
jge 0x1005a3c6
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jae 0x1005a3c4
jmp 0x1005a3e6
jmp 0x1005a3e6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.ruby.dll_rb_str_new
add esp, 8
push eax
mov ecx, dword [sym.ruby.dll_rb_stderr]
push ecx
call sym.ruby.dll_rb_io_write
add esp, 8
pop ebp
ret
Function at 0x1005b290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.ruby.dll_rb_stderr]
cmp eax, dword [0x10257bfc]
je 0x1005b2b5
mov ecx, dword [0x10257bfc]
mov edx, dword [ecx + 8]
cmp dword [edx], 0
jge 0x1005b367
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x2000
jne 0x1005b2cb
mov dword [ebp - 4], 1
jmp 0x1005b2d2
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1005b2e8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shr eax, 0xe
and eax, 0x1f
mov dword [ebp - 8], eax
jmp 0x1005b2f1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x2000
jne 0x1005b30d
mov dword [ebp - 0xc], 1
jmp 0x1005b314
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x1005b325
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x10], eax
jmp 0x1005b32e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jae 0x1005b365
lea edx, [ebp + 8]
push edx
call fcn.100591b0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x1005b37a
jmp 0x1005b37a
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [sym.ruby.dll_rb_stderr]
push edx
call sym.ruby.dll_rb_io_write
add esp, 8
mov esp, ebp
pop ebp
ret