joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453120
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
je 0x453238
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x453130
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x453238
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x453157
pop ebx
ret 4
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebp, [ebx + ebx + 2]
push ebp
push 0x2002
call edi
mov esi, eax
test esi, esi
je 0x4531a2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4531a2
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 1]
push ecx
push eax
push edx
call fcn.00486b80
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call edi
mov edi, eax
test edi, edi
je 0x4531e2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4531e2
mov eax, dword [esp + 0x14]
inc ebx
push ebx
push esi
push eax
call fcn.00486b80
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45322f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x45322f
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
jmp 0x453210
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x453210
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4

Function at 0x454bd0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
add eax, ebx
push edi
mov edi, dword [ecx + 0x6148]
mov dword [esp + 8], eax
cmp ebx, eax
je 0x454c96
push ebp
push esi
mov edx, dword [ecx + 0xd0]
movzx eax, byte [edx + ebx]
lea esi, [edx + ebx]
imul eax, eax, 0x2773
movzx edx, byte [esi + 1]
xor eax, edx
movzx edx, byte [esi + 2]
movzx esi, byte [esi + 3]
mov ebp, eax
imul ebp, ebp, 0x2773
xor edx, ebp
mov ebp, edx
imul ebp, ebp, 0x2773
and eax, 0x3fff
xor esi, ebp
mov ebp, dword [ecx + 0xd4]
add ebp, eax
mov al, byte [ebp]
mov byte [esp + 0x18], al
mov eax, dword [ecx + 0xd8]
and edx, 0x3ffff
movzx eax, word [eax + edx*2]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xdc]
and esi, 0x3ffff
mov eax, dword [eax + esi*4]
mov byte [ebp], bl
mov ebp, dword [ecx + 0xd8]
mov word [ebp + edx*2], bx
mov edx, dword [ecx + 0xdc]
mov dword [edx + esi*4], ebx
mov dl, byte [esp + 0x18]
mov dword [edi + 3], eax
mov ax, word [esp + 0x1c]
mov word [edi + 1], ax
mov byte [edi], dl
inc ebx
add edi, 7
cmp ebx, dword [esp + 0x10]
jne 0x454bf1
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 8
Function at 0x454ca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
je 0x454d1f
push ebx
jmp 0x454cc0
mov edx, dword [ecx + 0xd0]
movzx eax, byte [edx + esi]
movzx ebx, byte [edx + esi + 1]
imul eax, eax, 0x2773
add edx, esi
xor eax, ebx
movzx ebx, byte [edx + 2]
imul eax, eax, 0x2773
xor eax, ebx
movzx ebx, byte [edx + 3]
imul eax, eax, 0x2773
movzx edx, byte [edx + 4]
xor eax, ebx
imul eax, eax, 0x2773
xor eax, edx
and eax, dword [ecx + 0xec]
mov edx, dword [ecx + 0xe0]
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [eax], esi
mov eax, dword [ecx + 0xe4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, edi
jne 0x454cc0
pop ebx
pop edi
pop esi
ret 8

Function at 0x455f60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xd4]
push 0x4000
push 0
push eax
call fcn.004c1d50
add esp, 0xc
cmp byte [esp + 8], 0
je 0x456051
cmp byte [esi + 0x6135], 0
jne 0x456051
mov ecx, dword [esi + 0xe8]
mov eax, dword [esi + 0x6130]
shr ecx, 2
cmp eax, ecx
ja 0x456051
xor edx, edx
test eax, eax
jbe 0x456093
push ebx
push edi
jmp 0x455fc0
mov eax, dword [esi + 0xd0]
movzx edi, byte [eax + edx + 1]
lea ecx, [eax + edx]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 2]
imul eax, eax, 0x2773
xor eax, edi
mov edi, dword [esi + 0xd8]
imul eax, eax, 0x2773
xor eax, ecx
mov ecx, eax
imul eax, eax, 0x2773
and ecx, 0x3ffff
xor ebx, ebx
mov word [edi + ecx*2], bx
mov ecx, dword [esi + 0xd0]
movzx ecx, byte [ecx + edx + 3]
mov edi, dword [esi + 0xdc]
xor ecx, eax
mov eax, ecx
imul ecx, ecx, 0x2773
and eax, 0x3ffff
mov dword [edi + eax*4], ebx
mov eax, dword [esi + 0xd0]
movzx eax, byte [eax + edx + 4]
xor eax, ecx
and eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xe0]
inc edx
mov dword [ecx + eax*4], ebx
cmp edx, dword [esi + 0x6130]
jb 0x455fc0
pop edi
pop ebx
pop esi
ret 4
mov edx, dword [esi + 0xd8]
push 0x80000
push 0
push edx
call fcn.004c1d50
mov eax, dword [esi + 0xdc]
push 0x100000
push 0
push eax
call fcn.004c1d50
mov ecx, dword [esi + 0xe8]
mov edx, dword [esi + 0xe0]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push edx
call fcn.004c1d50
add esp, 0x24
pop esi
ret 4
Function at 0x493aa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebx, ecx
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x2710
ja 0x493b24
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0xe0]
call eax
cmp dword [esp + 0x10], 4
je 0x493b23
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x493b18
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
call esi
sub eax, edi
cmp eax, 0x2710
jbe 0x493ac4
pop ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
lea edx, [esp + 0x14]
push edx
mov eax, 3
mov word [esp + 0x18], ax
mov eax, dword [ebx + 0xc]
push 2
mov dword [esp + 0x24], 0x96
mov ecx, dword [eax]
push 0x3f
push eax
mov eax, dword [ecx + 0xd8]
call eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x4945d0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2004
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x2000], eax
cmp dword [ecx + 0x2c], 0
mov eax, dword [esp + 0x2008]
je 0x494772
cmp byte [ecx + 0x28], 0
je 0x494772
cmp dword [eax + 8], 6
jb 0x494772
mov edx, dword [eax]
push esi
mov esi, 0x400c
cmp word [edx + 0x50], si
jne 0x494771
mov edx, dword [edx + 8]
or esi, 0xffffffff
mov word [edx], si
cmp dword [ecx + 0x2c], 2
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov esi, dword [edx + 8]
mov eax, 5
jne 0x494640
call fcn.00493b90
push ebx
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 4
ja case.0x494651.3
jmp dword [eax*4 + 0x49478c]
push 1
push 0x4d79fc
push esi
push str.iexplore.exe
jmp 0x49474e
push esi
lea eax, [esp + 0x10]
push str._new_window__s
push eax
mov edx, 0x800
call fcn.0041cb70
add esp, 0xc
push 1
push 0x4d79fc
lea ecx, [esp + 0x14]
push ecx
push str.firefox.exe
jmp 0x49474e
push esi
lea edx, [esp + 0x10]
push str.__new_window__s
push edx
mov edx, 0x800
call fcn.0041cb70
add esp, 0xc
push 1
push esi
lea eax, [esp + 0x14]
push eax
push str.chrome.exe
jmp 0x49474e
push 0x800
push 0x4d79fc
lea ecx, [esp + 0x14]
push ecx
push 0x4d79fc
push str.http_shellopencommand
push 0x80000000
call fcn.0046c2b0
cmp word [esp + 0xc], 0x22
jne case.0x494651.3
lea edx, [esp + 0xe]
push 0x22
push edx
call fcn.004c28a7
mov ebx, eax
add esp, 8
test ebx, ebx
je case.0x494651.3
push 9
push str.opera.exe
lea eax, [esp + 0x14]
push eax
call fcn.00460620
push eax
call fcn.00486ff0
test eax, eax
jne case.0x494651.3
push esi
lea edx, [esp + 0x1010]
push str._newwindow__s
xor ecx, ecx
push edx
mov edx, 0x800
mov word [ebx + 2], cx
call fcn.0041cb70
add esp, 0xc
push 1
push esi
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x49476f
push 1
push 0x4d79fc
push 0
push esi
push str.open
push 0
call edi
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004c1302
add esp, 0x2004
ret 4
Function at 0x494ba0
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push 0
mov esi, ecx
push ebx
mov byte [esi + 0x29], al
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00494b20
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
push ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x494c06
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x18]
push esi
mov ebp, eax
sub edi, eax
mov eax, dword [esi]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
sub ecx, eax
push ecx
push edi
push eax
push ebp
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [esi + 0xc], 0
pop edi
mov dword [esi + 4], eax
pop ebp
jne 0x494c90
test ebx, ebx
je 0x494cb4
cmp dword [esi + 0x1c], 0
jne 0x494cb4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x494cb4
push eax
mov ecx, esi
call fcn.004942a0
mov esi, eax
test esi, esi
je 0x494cb4
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004c1aa4
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret 0x14
test eax, eax
je 0x494ca7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x24], 0x64
jbe 0x494cb4
mov ecx, esi
call fcn.00493aa0
pop esi
pop ebx
add esp, 0x10
ret 0x14

Function at 0x495bb0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x495c29
push ebx
push 0x800
push 0x54806e
push str.Rar_CM
call fcn.0049f210
mov ebx, eax
test ebx, ebx
je 0x495c28
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495be0
sub eax, edx
sar eax, 1
push esi
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495bf7
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push edi
call fcn.004c3ee0
push ebx
call fcn.004c3d02
add esp, 0x14
test esi, esi
pop esi
jbe 0x495c28
mov dword [0x549070], 3
pop ebx
pop edi
ret 4
Function at 0x495f20
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x5408
call fcn.004c1320
mov eax, dword [0x4eb0b4]
xor eax, esp
mov dword [esp + 0x5404], eax
push edi
push ebx
call fcn.00460620
push 0x3a
push eax
call fcn.004c28a7
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 8
test eax, eax
je 0x495f83
cmp byte [0x56bec0], 0
jne 0x495f83
push 0x31
push 0x65
call fcn.00475570
push eax
push 0x528
call fcn.00475570
push eax
push esi
call edi
cmp eax, 1
jne 0x4960fe
mov byte [0x56bec0], al
lea edx, [esp + 0x1008]
mov eax, ebx
sub edx, ebx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x495f90
lea eax, [esp + 0x1008]
push eax
call fcn.00460910
push 0x800
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
xor eax, eax
push ecx
mov word [esp + 0x100a], ax
call fcn.00460620
cmp word [eax], 0
je 0x496052
lea edx, [esp + 8]
push edx
call fcn.0043ccc0
test al, al
jne 0x496052
lea esp, [esp]
push 0x14d
call fcn.00475570
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x4010]
push str.__s__n_s
push ecx
mov edx, 0xa00
call fcn.0041cb70
add esp, 0x10
push 0x34
push 0x65
call fcn.00475570
push eax
lea edx, [esp + 0x4010]
push edx
push esi
call edi
cmp eax, 6
jne 0x4960fe
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0043d3a0
lea ecx, [esp + 8]
push ecx
call fcn.0043ccc0
test al, al
je 0x495ff0
call fcn.0044b3b0
cmp eax, 0x501
jb 0x496116
push 0x800
lea edx, [esp + 0x200c]
push edx
push ebx
mov ecx, 0x53f4e8
call fcn.0044bff0
push 0x800
lea eax, [esp + 0x300c]
push eax
lea ecx, [esp + 0x2010]
push ecx
call fcn.00460f70
push 0
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3024]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x496116
test dword [esp + 4], 0x80000
je 0x496116
lea ecx, [esp + 0x3008]
push ecx
push 0x65e
call fcn.00475570
push eax
lea edx, [esp + 0x4010]
push edx
mov edx, 0xa00
call fcn.0041cb70
add esp, 0xc
push 0x30
push 0x65
call fcn.00475570
push eax
lea eax, [esp + 0x4010]
push eax
push esi
call edi
xor al, al
pop edi
mov ecx, dword [esp + 0x5404]
xor ecx, esp
call fcn.004c1302
add esp, 0x5408
ret
mov ecx, dword [esp + 0x5408]
pop edi
xor ecx, esp
mov al, 1
call fcn.004c1302
add esp, 0x5408
ret
Function at 0xa8a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a8a200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8a0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a0c2
add dl, dl
jne 0xa8a0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a134
xor eax, eax
add dl, dl
jne 0xa8a0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a1d5
add dl, dl
jne 0xa8a0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa8a12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa8a0cd
mov eax, 1
add dl, dl
jne 0xa8a142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a139
sub eax, ebx
mov ebx, 1
jne 0xa8a180
mov ecx, 1
add dl, dl
jne 0xa8a166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8a171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8a197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8a1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a18e
cmp eax, 0x7d00
jae 0xa8a1c5
cmp eax, 0x500
jb 0xa8a1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a0cd
cmp eax, 0x7f
ja 0xa8a1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8a1f6
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 0xa8a0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401550
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x401c18
call fcn.004018fb
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x403390], ebx
jne 0x4012eb
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x403384
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401325
cmp eax, esi
jne 0x401318
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401328
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4012ff
xor esi, esi
inc esi
mov eax, dword [0x403380]
cmp eax, esi
jne 0x40133b
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x401376
mov eax, dword [0x403380]
test eax, eax
jne 0x401370
mov dword [0x403380], esi
push 0x4010e8
push 0x4010dc
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x401376
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401490
mov dword [0x403038], esi
mov eax, dword [0x403380]
cmp eax, esi
jne 0x40139a
push 0x4010d8
push 0x4010d0
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x403380], 2
cmp dword [ebp - 0x24], ebx
jne 0x4013a7
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x403394], ebx
je 0x4013c8
push 0x403394
call fcn.004019da
pop ecx
test eax, eax
je 0x4013c8
push ebx
push 2
push ebx
call dword [0x403394]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401421
cmp al, bl
je 0x4013e1
cmp dword [ebp - 0x1c], ebx
jne 0x401421
mov al, byte [esi]
cmp al, bl
je 0x4013f1
cmp al, 0x20
ja 0x4013f1
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4013e1
test byte [ebp - 0x40], 1
je 0x4013fd
movzx eax, word [ebp - 0x3c]
jmp 0x401400
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x403034], eax
cmp dword [0x403028], ebx
jne 0x401476
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x401430
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x401443
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4013cf
cmp dword [0x403038], ebx
jne 0x401484
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x403034]
call fcn.00401940
ret
call fcn.004019da
jmp 0x4012bd
Function at 0x41b483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b2f4

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x47ff40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4825a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x4825a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x480208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4825a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bb10
jmp 0x41bbfd
push 0
lea eax, [ebp - 0xc]
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 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4825a0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4825a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4825a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret