joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Get hostname
Get networking interfaces
Identify system language via api
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x408020
push 0x408088
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetVersionExA
push 0x408078
jmp loc.004127a9

Function at 0x401940
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
jmp loc.0041210c

Function at 0x401bc2
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xf
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
lea edi, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, ebx
xor eax, eax
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp + 0xe]
push eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
cmp ebx, 1
pop ecx
jb 0x401c5f
jmp loc.00410688
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c64
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x408164
push 0x408180
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x408188
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
cmp dword [0x408464], 0
mov dword [ebp - 8], eax
jmp loc.00411e31

Function at 0x401cd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4087d8
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
mov ebx, 0x4084ec
test eax, eax
jmp loc.00411b74

Function at 0x401e67
Capabilities:
Packed with generic packer
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne fcn.00401eb8
push eax
lea ecx, [ebp + 0xc]
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push 0x98000004
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2bf20
mov dword [ebp - 4], 0x2710
jmp loc.00410f53
Function at 0x402217
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x408144
push str.GetShortPathNameA
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetEnvironmentVariableA
push ebx
mov dword [ebp - 0x2c], eax
call esi
push eax
call edi
push 0x408304
push ebx
mov dword [ebp - 0x30], eax
call esi
push eax
call edi
push 0x4081e0
push ebx
jmp loc.00410c36

Function at 0x402446
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x40245f
push 1
pop eax
jmp fcn.004024d4
mov eax, dword [0x409498]
push 0
mov dword [ebp - 0x100], eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x104], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4024cd
test eax, eax
je 0x40245f
jmp loc.004126a6
xor eax, eax
jmp loc.00410312

Function at 0x402c2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp loc.004109ce

Function at 0x402ca7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x408144
push str.WinExec
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetWindowsDirectoryA
push ebx
mov dword [ebp - 0x1c], eax
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push str.CopyFileA
push ebx
mov dword [ebp - 0x24], eax
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
mov esi, 0x104
lea eax, [ebp - 0x2b8]
push esi
push eax
push 0
call dword [ebp - 0x24]
jmp loc.00411cda
Function at 0x403061
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegCloseKey
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegOpenKeyExA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push 0x40
mov dword [ebp - 0x30], eax
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x24], 0x53
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
jmp loc.004121c6

Function at 0x4031c0
Capabilities:
Contain obfuscated stackstrings
Delete registry key
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407160
push 0x403ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
push ebx
push esi
push edi
push str.RegCloseKey
mov ebx, str.ADVAPI32.dll
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x260], eax
push str.OpenSCManagerA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x280], eax
push str.OpenServiceA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x258], eax
jmp loc.004126ec

Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
jmp loc.00410477

Function at 0x403a90
Capabilities:
Packed with generic packer

Disassembly:
cmp cl, 0x40
jae 0x403aaa
cmp cl, 0x20
jae 0x403aa0
jmp loc.00412e3a
mov eax, edx
xor edx, edx
and cl, 0x1f
shr eax, cl
ret
xor eax, eax
xor edx, edx
ret

Function at 0x403ac6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407170
push 0x403ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
jmp loc.00410cb8
Function at 0x403ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemDirectoryA
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.lstrcatA
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.lstrcpyA
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x40]
push 0x104
push eax
call ebx
mov al, 0x65
mov dl, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], dl
mov byte [esp + 0x2e], al
mov byte [esp + 0x32], al
mov byte [esp + 0x38], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3c], al
mov cl, 0x72
mov bl, 0x6c
mov dl, 0x78
xor al, al
mov byte [esp + 0x10], 0x5c
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0x6f
mov byte [esp + 0x14], 0x67
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0x49
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x27], 0x20
mov byte [esp + 0x28], 0x45
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], 0x5c
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x70
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], cl
mov byte [esp + 0x39], 0x2e
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3d], al
mov byte [esp + 0x42], al
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x148]
lea eax, [esp + 0x40]
push eax
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret

Function at 0x405710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40572e
or eax, eax
pop esi
add esp, 0x10
ret
jmp loc.004131b1

Function at 0x41072a
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
xor al, 0
pop edi
push ebx
dec edi
pop edi
dec edi
aas
dec ecx
and al, 0
add al, 0
popal
popfd
push edx
mov edx, dword [esp + 0x14]
jmp loc.004044ed

Function at 0x41105c
Capabilities:
Encode data using xor

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050c0
push 0x404740
push eax
push ebx
push edi
push 1
pop ecx
mov ecx, dword [0x4073a8]
mov ecx, dword [0x4073a4]
add esp, 0x18
leave
popal
popfd
push ecx
mov ecx, dword [esp + 8]
jmp loc.004018f5
Function at 0x40b490
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273d4]
jne 0x40b49a
repz ret
jmp fcn.0041168c

Function at 0x41733c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4273d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e43f
and dword [ebp - 0x14], 0
cmp dword [0x45eeac], 0
mov dword [ebp - 0x18], eax
jne 0x4173ef
push 0x4037fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417497
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f0
push ebx
call edi
test eax, eax
je 0x417497
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037e0
push ebx
mov dword [0x45eeac], eax
call edi
push eax
call esi
push 0x4037cc
push ebx
mov dword [0x45eeb0], eax
call edi
push eax
call esi
push 0x4037b0
push ebx
mov dword [0x45eeb4], eax
call edi
push eax
call esi
mov dword [0x45eebc], eax
test eax, eax
je 0x4173ef
push 0x403798
push ebx
call edi
push eax
call esi
mov dword [0x45eeb8], eax
mov eax, dword [0x45eeb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417448
cmp dword [0x45eebc], ecx
je 0x417448
push eax
call esi
push dword [0x45eebc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417448
test ebx, ebx
je 0x417448
call edi
test eax, eax
je 0x41743f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41743f
test byte [ebp - 8], 1
jne 0x417448
or dword [ebp + 0x10], 0x200000
jmp 0x41747b
mov eax, dword [0x45eeb0]
cmp eax, dword [ebp - 0x18]
je 0x41747b
push eax
call esi
test eax, eax
je 0x41747b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41747b
mov eax, dword [0x45eeb4]
cmp eax, dword [ebp - 0x18]
je 0x41747b
push eax
call esi
test eax, eax
je 0x41747b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45eeac]
call esi
test eax, eax
je 0x417497
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417499
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b490
leave
ret
Function at 0x41f650
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041e800
cmp dword [0x7ffc30], 0x37
jne 0x41f6e1
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x40442c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404438
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7ffc34]
mov edx, dword [0x7fc0a0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44452c]
and al, 0xfe
mov dword [0x44452c], eax
mov dword [0x4899d4], 0x443780
push str.OPTWKDIR
call fcn.0041d2b6
add esp, 4
mov dword [0x4899d4], eax
cmp dword [0x4899d4], 0
je 0x401049
mov ecx, dword [0x44452c]
or ecx, 1
mov dword [0x44452c], ecx
jmp 0x4011f3
push 0
push 0x426078
call fcn.0041d272
add esp, 8
mov word [0x42f136], ax
movsx edx, word [0x42f136]
test edx, edx
je 0x40106e
jmp 0x4011f3
push 0x426080
push str.WOS.INI
call fcn.0041d25f
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010a1
push 0
push str.__3__
push str._WOS.INI_konnte_nicht_eroeffnet_werden
mov eax, dword [0x43e130]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
push ecx
push 0x80
push 0x44cf60
call fcn.0041d1e8
add esp, 0xc
test eax, eax
je 0x401138
push 0xa
push str.OptWkDir:
push 0x44cf60
call fcn.0041d1b0
add esp, 0xc
test eax, eax
jne 0x401133
push 0x44cf6a
push 0x443780
call fcn.0041d0c0
add esp, 8
mov word [0x42f134], 0
jmp 0x401102
mov dx, word [0x42f134]
add dx, 1
mov word [0x42f134], dx
movsx eax, word [0x42f134]
cmp eax, 0x3c
jg 0x401131
movsx ecx, word [0x42f134]
movsx edx, byte [ecx + 0x443780]
cmp edx, 0xa
jne 0x40112f
movsx eax, word [0x42f134]
mov byte [eax + 0x443780], 0
jmp 0x4010f0
jmp 0x401138
jmp 0x4010a1
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041d05d
add esp, 4
push 0x44cf60
push 0x41
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov word [0x42f134], 0x1e
jmp 0x40116e
mov dx, word [0x42f134]
sub dx, 1
mov word [0x42f134], dx
movsx eax, word [0x42f134]
cmp eax, 1
jl 0x4011a5
movsx ecx, word [0x42f134]
movsx edx, byte [ecx + 0x44cf60]
cmp edx, 0x20
je 0x40119f
movsx eax, word [0x42f134]
movsx ecx, byte [eax + 0x44cf60]
test ecx, ecx
jne 0x4011a1
jmp 0x4011a3
jmp 0x4011a5
jmp 0x40115c
mov dx, word [0x42f134]
add dx, 1
mov word [0x42f134], dx
movsx eax, word [0x42f134]
push eax
push 0x443780
push 0x44cf60
call fcn.0041d880
add esp, 0xc
mov word [0x42f136], ax
movsx ecx, word [0x42f136]
test ecx, ecx
jne 0x4011e4
jmp 0x4011f3
mov edx, dword [0x44452c]
or edx, 1
mov dword [0x44452c], edx
mov esp, ebp
pop ebp
ret
Function at 0x4011f7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [ebp + 0xc], 0
jne 0x40126a
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 0x401376
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push str.IDR_MENU1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], str.IDR_MENU1
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [ebp + 8]
mov dword [0x447824], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [0x43e094], ax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [0x43e096], ax
mov cx, word [0x43e094]
mov word [0x443e0c], cx
mov dx, word [0x43e096]
mov word [0x443a1e], dx
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
movsx ecx, word [0x43e096]
push ecx
movsx edx, word [0x43e094]
push edx
push 0
push 0
push 0x80000
push str.Verschnitt_Optimierung
push str.IDR_MENU1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x43e130], eax
call section..text
call fcn.004184a8
movsx eax, word [0x42f12e]
push eax
mov ecx, dword [0x43e130]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x43e130]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 0x10]
push eax
push 0x443aa0
call fcn.0041d0c0
add esp, 8
mov cl, byte [ebp + 0x14]
mov byte [0x44d175], cl
push 0
push 0xde
push 0x111
mov edx, dword [0x43e130]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40136d
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401343
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d272
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d292
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e6c2
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41d2b3
test byte [esp + 8], 2
je 0x41d2b3
mov dword [0x42780c], 0xd
mov dword [0x427810], 5
jmp 0x41d28e
xor eax, eax
ret

Function at 0x4209bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4272c0
cmp edx, dword [eax]
je 0x4209df
add eax, 8
inc ecx
cmp eax, 0x427350
jl 0x4209d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4272c0]
jne 0x420b0d
mov eax, dword [0x427860]
cmp eax, 1
je 0x420ae7
test eax, eax
jne 0x420a10
cmp dword [0x426be4], 1
je 0x420ae7
cmp edx, 0xfc
je 0x420b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d0c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425554
push edi
call fcn.0041dc70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d0c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d0d0
lea eax, [ebp - 0xa0]
push 0x425534
push eax
call fcn.0041d0d0
push dword [esi + 0x4272c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d0d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004235e1
add esp, 0x2c
pop edi
jmp 0x420b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x4272c4]
push 0
push eax
push dword [esi]
call fcn.0041d380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40604c], 1
mov dword [0x406050], 1
mov dword [0x406054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x4018ec
Capabilities:
Write file on windows

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

Function at 0x4024c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4024df
mov eax, 0
jmp 0x402523
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402502
mov eax, 0
jmp 0x402523
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40251e
mov eax, 0
jmp 0x402523
mov eax, 1
leave
ret
Function at 0x402525
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402584
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40257c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40257c
mov eax, dword [ebp - 4]
jmp 0x402598
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402559
mov eax, 0
leave
ret