joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f390
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5d88a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40f3b4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40f402
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x5dadf4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40f430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5d88a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5d88a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40f49e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40f49e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40f4a0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5d88a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x417390
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4173b0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4173b0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4173b0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4338f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5dabd8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x433977
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x43396b
mov dword [0x5dabd8], 2
add esp, 0xa8
ret
mov dword [0x5dabd8], 1
jmp 0x43397c
cmp eax, 2
je 0x4339c8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x4339aa
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x4339c8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x441320
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x441369
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x441369
lea eax, [esp]
push eax
call dword [0x5d88b0]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x4461b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x446343
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44632d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4461ff
lea ebx, [eax + 0xe]
jmp 0x44620b
cmp eax, 0x17
jne 0x4462ba
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4462ba
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4462ba
cmp eax, ebx
jb 0x4462ba
push 0x20
call dword [0x5d88a4]
mov esi, eax
add esp, 4
test esi, esi
je 0x446322
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x5d88a4]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x446311
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4462a5
push eax
call dword [0x5d88b0]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4462f7
test ebp, ebp
jne 0x4462ab
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4462b6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4461f2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4462d9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x446329
push ebp
call fcn.00446170
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x5d88a8]
push esi
call dword [0x5d88a8]
add esp, 8
jmp 0x4462c9
push esi
mov ebx, 8
call dword [0x5d88a8]
add esp, 4
jmp 0x4462c9
mov ebx, 8
jmp 0x4462c9
test ebp, ebp
jne 0x446339
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x446790
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00446740
mov al, 1
ret
Function at 0x44c1eb
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x5dac34
cmp dword [0x5dac30], edi
jne 0x44c21a
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5dac30], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5dac2c]
test esi, esi
je 0x44c275
test edi, edi
jne 0x44c3bc
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x44c24b
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x44c23c
jmp 0x44c267
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x44c22b
test edi, edi
jne 0x44c3bc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44c3bc
mov esi, dword [0x5dac2c]
jmp 0x44c2b6
cmp dword [esi + 0xc], 0x3f
jl 0x44c357
mov esi, dword [esi]
test esi, esi
jne 0x44c2aa
push 0x310
push 8
push dword [0x5da350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x44c3b6
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x44c3a8
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x44c3cf
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44c3a3
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0044c194
mov eax, dword [0x5dac2c]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x44c34f
mov dword [eax + 4], esi
mov dword [0x5dac2c], esi
jmp 0x44c3bc
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44c3bc
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x5da350]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x5dac34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x499f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
push edi
or ebp, 0xffffffff
jmp 0x499f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x499f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x499f48
mov eax, 1
add ebx, ebx
jne 0x499f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x499f60
jne 0x499f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x499f60
xor ecx, ecx
sub eax, 3
jb 0x499f90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49a002
mov ebp, eax
add ebx, ebx
jne 0x499f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x499fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x499fcc
inc ecx
add ebx, ebx
jne 0x499fb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x499fad
jne 0x499fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x499fad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x499fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x499fdd
jmp 0x499f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x499fec
add edi, ecx
jmp 0x499f4e
pop esi
mov edi, esi
mov ecx, 0xa6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49a00a
cmp byte [edi], 3
jne 0x49a00a
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 0x49a00f
lea edi, [esi + 0x97000]
mov eax, dword [edi]
or eax, eax
je 0x49a07e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9b274]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9b368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49a03c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9b370]
or eax, eax
je 0x49a078
mov dword [ebx], eax
add ebx, 4
jmp 0x49a059
call dword [esi + 0x9b36c]
mov ebp, dword [esi + 0x9b374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x49a0b2
sub esp, 0xffffff80
jmp 0x405000
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x17615f5b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x3f2a2744
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4282c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xf8]
push eax
push 0xf1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [ebp - 0xf8]
mov byte [esi], al
movsx eax, al
sub eax, 0x40
mov dword [edi], eax
lea eax, [ebp - 0xf8]
push eax
push 0x41d1f0
push ebx
call fcn.00401340
push dword [ebp - 0xfc]
push dword [ebp - 0x100]
push str._sSDIR_s_
push dword [ebp - 0x104]
call fcn.00401340
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404c52
mov esp, ebp
pop ebp
ret

Function at 0x401380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x4282c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x41d204
push str.PDFFONT
call fcn.0040a6af
mov esi, eax
add esp, 8
test esi, esi
je 0x401481
push esi
push 1
lea eax, [ebp - 0x898]
push 4
push eax
call fcn.0040a89f
push esi
push 1
lea eax, [ebp - 0x89c]
push 4
push eax
call fcn.0040a89f
push esi
call fcn.0040a5c8
mov eax, dword [ebp - 0x898]
add esp, 0x24
test eax, eax
je 0x401481
push eax
lea eax, [ebp - 0x94]
push str._pfs_i
push eax
call fcn.00401340
push dword [ebp - 0x89c]
lea eax, [ebp - 0x34]
push str._plm_i
push eax
call fcn.00401340
push edi
push ebx
lea eax, [ebp - 0x894]
push str._s_s.txt
push eax
call fcn.00401340
push edi
push ebx
lea eax, [ebp - 0x494]
push str._s_s.pdf
push eax
call fcn.00401340
lea eax, [ebp - 0x64]
push str._pfn200
push eax
call fcn.00401340
add esp, 0x40
lea eax, [ebp - 0x34]
push 0
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x894]
push eax
push str.TxtToPDF.EXE
push str.TxtToPDF.EXE
push 0
call fcn.0040ca5d
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c52
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x4282c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push edi
push str._sLASTD
push esi
mov dword [ebp - 0x100], eax
call fcn.00401340
push 0x41d250
push esi
call fcn.0040a6af
add esp, 0x14
test eax, eax
je 0x401751
push eax
call fcn.0040a5c8
push 0x41d204
push esi
call fcn.0040a6af
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x401740
push ebx
push 1
lea eax, [ebp - 0xfc]
push 2
push eax
call fcn.0040a89f
push ebx
call fcn.0040a5c8
add esp, 0x14
cmp word [ebp + 0x14], 1
jne 0x401717
inc word [ebp - 0xfc]
push edi
push str._sLASTD
push esi
call fcn.00401340
push 0x41d290
push esi
call fcn.0040a6af
mov ebx, eax
lea eax, [ebp - 0xfc]
push ebx
push 1
push 2
push eax
call fcn.0040aff0
add esp, 0x24
test ebx, ebx
je 0x401717
push ebx
call fcn.0040a5c8
add esp, 4
movsx eax, word [ebp - 0xfc]
mov ebx, dword [ebp - 0x100]
push eax
push 0x41d294
push ebx
call fcn.00401340
push ebx
push edi
push str._s_s.TXT
push esi
call fcn.00401340
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c52
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xf8]
push str._Der_File__s_existiert_nicht
push eax
call fcn.00401340
add esp, 0xc
lea eax, [ebp - 0xf8]
push 0
push str.PROGRAMM_SUPERG.EXE
push eax
mov eax, dword [0x49fe40]
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0040ad15
int3
Function at 0x4048a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0
push 0xe
push 0x20
push str.IN_SUPERG2.C
call fcn.00401520
mov byte [0x428c22], 0
call fcn.00402150
push str.SUPCOUNT
push 0x483d20
push str._s_s
push 0x484220
call fcn.00401340
push 0x41d204
push 0x484220
call fcn.0040a6af
add esp, 0x28
mov dword [0x4a2270], eax
test eax, eax
je 0x40490d
push eax
push 1
push 2
push 0x49fe16
call fcn.0040a89f
push dword [0x4a2270]
call fcn.0040a5c8
add esp, 0x14
jmp fcn.004032c0

Function at 0x404970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
mov edi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x404b30
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x42827c
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x404b0d
lea ecx, [ebp + 8]
push ecx
push 0x435340
push eax
call fcn.00401000
push 0x435431
push 0x41d200
push 0x484120
call fcn.00401340
push 0x435522
push 0x41d200
push 0x483a20
call fcn.00401340
push 0x41d204
push str.D:TRACEFHTEST
call fcn.0040a6af
add esp, 0x2c
test eax, eax
je 0x404a5d
push eax
mov byte [0x4a2269], 1
call fcn.0040a5c8
add esp, 4
jmp 0x404a64
mov byte [0x4a2269], 0
push ebx
push 0x41e068
push 0x41d200
push 0x484420
call fcn.00401340
add esp, 0xc
push 0
push edi
push 0
push 0
push dword [0x428278]
push dword [0x428274]
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x41e068
push 0x42827c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x404b01
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x404ae5
mov eax, dword [ebp - 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Fehlende_Eingabe
push str.Kommandozeile_leer
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405479
Capabilities:
Parse pe header

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

Function at 0x40ee12
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fd54
push 0x41fd4c
push str.FlsAlloc
push 0x1f
call fcn.0040ec91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ee46
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d19c]
call esi
jmp 0x40ee4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ee90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fd64
push 0x41fd5c
push str.FlsGetValue
push 0x21
call fcn.0040ec91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eec7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40eecf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fd6c
push 0x41fd64
push str.FlsSetValue
push 0x22
call fcn.0040ec91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef09
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fac3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x434e78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40fb03
cmp byte [ebx], 0xa
jne 0x40fb03
or byte [edi + eax + 0x28], 4
jmp 0x40fb08
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40fc07
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40fbea
inc eax
cmp dl, 0xd
je 0x40fb34
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40fb5a
cmp eax, ecx
jae 0x40fb68
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40fb1c
jmp 0x40fc07
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fbe5
cmp dword [ebp - 0x10], 0
je 0x40fbe5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434e78]
test byte [eax + edi + 0x28], 0x48
je 0x40fbbf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40fbaa
mov byte [esi], dl
jmp 0x40fbbb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434e78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40fc07
cmp byte [ebp - 1], 0xa
jne 0x40fbce
cmp esi, ebx
jne 0x40fbce
mov byte [esi], 0xa
jmp 0x40fc06
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418434
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40fc07
mov byte [esi], 0xd
jmp 0x40fc06
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40fc04
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40fc07
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret