joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037a4
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x413960
push ebx
mov ebx, 0x41251c
push esi
call fcn.0040c87c
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4037de
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037de
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040c080
mov esi, eax
test esi, esi
je 0x40388e
mov edx, 0x411108
mov eax, esi
call fcn.0040c0c4
mov esi, eax
test eax, eax
je 0x403801
mov eax, ebx
mov edx, esi
call fcn.0040c0f0
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40387e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403818
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40381e
inc esi
test esi, 1
jne 0x40387d
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40383f
test eax, eax
je 0x403849
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403849
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x40387d
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403859
cmp edx, 0x53
jne 0x40387d
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x40386a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x40387d
mov dword [0x411058], 1
mov byte [0x41105c], 1
jmp 0x403885
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40380b
cmp byte [ebp - 1], 0
jne 0x40388e
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x413958], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x41291c], eax
push 0x65
push dword [0x413958]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x412920], eax
lea eax, [ebp - 0xc]
call fcn.00405544
push 0x400
push 0x41211c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x41211c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x41211c
mov eax, 0x413944
call fcn.00404b84
lea eax, [ebp - 0x24]
call fcn.004040ec
lea eax, [ebp - 0x3c]
call fcn.004040ec
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x412d24], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x412d28], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x411868], eax
xor edx, edx
mov dword [0x412d28], edx
mov dword [0x412d24], edx
cmp dword [0x411870], 0
jne 0x403961
cmp dword [0x41187c], 0
jne 0x403961
mov ecx, 4
mov edx, dword [0x411048]
xor eax, eax
call fcn.004018d1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404110
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404110
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004055b8
cmp byte [0x411044], 0
je 0x403996
call fcn.004026e6
mov eax, 0x41208c
mov ecx, 0x80
xor edx, edx
call fcn.0040bff0
cmp dword [0x411054], 0
jle 0x4039ba
mov eax, dword [0x411048]
call fcn.0040bf74
push dword [0x41291c]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x412920]
test eax, eax
je 0x4039d4
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x413938], 0
jne 0x4039f5
cmp dword [0x411870], 0
je 0x4039f5
mov eax, 0x413938
mov edx, 0xff
call fcn.004098f4
mov dword [0x411870], 2
push dword [0x413938]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403a14
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x411880], 1
mov ebx, dword [0x411868]
test ebx, ebx
je 0x403a3c
mov eax, 0x7d
call fcn.00402930
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x411884], edx
mov dword [0x411888], 1
mov eax, dword [0x411868]
test eax, eax
je 0x403a95
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x411054], 0
jne 0x403a8c
cmp byte [0x411019], 0
jne 0x403a8c
push 0
push 1
push 0x111
push dword [0x411868]
call sub.USER32.DLL_SendMessageA
jmp 0x403a8c
call fcn.004029d0
cmp dword [0x411870], 2
jne 0x403a87
cmp byte [0x411044], 0
je 0x403aa3
call fcn.004026e6
pop ebx
ret

Function at 0x404138
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x40415d
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.00404294
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x4041a3
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x4041f4
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404271
mov eax, dword [ebx + 4]
test eax, eax
je 0x40420c
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040c070
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040bf60
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040c0f0
mov edx, edi
mov eax, ebx
call fcn.004048d0
test al, al
jne 0x40424d
mov edx, edi
mov eax, ebx
call fcn.00404908
mov edx, edi
mov eax, ebx
call fcn.00404748
mov ebx, eax
mov eax, edi
call fcn.0040bf74
test ebx, ebx
je 0x404271
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040bf74
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404488
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4044ee
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4044ff
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4044ee
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4044a6
cmp dword [esp], 0
je 0x4044a6
xor ebx, ebx
cmp dword [esp], 0
je 0x404549
lea eax, [esp + 4]
push eax
push 0x4117f8
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404549
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40453f
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x405054
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405250
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4050eb
cmp byte [ebp + 8], 0
jne 0x4050eb
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x405129
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404ed8
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x405237
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405188
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404ed8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405227
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x4051b0
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x405247
inc esi
test edi, edi
je 0x405247
cmp esi, 0x200
jl 0x405147
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x405467
mov edx, edi
mov eax, ebx
call fcn.0040c0f0
mov eax, ebx
call fcn.0040c070
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040c0f0
mov eax, ebx
call fcn.0040c070
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402930
mov edx, eax
mov eax, ebx
call fcn.0040c0f0
mov eax, ebx
call fcn.0040c070
inc eax
add ebx, eax
mov edx, 0x41156c
mov eax, ebx
call fcn.0040c0f0
mov eax, ebx
call fcn.0040c070
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040bff0
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x413958]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405b38
cmp esi, eax
jne 0x405500
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405530
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405530
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406468
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004052f4
test eax, eax
je 0x40648e
test ebx, ebx
je 0x40648e
cmp word [ebx], 0
je 0x40648e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406496
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4064a9
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406820
xor eax, eax
jmp 0x4064c4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4064b8
cmp eax, 3
jne 0x4064bf
mov eax, 2
jmp 0x4064c4
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f4
test eax, eax
je 0x4067bf
test ebx, ebx
je 0x4067bf
cmp word [ebx], 0
je 0x4067bf
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4067f4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f4
test eax, eax
je 0x406816
test ebx, ebx
je 0x406816
cmp word [ebx], 0
je 0x406816
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x406820
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004052f4
test eax, eax
je 0x40684d
test ebx, ebx
je 0x40684d
cmp word [ebx], 0
je 0x40684d
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40685c
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4082f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x413134
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x408312
call fcn.004082c0
mov eax, ebp
jmp 0x40832a
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408332
test al, 7
jne 0x408316
cmp esi, 8
jb 0x4083bb
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40833b
xor edx, edx
jmp 0x4083d5
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x4083bf
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40ae90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x15], 0
mov esi, ecx
je 0x40aeb3
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40aec4
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40aed3
or dword [ebp - 8], 2
call fcn.004052f4
test eax, eax
je 0x40aeff
test esi, esi
je 0x40aeff
cmp word [esi], 0
je 0x40aeff
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40af18
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40af31
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40af31
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x40af9b
mov dword [ebx + 4], edi
test esi, esi
je 0x40af66
lea eax, [ebx + 0x416]
mov edx, esi
call fcn.0040c784
jmp 0x40af6f
mov word [ebx + 0x416], 0
cmp dword [ebp - 4], 0
je 0x40af82
lea eax, [ebx + 0x16]
mov edx, dword [ebp - 4]
call fcn.0040c0f0
jmp 0x40af91
lea edx, [ebx + 0x16]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040c71c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040b080
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40b158
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40b241
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40b193
dec eax
je 0x40b17d
dec eax
je 0x40b189
jmp 0x40b193
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40b193
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40b1e5
xor ebp, ebp
cmp esi, ebp
jle 0x40b201
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40b1b8
mov ecx, esi
sub ecx, ebp
jmp 0x40b1bd
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40b201
add ebp, 0x4000
cmp esi, ebp
jg 0x40b19f
jmp 0x40b201
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40b23d
cmp byte [edi + 0x14], 0
je 0x40b23d
cmp dword [edi + 0xc], 0
jne 0x40b23d
lea ebp, [edi + 0x16]
mov eax, 0x413938
mov edx, ebp
call fcn.00409764
test al, al
jne 0x40b193
mov ecx, ebp
mov eax, 0x413938
xor edx, edx
call fcn.0040974c
jmp 0x40b23d
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b32c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40b353
cmp esi, 0x4e20
jle 0x40b349
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40b3a4
mov eax, ebx
call fcn.0040b66c
test al, al
je 0x40b38b
cmp esi, 0x4e20
jle 0x40b38b
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040b32c
jmp 0x40b3a7
cmp dword [ebx + 0xc], 1
jne 0x40b39f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40b39f
xor eax, eax
jmp 0x40b3a7
or eax, 0xffffffff
jmp 0x40b3a7
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4116f0], 0
jne 0x40c6c5
call fcn.0040c28c
mov dword [0x4116ec], eax
inc byte [0x4116f0]
call fcn.0040c28c
sub eax, dword [0x4116ec]
cmp eax, 0x64
jle 0x40c701
cmp dword [0x411870], 0
je 0x40c6fc
mov eax, 0x413938
mov edx, 0xff
call fcn.004098f4
mov eax, 0x413938
mov edx, 0xff
call fcn.004098ec
call fcn.004029d0
ret
Function at 0x40110e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [section..data], eax
push 0x30
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_RtlZeroMemory
push dword [section..data]
pop dword [ebp - 0x1c]
push 0x7f04
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x7f03
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40106f
mov dword [ebp - 0x10], 6
mov dword [ebp - 8], str.SourceWindow
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [section..data]
push 0
push 0
push 0x12c
push 0x12c
push 0x64
push 0x1c2
push 0xcf0000
push 0x402084
push str.SourceWindow
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x403004], eax
push 1
push dword [0x403004]
call sub.user32.dll_ShowWindow
push dword [0x403004]
call sub.user32.dll_UpdateWindow
mov dword [ebp - 8], str.DestWindow
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [section..data]
push 0
push 0
push 0x12c
push 0x12c
push 0x64
push 0x64
push 0xcf0000
push 0x4020a0
push str.DestWindow
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x403008], eax
push 1
push dword [0x403008]
call sub.user32.dll_ShowWindow
push dword [0x403008]
call sub.user32.dll_UpdateWindow
push section..text
push 0xbb8
push 0
push 0
call sub.user32.dll_SetTimer
mov dword [ebp - 0x50], eax
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40126e
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x401247
push dword [ebp - 0x50]
push 0
call sub.user32.dll_KillTimer
leave
ret
Function at 0x418550
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ac38b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049e57b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4185d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049ba8d
mov eax, dword [eax]
push 0x524248
push eax
call fcn.0047b3d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049e806
test bl, bl
je 0x4185d2
push 0x524248
lea ecx, [esp + 0xc]
call fcn.0049ebe2
push 0x527df0
lea ecx, [esp + 0xc]
call fcn.0049ebe2
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41860e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049e806
jmp 0x4186d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x418692
lea edx, [esp + 0x7c]
push 0x527dec
push edx
call fcn.0047b3d4
add esp, 8
test eax, eax
je 0x418692
lea eax, [esp + 0x7c]
push 0x527de8
push eax
call fcn.0047b3d4
add esp, 8
test eax, eax
je 0x418692
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418622
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049e806
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x419930
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419992
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc