joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ebd8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41ec10]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ebf1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ec00
or bl, 4
test esi, 0x20000000
je 0x41ec0b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x422cc8
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 0x422e6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a090]
call fcn.00402b40
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004035c8
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x422e43
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.0041af1c
test al, al
je 0x422e36
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x422e7c
lea eax, [ebp - 0x254]
call fcn.00406fd8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x422e36
xor eax, eax
push ebp
push 0x422e2f
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 0x422eb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x422e18
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037f4
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 0x422e18
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e36
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x422d39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040c9e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e74
lea eax, [ebp - 0x260]
call fcn.004035c8
ret
Function at 0x423058
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4326ac]
cmp byte [eax + 0x85], 0
jne 0x4230c9
cmp dword [0x4326e4], 0
jne 0x42308a
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423014
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4326e4], eax
cmp dword [0x4326e0], 0
jne 0x4230a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4326e0], eax
cmp dword [0x4326e8], 0
jne 0x4230c9
push esp
push 0
push 0
push 0x422fb8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4326e8], eax
pop edx
ret

Function at 0x4231b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4231cf
add esp, 0xfffffff0
call fcn.00402d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f298
mov dl, 1
mov eax, dword [0x409dd4]
call fcn.00402b40
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409dd4]
call fcn.00402b40
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x4104a8]
call fcn.004132c8
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423328
mov eax, dword [0x43196c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00413660
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424944
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x43196c]
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.0040843c
test eax, eax
je 0x4232b0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004069f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408464
test eax, eax
je 0x4232c4
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004037f4
mov eax, dword [0x4318fc]
cmp byte [eax], 0
jne 0x4232f5
mov eax, ebx
call fcn.0042340c
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x42331d
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423660
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4326ac]
cmp dword [eax + 0x24], 0
je 0x4236f0
cmp dword [ebx + 0x74], 0
jne 0x4236ed
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4235f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x4236ed
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 0x4236bc
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4236ed
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040ae44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4236c8
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x423fd8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42400d
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.004036ac
jmp 0x424017
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403660
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x424bb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x424bec
mov eax, esi
call fcn.00419e2c
test al, al
je 0x424bec
mov eax, dword [ebx + 0x64]
call fcn.00419c94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x424bec
push 0
mov eax, dword [ebx + 0x64]
call fcn.00419c94
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x720004]
jne 0x401010
repz ret
jmp fcn.00401460

Function at 0x4082b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058a1
and dword [ebp - 4], 0
cmp dword [0x722798], 0
mov ebx, eax
jne 0x408366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408417
push eax
call fcn.0040582f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x722798], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x72279c], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x7227a0], eax
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x7227a8], eax
test eax, eax
je 0x408366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x7227a4], eax
mov eax, dword [0x7227a4]
cmp eax, ebx
je 0x4083be
cmp dword [0x7227a8], ebx
je 0x4083be
push eax
call fcn.004058aa
push dword [0x7227a8]
mov esi, eax
call fcn.004058aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083be
test edi, edi
je 0x4083be
call esi
test eax, eax
je 0x4083b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083b5
test byte [ebp - 0xc], 1
jne 0x4083be
or dword [ebp + 0x10], 0x200000
jmp 0x4083f7
mov eax, dword [0x72279c]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083f7
mov eax, dword [0x7227a0]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x722798]
call fcn.004058aa
pop ecx
test eax, eax
je 0x408417
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2b001859
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2b03bee0]
jne 0x2b001863
repz ret
jmp fcn.2b02c235

Function at 0x2b003226
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x2b003235
pop dword [ebp - 0x1c]
mov eax, 0xdbb1c4f9
add eax, 0x4f4e6d3c
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xbcc6e33c
add dword [ebp - 0x2c], 0x918b620f
mov dword [ebp - 0x28], 0x4ddec9a9
add dword [ebp - 0x28], 0xe454829c
mov dword [ebp - 0x24], 0xded98de2
add dword [ebp - 0x24], 0x6d72b64c
mov dword [ebp - 0x20], 0x9c252a21
add dword [ebp - 0x20], 0x63dad5df
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x4227e20
sub dword [ebp - 0x2c], 0x8fb014ca
mov dword [ebp - 0x28], 0xc277f2e9
add dword [ebp - 0x28], 0x7ef46e8c
mov dword [ebp - 0x24], 0xe1c7e51f
sub dword [ebp - 0x24], 0x7e5878b3
mov dword [ebp - 0x20], 0xd436681
sub dword [ebp - 0x20], 0xd436681
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc17a1685
add eax, 0x6988ea0b
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x462d1
push 0
call eax
mov ecx, 0x5720141
add ecx, 0xfa8e5371
xor edx, edx
add edx, eax
mov ebx, 0x2b04ae00
add ebx, dword [ebp - 0x1c]
mov esi, 0xbccf21ab
sub esi, 0xf796b7cb
sub dword [ebp - 0x18], 0xae4b6866
mov edi, dword [ebx]
sub dword [ebp - 0x10], ecx
add edi, esi
xor dword [ebp - 0xc], 0xfbb0c1ac
mov dword [edx], edi
xor dword [ebp - 8], edi
add edx, 4
add ebx, 4
loop 0x2b00334e
add eax, 0x1459b
mov ebx, eax
add eax, 5
mov ecx, 0x9c6c5d67
sub ecx, 0x716c5d67
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x2b004abc
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x2b004ae4
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x2b004ae2
mov ecx, esi
pop esi
jmp fcn.2b004af5
pop esi
ret
Function at 0x4e9ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
call fcn.00409c2c
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov esi, eax
call edi
mov ebx, dword [esp + 0x10]
mov dword [0x503050], esi
call fcn.00409c2c
mov esi, eax
call edi
mov ecx, dword [0x503050]
mov eax, dword [ebx]
sub esi, ecx
jo 0x4e9edb
cmp esi, eax
jl 0x4e9ebc
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4e9ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00409c2c
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov esi, eax
call edi
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVBVM60.DLL_rtcDoEvents]
mov dword [0x503050], esi
call ebp
call fcn.00409c2c
mov esi, eax
call edi
mov ecx, dword [0x503050]
mov eax, dword [ebx]
sub esi, ecx
jo 0x4e9f35
cmp esi, eax
jl 0x4e9f13
pop edi
pop esi
pop ebp
pop ebx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
Function at 0x4ec270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
fld dword [0x5030a8]
fadd dword [0x401314]
sub esp, 8
fstp dword [0x5030a8]
fnstsw ax
test al, 0xd
jne 0x4ec335
fld dword [0x5030a8]
fcomp dword [0x401310]
fnstsw ax
test ah, 0x41
jne 0x4ec2ac
mov dword [0x5030a8], 0
mov ax, word [0x5030b0]
test ax, ax
jle 0x4ec2c3
sub ax, 1
jo 0x4ec33a
mov word [0x5030b0], ax
mov ecx, dword [0x503178]
mov dl, byte [ecx + 0x9c]
test dl, dl
jne 0x4ec317
push 0x5030a8
call fcn.004f8960
mov dx, 0x53
sub dx, word [0x5030b0]
fstp dword [esp + 4]
jo 0x4ec33a
movsx eax, dx
mov dword [esp], eax
fild dword [esp]
fstp dword [esp]
fld dword [esp + 4]
fadd st(0), st(0)
fadd dword [esp]
fstp dword [0x5030a4]
fnstsw ax
test al, 0xd
jne 0x4ec335
add esp, 8
ret
mov cx, 0x53
sub cx, ax
jo 0x4ec33a
movsx edx, cx
mov dword [esp + 4], edx
fild dword [esp + 4]
fstp dword [0x5030a4]
add esp, 8
ret
jmp 0x40168c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
Function at 0x4f8f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401428
xor ebx, ebx
mov dword [ebp - 0x20], ebx
call fcn.00409c2c
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov esi, eax
call edi
sub esi, dword [0x503054]
jo 0x4f9204
cmp esi, 0x32
jle 0x4f91db
call fcn.00409c2c
mov esi, eax
call edi
mov al, byte [0x50311c]
mov cx, word [0x50311a]
cmp al, bl
mov dword [0x503054], esi
jne 0x4f8fd2
add cx, 1
jo 0x4f9204
mov word [0x50311a], cx
cmp al, bl
jne 0x4f8ff7
cmp cx, 4
jne 0x4f8ff7
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov ecx, 1
call esi
mov cx, word [0x50311a]
mov byte [0x50311c], al
jmp 0x4f8ffd
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
cmp al, 1
jne 0x4f902f
sub cx, 1
jo 0x4f9204
cmp al, al
mov word [0x50311a], cx
jne 0x4f902f
cmp cx, 0xffff
jne 0x4f902f
mov ecx, 2
call esi
mov cx, word [0x50311a]
mov byte [0x50311c], al
cmp al, 2
jne 0x4f9061
add cx, 1
jo 0x4f9204
cmp al, al
mov word [0x50311a], cx
jne 0x4f9061
cmp cx, 6
jne 0x4f9061
mov ecx, 3
call esi
mov cx, word [0x50311a]
mov byte [0x50311c], al
cmp al, 3
jne 0x4f9093
sub cx, 1
jo 0x4f9204
cmp al, al
mov word [0x50311a], cx
jne 0x4f9093
cmp cx, 0xffff
jne 0x4f9093
mov ecx, 4
call esi
mov cx, word [0x50311a]
mov byte [0x50311c], al
cmp al, 4
jne 0x4f90d2
cmp cx, 8
jge 0x4f90ae
add cx, 1
jo 0x4f9204
mov word [0x50311a], cx
cmp al, 4
jne 0x4f90d2
cmp cx, 8
jne 0x4f90d2
mov dx, word [0x50311e]
add dx, 1
jo 0x4f9204
mov word [0x50311e], dx
jmp 0x4f90d9
mov dx, word [0x50311e]
cmp al, 5
je 0x4f910c
cmp dx, 0x30
jne 0x4f9104
mov ecx, 5
mov word [0x50311e], bx
call esi
mov cx, word [0x50311a]
mov dx, word [0x50311e]
mov byte [0x50311c], al
cmp al, 5
jne 0x4f91db
cmp cx, bx
jle 0x4f9122
sub cx, 1
jo 0x4f9204
mov word [0x50311a], cx
cmp al, 5
jne 0x4f91db
cmp cx, bx
jne 0x4f9140
add dx, 1
jo 0x4f9204
mov word [0x50311e], dx
cmp al, 5
jne 0x4f91db
cmp dx, word [0x503120]
jne 0x4f91db
xor ecx, ecx
call esi
mov byte [0x50311c], al
mov word [0x50311a], bx
mov word [0x50311e], bx
call fcn.00409c2c
mov esi, eax
call edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 0x20], 3
call dword [sym.imp.MSVBVM60.DLL_rtcRandomize]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0x80020004
push ecx
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x401420]
fnstsw ax
test al, 0xd
jne 0x4f91ff
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fadd dword [0x4012c4]
fnstsw ax
test al, 0xd
jne 0x4f91ff
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
lea ecx, [ebp - 0x20]
mov word [0x503120], ax
call esi
wait
push 0x4f91ee
jmp 0x4f91ed
ret
jmp 0x40168c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
Function at 0x401624
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x806724]
cmp eax, 7
jle 0x40166c
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], 1
mov dword [esp], str.Too_many_merges
call sym._fwrite
mov eax, 0xffffffff
jmp 0x40181d
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strdup
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401696
mov dword [esp], str.strdup
call sym._perror
mov eax, 0xffffffff
jmp 0x40181d
mov dword [esp + 4], 0x3a
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4016ea
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Invalid__mbin_argument_n
call sym._fwrite
mov eax, 0xffffffff
jmp 0x40181d
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
add dword [ebp - 0x10], 1
lea eax, [ebp - 0x20]
add eax, 0xc
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
add eax, 8
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str._i:_i:_i
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._sscanf
cmp eax, 3
je 0x401773
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Missing__mbin_argument_n
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0xffffffff
jmp 0x40181d
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
imul eax, edx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
imul eax, edx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
imul eax, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, edx
cmp eax, 0x3fffff
jbe 0x4017e6
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Merge_exceeds_max_ROM_size_n
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0xffffffff
jmp 0x40181d
mov eax, dword [0x806724]
shl eax, 4
lea edx, [eax + 0x806740]
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, dword [0x806724]
add eax, 1
mov dword [0x806724], eax
mov eax, 0
leave
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40639c]
test esi, esi
jle 0x402c80
mov eax, dword [0x4063a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402bb0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402c2f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402ba0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402ca7
mov eax, dword [0x4063a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4063a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402c87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402c28
sub eax, 4
and eax, 0xfffffffb
jne 0x402c36
add dword [0x40639c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4063a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x402bba
mov eax, dword [0x4063a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x403160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x4031b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4031ae
test esi, esi
je 0x4031ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403190
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x427eb0
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0xdbb0d44f
push 0x29
aam 0xb0
fld xword [edx + 0x29]
mov esp, 0xdb2ec74f
push 0x29
mov esp, 0x5cd5c74f
push 0x29
mov esp, 0x53d5c74f
in eax, dx
sub byte [edi + ecx*2 + 0x5c53d5c7], bh
lodsd eax, dword [esi]
mov ebx, 0x53d5c74f
pop esp
inc edx
cmp eax, 0x53d5c74f
pop esp
inc edx
jge 0x427eae
invalid

Function at 0x4295c0
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0x5b
push 0xffffffffffffffca
sar dword [ecx + 0x38], 1
sub ah, ah
imul ecx, edx, 0x283879d1
or esi, ebp
leave
sar dword [ecx + 0x38], 1
sub byte [ebx], cl
rcl dword [ecx + edx*8 + 0x79], cl
cmp byte [eax], ch
or edx, ebx
lea ebx, [ebp + 0x79]
cmp byte [eax], ch
or edx, ebx
invalid
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 0xffffff90
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219