joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40181e
Capabilities:
Create directory

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401842
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4018cb
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401834
push esi
push 0x41a80c
push ebx
call fcn.004052d0
mov dword [esp], 0x41a80c
lea esi, [eax + 1]
call fcn.004052d0
pop ecx
add eax, esi
push eax
push ebx
call fcn.0040525b
add esp, 0xc
push str.Applet
push ebx
call fcn.004052d0
mov dword [esp], str.Applet
lea esi, [eax + 1]
call fcn.004052d0
pop ecx
add eax, esi
push eax
push ebx
call fcn.0040525b
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
test eax, eax
jne 0x4018bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401834
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.004052d0
pop ecx
pop edi
pop ebx
ret

Function at 0x4018ce
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
push str.shell32.dll
mov word [edi], ax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401933
mov edx, eax
mov ecx, edi
call fcn.0040181e
test eax, eax
je 0x401933
cmp eax, 0x103
ja 0x401933
push esi
mov ecx, edi
call fcn.0040162f
pop ecx
test eax, eax
jne 0x401912
push 2
pop eax
jmp 0x401936
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40192f
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004011fb
pop ecx
push 3
jmp 0x40190f
xor eax, eax
jmp 0x401936
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret

Function at 0x401a6d
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push esi
mov esi, str.LMI_Rescue_srv.exe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a84
xor eax, eax
inc eax
pop esi
ret
push 0
push esi
push str.LMI_Rescue.exe
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
pop esi
sbb eax, eax
neg eax
ret
Function at 0x401daf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov esi, edx
mov word [ebp - 0x418], ax
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
cmp word [esi], bx
setne al
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401eb1
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.004052d0
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401eaa
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00404720
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push ebx
push esi
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00407ee9
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x41c]
add esp, 0x20
xor ebx, ebx
push ebx
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00407b10
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004038d5
mov esp, ebp
pop ebp
ret

Function at 0x401ec2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401ee3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ee3
xor eax, eax
inc eax
jmp 0x401f70
push 0xa
push 0x2711
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [0x41d2d0], eax
test eax, eax
je 0x401f01
call fcn.00401a9a
jmp 0x401f03
mov eax, edi
test eax, eax
je 0x401f70
mov ecx, dword [0x41d2dc]
mov eax, dword [0x41d2d8]
cmp ecx, 0x36
jb 0x401f5a
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401f5a
cmp dword [eax + 2], ecx
jne 0x401f5a
cmp dword [eax + 0xe], 0x28
je 0x401f38
cmp dword [eax + 0xe], 0x6c
je 0x401f38
cmp dword [eax + 0xe], 0x7c
jne 0x401f5a
cmp dword [eax + 0x12], 0x4e
jne 0x401f5a
cmp dword [eax + 0x16], 0x20
je 0x401f4a
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401f5a
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401b0b
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401ade
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401f73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401f91
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f91
xor eax, eax
inc eax
jmp 0x401fdb
push 0xa
push 0x2716
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [0x41d2d0], eax
test eax, eax
je 0x401faf
call fcn.00401a9a
jmp 0x401fb1
mov eax, edi
test eax, eax
je 0x401fd9
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401b0b
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401ade
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x403206
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [0x41d2fc]
mov ebx, eax
test ebx, ebx
jne 0x403236
inc eax
jmp 0x403360
push edi
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004052d0
pop ecx
mov ecx, eax
cmp ecx, 2
jle 0x4032b4
lea eax, [ecx + 2]
cmp eax, edi
jge 0x4032b4
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x210], ax
je 0x4032b4
cmp word [ebp + ecx*2 - 0x20e], ax
jne 0x4032b4
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x403370
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x41d760
lea eax, [ebp - 0x61c]
push eax
push str.__s___service__sid___s___wd___s_
lea eax, [ebp - 0xc34]
push 0x30c
push eax
call fcn.00401940
add esp, 0x18
push 0xf01ff
push 0x41d560
push ebx
call dword [0x41d2e4]
mov edi, eax
test edi, edi
jne 0x403329
push esi
push esi
push 0x41ae0c
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x41d360
push 0x41d560
push ebx
call dword [0x41d2f4]
mov edi, eax
test edi, edi
je 0x403356
push esi
push esi
push edi
call dword [0x41d2f0]
test eax, eax
jne 0x40334f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40334c
cmp eax, 0x420
je 0x40334f
push 4
jmp 0x40334e
push 3
pop esi
push edi
call dword [0x41d2e8]
push ebx
call dword [0x41d2e8]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004038d5
mov esp, ebp
pop ebp
ret
call fcn.00403a09
int3

Function at 0x4034d2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413ed0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.004051f7
lea eax, [ebp - 0x2004]
push eax
call fcn.004052d0
push 0x5c
lea edi, [ebp - 0x2004]
pop ebx
lea edi, [edi + eax*2]
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404928
add esp, 0x18
test eax, eax
je 0x403575
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404928
pop ecx
pop ecx
test eax, eax
jne 0x403529
push esi
jmp 0x40355a
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x403574
mov word [esi], bx
lea eax, [ebp - 0x2004]
push eax
call fcn.004052d0
lea esi, [ebp - 0x2004]
pop ecx
lea esi, [esi + eax*2]
cmp esi, edi
jne 0x403544
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004038d5
mov esp, ebp
pop ebp
ret
Function at 0x403585
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x4035ad
xor eax, eax
jmp 0x403601
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4035d1
push 0x52
jmp 0x4035ff
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035f6
cmp dword [ebp - 8], edi
jne 0x4035f6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004038d5
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareWildTangent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.InstallSemaphore_1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
leave
ret

Function at 0x4010df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareWildTangent
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401161
push edi
movzx edx, ax
push 7
pop ecx
mov eax, edx
shl edx, 0x10
or eax, edx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.InstallSemaphore_1
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
test eax, eax
jne 0x401161
lea eax, [ebp - 0x2c]
push eax
push str.Success
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x401161
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40116f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401194
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, 0xfa
jb 0x401175
pop esi
pop ebp
ret

Function at 0x401197
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
push dword [ebp + 8]
lea eax, [esp + 0x46c]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x402088
lea eax, [esp + 0x46c]
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401238
cmp word [esp + 0x3c], 0x2e
je 0x401228
push dword [ebp + 8]
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call edi
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x260]
push eax
je 0x401222
call fcn.00401197
jmp 0x401227
call fcn.0040116f
pop ecx
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011e8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40124f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401271
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x4012e6
Capabilities:
Accept command line arguments
Get common file path
Get program files directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push 1
push 0x26
lea eax, [ebp - 0x25c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40130e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x40208c
lea eax, [ebp - 0x25c]
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
pop ecx
test al, al
jne 0x401339
push 2
jmp 0x401308
push str.App_Update_
lea eax, [ebp - 0x25c]
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
lea eax, [ebp - 0x25c]
push eax
call fcn.0040124f
pop ecx
pop ecx
test al, al
jne 0x401369
push 3
jmp 0x401308
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4020cc
lea eax, [ebp - 0x54]
push 0x28
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call ebx
push str.patch_
lea eax, [ebp - 0x464]
push eax
call edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x464]
push eax
call edi
push 0x4020e4
lea eax, [ebp - 0x464]
push eax
call edi
lea eax, [ebp - 0x464]
push eax
call fcn.0040103d
pop ecx
test al, al
je 0x4014a4
push esi
push 0x4020fc
mov esi, section..data
push esi
call ebx
lea eax, [ebp - 0x464]
push eax
push esi
call edi
push 0x402100
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ebx, [eax + 2]
jmp 0x40140c
add ebx, 2
cmp ax, 0x22
je 0x401414
movzx eax, word [ebx]
test ax, ax
jne 0x401403
call fcn.004010b0
push ebx
push esi
call edi
push 1
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.00401275
add esp, 0xc
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str._park_
push esi
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x4014a3
push str._nolaunchapp
push esi
call ebx
test eax, eax
jne 0x4014a3
add dword [ebp - 4], 0xe
push 0x4020fc
push dword [ebp - 4]
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x4014a3
push dword [ebp - 4]
xor ecx, ecx
mov esi, 0x404f40
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
call fcn.004010df
test al, al
je 0x401490
push str.__EventExecute__GlobalWTPARKEXEC___SignalExecute
jmp 0x401495
push str.__EventTerminate__GlobalWTPARKTERM___SignalTerminate
push esi
call edi
push ebx
push ebx
push esi
call fcn.00401275
add esp, 0xc
pop esi
lea eax, [ebp - 0x25c]
push eax
call fcn.00401197
pop ecx
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x471008], 0x8088405
inc edx
mov dword [ebx + 0x471008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x45480a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454811
ret
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x455b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x4735f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x4735f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x4723fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455b8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret