joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d810
Capabilities:
Parse pe header

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

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x404b60
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x409640
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404b84
add eax, 8
inc ebp
cmp eax, 0x4096d0
jb 0x404b75
cmp ecx, dword [ebp*8 + 0x409640]
jne 0x404d2b
mov eax, dword [0x40dd48]
cmp eax, 1
je 0x404ced
test eax, eax
jne 0x404bb0
cmp dword [0x409494], 1
je 0x404ced
cmp ecx, 0xfc
je 0x404d2b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404beb
mov ecx, 5
mov esi, 0x4015d4
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404c34
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4015d0
add ebx, ecx
push ebx
call fcn.00407060
add esp, 0xc
mov ecx, 6
mov esi, 0x4015b4
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4015b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x401588
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x409644]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00406fd0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f060]
test eax, eax
je 0x404cfe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404d08
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x409644]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x406380
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f160]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40652d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f060]
lea edi, [ecx*4 + 0x40f060]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40652d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4063ee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4063ff
push 2
push ebp
push eax
call fcn.00406000
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40655e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4064a9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40645a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x406447
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40642a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40654f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4064a5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x406426
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40651e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4064f2
cmp eax, 5
jne 0x4064db
mov dword [0x40dd50], eax
mov dword [0x40dd4c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00407660
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x406512
cmp byte [ebp], 0x1a
jne 0x406512
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dd4c], 0x1c
jmp 0x406537
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40dd4c], 9
pop edi
pop esi
pop ebp
mov dword [0x40dd50], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4064a5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40658f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4064a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4064a9
Function at 0x407f10
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00402e20
mov eax, dword [0x40f160]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x408072
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40f060]
test byte [edx + ecx*8 + 4], 1
je 0x408072
push 1
push ebp
push ebx
call fcn.00406000
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40807c
push 2
push ebp
push ebx
call fcn.00406000
add esp, 0xc
cmp eax, 0xffffffff
je 0x40807c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x408018
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00408090
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x407fbf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406380
add esp, 0xc
cmp eax, 0xffffffff
je 0x407fdb
sub esi, eax
test esi, esi
jle 0x407ff1
jmp 0x407fb0
cmp dword [0x40dd50], 5
jne 0x407fee
mov dword [0x40dd4c], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00408090
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00406000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x408059
push 0
push ecx
push ebx
call fcn.00406000
add esp, 0xc
push ebx
call fcn.004078e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x408059
mov dword [0x40dd4c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40dd50], eax
push 0
push edi
push ebx
call fcn.00406000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x40dd4c], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00406dc2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00406dc2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00406dc2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00406dc2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00406dc2
mov dword [0x41203c], eax
call fcn.00406dc2
test eax, eax
jge 0x402550
push 8
call fcn.00406dc2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00406dc2
pop ecx
push 1
call fcn.00406dc2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00406dc2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00406dc2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00406dc2
jmp 0x402495

Function at 0x406dc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x406dd1
pop dword [ebp - 0x2c]
mov eax, 0x46f03dcf
add eax, 0xb9503002
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x39109
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4714
xor edi, edi
add edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x2c]
mov edx, 0x1f296354
sub edx, 0x2933d458
xor dword [ebp - 8], 0xcf51bf9a
mov esi, dword [ebx]
add dword [ebp - 0x10], edi
sub esi, edx
sub dword [ebp - 0x18], edi
mov dword [edi], esi
add dword [ebp - 0x20], edi
add edi, 0x6e58310f
sub edi, 0x6e58310b
add ebx, 0xdc23b281
add ebx, 0x23dc4d83
loop 0x406e21
add eax, 0x901b594a
sub eax, 0x901a4a27
mov ebx, eax
add eax, 0xc1306a9b
sub eax, 0xc1306a96
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x402380
Capabilities:
Accept command line arguments
Check for foreground window switch
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_AnimateWindow]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call esi
push 0x41655c
push 0x416568
mov edi, 0x41b0f4
mov ebx, 0x416560
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, eax
call fcn.004037f0
mov edx, edi
mov ecx, ebx
call fcn.00402e60
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0x41655c
push 0x416568
mov edi, 0x41b0f0
mov ebx, 0x41656c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push edx
mov ecx, eax
call fcn.004037f0
mov edx, edi
mov ecx, ebx
call fcn.00402e60
add esp, 0xc
push 0
push 0
call esi
mov eax, dword [0x41b0f4]
mov ecx, dword [0x41b0f0]
push eax
push ecx
push str.is_sbpEXg_s
mov edi, 0x41b0f8
call fcn.00405440
add esp, 0xc
push 0
push 0
call dword [sym.imp.USER32.dll_FlashWindow]
mov edx, dword [0x41b0f4]
cmp dword [edx - 0xc], 0
jne 0x40246a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x402480
push 0
push 0
mov byte [0x41b060], 1
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [0x41b09c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [0x41b09c]
mov dword [ecx + 4], ecx
mov ecx, dword [0x41b09c]
mov dword [0x41b0a0], 0
cmp eax, ecx
je 0x4024cf
mov edi, dword [eax]
push eax
call fcn.004062a0
mov ecx, dword [0x41b09c]
add esp, 4
mov eax, edi
cmp edi, ecx
jne 0x4024b8
mov eax, dword [0x41b0a8]
mov dword [esp + 0xc], ecx
cmp eax, dword [0x41b0ac]
je 0x4024e5
mov dword [0x41b0ac], eax
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, 0x10
mov edx, 0x41b0a8
call fcn.004051f0
push 0
mov dword [0x41b0b8], 7
mov dword [0x41b0bc], 8
call ebx
push 0
push 0x402d80
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
call esi
call fcn.00402560
call esi
push 0
mov byte [0x41b060], 0
call dword [sym.imp.USER32.dll_GetParent]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402480
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x4079d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x4079e8
pop dword [ebp - 4]
mov eax, 0x4c9223b0
sub eax, 0x4c51a9c8
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x371f6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x3e43
xor edx, edx
add edx, eax
mov edi, 0x506cc001
add edi, 0xafd47bc3
add edi, dword [ebp - 4]
mov esi, 0xc5b41a31
mov ebx, dword [edi]
xor ebx, esi
mov dword [edx], ebx
add edx, 4
add edi, 0xb92c55b7
sub edi, 0xb92c55b3
loop 0x407a38
add eax, 0x2cd66944
sub eax, 0x2cd57d65
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf8]
push eax
push 0xf1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp + edx - 0xf8]
mov byte [eax], cl
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0xf8]
sub ecx, 0x40
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea eax, [ebp - 0xf8]
push eax
push 0x426458
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401a20
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str._sSDIR_s_
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00401a20
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408977
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], 0x401fb0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x44], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x40], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x429900
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x401e5c
lea eax, [ebp - 8]
push eax
push 0x42a3e8
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401bd0
add esp, 0xc
mov edx, 0xf1
shl edx, 0
add edx, 0x42a3e8
push edx
push 0x426688
push 0x42cc50
call fcn.00401a20
add esp, 0xc
mov eax, 0xf1
shl eax, 1
add eax, 0x42a3e8
push eax
push 0x42668c
push 0x42aa80
call fcn.00401a20
add esp, 0xc
jmp 0x401e77
push 0
push str.Fehlende_Eingabe
push str.Eine_Kommandozeile_fehlt_in_SUMZ.EXE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401f58
push 0x4266cc
push str.D:P3TFHTEST
call fcn.0040e274
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401e98
mov byte [ebp - 1], 1
jmp 0x401e9c
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [0x42a3e4], cl
cmp dword [ebp - 0xc], 0
je 0x401eb9
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040e3b0
add esp, 4
jmp 0x401ec0
mov byte [0x42a3e4], 0
push 0x4266e0
push 0x4266ec
push 0x42cd48
call fcn.00401a20
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x429908]
push ecx
mov edx, dword [0x42990c]
push edx
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Summe_LF_GZG_ZII
push 0x429900
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401f55
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401f2b
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4092b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4092f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4092f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4092f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4092f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4092f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4123be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420d24
push 0x420d1c
push str.FlsAlloc
push 0x1f
call fcn.0041229a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4123f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f180]
call esi
jmp 0x4123f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41243c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420d34
push 0x420d2c
push str.FlsGetValue
push 0x21
call fcn.0041229a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412473
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41247b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420d3c
push 0x420d34
push str.FlsSetValue
push 0x22
call fcn.0041229a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4124b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f180]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413b88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041e250
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004116b7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413bca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413d26
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e060
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x429f30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004137a0
mov ecx, dword [esi*4 + 0x429f30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x413d1f
cmp eax, dword [ecx + edi + 0x24]
jne 0x413d1f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413d1f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004137a0
add esp, 0x14
test edx, edx
jl 0x413d1f
jg 0x413c95
test eax, eax
jb 0x413d1f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413d1f
jl 0x413caf
cmp dword [ebp - 0x1008], eax
ja 0x413d1f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413ccd
test ebx, ebx
je 0x413d06
cmp ecx, edi
jae 0x413d06
mov al, byte [ecx]
cmp al, 0xd
jne 0x413ce7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413cf3
cmp byte [ecx + 1], 0xa
jne 0x413cf3
inc ecx
jmp 0x413cf3
movzx eax, al
movsx eax, byte [eax + 0x429250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413ccd
cmp edx, ebx
jne 0x413ccd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413d24
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408977
leave
ret